Start in one minute

Every tool on x402-tools.com is an HTTPS endpoint your agent pays for per call in USDC with x402. No account, no API key. Add our MCP server so your agent can find the right tool, then call it with an x402 client.

See the price (no setup)

Call any tool without paying. It answers HTTP 402 with the exact price and payment details.

curl -i "https://x402-tools.com/v1/markdown?url=https://example.com"

Claude Code

One command. Claude can then call every tool directly.

claude mcp add --transport http x402-tools https://x402-tools.com/mcp

Claude Desktop and claude.ai

Settings, Connectors, Add custom connector, then paste this URL:

https://x402-tools.com/mcp

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "x402-tools": { "url": "https://x402-tools.com/mcp" }
  }
}

VS Code (.vscode/mcp.json)

{
  "servers": {
    "x402-tools": { "type": "http", "url": "https://x402-tools.com/mcp" }
  }
}

LangChain (Python)

pip install langchain langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient
from langchain.agents import create_agent

client = MultiServerMCPClient({
    "x402-tools": {"transport": "streamable_http", "url": "https://x402-tools.com/mcp"},
})
tools = await client.get_tools()
agent = create_agent("anthropic:claude-sonnet-5-5", tools)
result = await agent.ainvoke({"messages": [{"role": "user", "content": "Summarize https://example.com"}]})

Vercel AI SDK

npm i ai @ai-sdk/mcp

import { createMCPClient } from "@ai-sdk/mcp";
import { generateText, isStepCount } from "ai";

const mcp = await createMCPClient({ transport: { type: "http", url: "https://x402-tools.com/mcp" } });
try {
  const { text } = await generateText({
    model: "anthropic/claude-sonnet-5-5",
    tools: await mcp.tools(),
    stopWhen: isStepCount(5),
    prompt: "Take a screenshot of https://example.com and describe it",
  });
  console.log(text);
} finally {
  await mcp.close();
}

Pay per call, no limits (JavaScript)

npm i @x402/fetch @x402/evm viem. Every tool costs fractions of a cent in USDC on Base. No account or API key.

import { wrapFetchWithPaymentFromConfig } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";

// A wallet with a little USDC on Base. Keep it separate from your main funds.
const account = privateKeyToAccount(process.env.AGENT_PRIVATE_KEY);
const paidFetch = wrapFetchWithPaymentFromConfig(fetch, {
  schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(account) }],
});

const res = await paidFetch("https://x402-tools.com/v1/markdown?url=https://example.com");
console.log(await res.json());

How paying works

  • Call a tool without payment and it answers HTTP 402 with the price, network and address.
  • An x402 client signs a USDC payment on Base and sends the request again. You get the result and a receipt.
  • Invalid input is rejected before payment, and failed calls are never charged.
  • Through MCP, each tool checks your input and returns the exact paid request to make.

All tools: browse the catalog · Agent docs: API, llms.txt, OpenAPI