Skip to main content

Search and call x402 paid services from any MCP-compatible agent (Claude, Cursor, Cline).

Project description

agent-tools-mcp

smithery badge MCP PyPI License

Discover and call x402 paid services from any MCP-compatible agent (Claude, Cursor, Cline, Continue, …).

Also listed on Smithery for one-click hosted install.

Backed by agent-tools.cloud, an open directory of 2,000+ x402 paid APIs (awesome-x402, x402scan, x402.org/ecosystem, …). Call the stats tool for live counts.

Tools

Tool What it does
search(intent, top_k, max_price_usd, category) Natural-language search across the directory
get(slug) Full details (URL, price, call template) of a service
list_categories() Browse categories
stats() Directory size & health snapshot

What agents get back

search() and get() return a normalised service record. For services hosted directly on agent-tools.cloud, every paid endpoint advertises the full x402 v2 extensions.bazaar block in its 402 challenge — including JSON Schema and a worked request body example — so the agent can call without trial-and-error:

// shape of get("agent-tools-cloud-signal-token")
{
  "slug": "agent-tools-cloud-signal-token",
  "endpoint": "https://agent-tools.cloud/v1/signal/token",
  "method": "POST",
  "price_usd": 0.01,
  "network": "base-mainnet",
  "asset": "USDC",
  "bazaar": {
    "info": {
      "input":  { "type": "http", "method": "POST", "bodyType": "json",
                  "body":   { "chain": "base", "token": "0x4200...0006" } },
      "output": { "type": "json",
                  "example": { "signal": "buy", "score": 0.78, "confidence": 0.62 } }
    },
    "schema": { "type": "object", "properties": { "body": { "properties":
                  { "chain": {"type":"string","enum":["base","ethereum","solana"]},
                    "token": {"type":"string"} },
                  "required": ["chain", "token"] } } }
  }
}

The response also passes through payment-required (challenge) and payment-response headers, both exposed via Access-Control-Expose-Headers so a browser-side fetch() (e.g. x402-fetch) can read them.

Third-party entries scraped from awesome-x402 / x402scan / x402.org are passed through as-is and may or may not include bazaar metadata.

Quick Start

Claude Code CLI

claude mcp add agent-tools -- uvx agent-tools-mcp

Claude Desktop / Cursor / Cline

Add to your MCP config (~/.config/Claude/claude_desktop_config.json, ~/.cursor/mcp.json, …):

{
  "mcpServers": {
    "agent-tools": {
      "command": "uvx",
      "args": ["agent-tools-mcp"]
    }
  }
}

Remote (no install)

Most clients also accept a url-based remote MCP server (Streamable HTTP; the client must send Accept: application/json, text/event-stream):

{
  "mcpServers": {
    "agent-tools": { "url": "https://agent-tools.cloud/mcp-discovery/" }
  }
}

From source

pip install agent-tools-mcp        # or `uv tool install agent-tools-mcp`
agent-tools-mcp                    # stdio server, ready for an MCP client

Environment Variables

Var Default Purpose
AGENT_TOOLS_API_BASE https://agent-tools.cloud Point at a different deployment (e.g. self-hosted)
AGENT_TOOLS_LOG_LEVEL INFO Server log level (stderr only)
AGENT_TOOLS_HTTP_LOG_LEVEL WARNING httpx/httpcore log level

Debugging

# Probe with the official MCP Inspector
npx -y @modelcontextprotocol/inspector uvx agent-tools-mcp

# Or raw JSON-RPC
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | uvx agent-tools-mcp

License

Apache-2.0. See LICENSE.

Related

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agent_tools_mcp-0.1.5.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agent_tools_mcp-0.1.5-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file agent_tools_mcp-0.1.5.tar.gz.

File metadata

  • Download URL: agent_tools_mcp-0.1.5.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for agent_tools_mcp-0.1.5.tar.gz
Algorithm Hash digest
SHA256 0ade42b3c173bef48713b42ab23238093502a9082afcdf60cd3233573e9eef11
MD5 edcaa399c0fe2987f0b8bcda2a1db466
BLAKE2b-256 98ff5ca19b00bc7e75816d6c61d01baf760c1c5cba46340a8323b731098367d9

See more details on using hashes here.

File details

Details for the file agent_tools_mcp-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for agent_tools_mcp-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 39edc9e50e603d2ce69e7ba1496581eef027f91918cfc014580c779348ae2fa7
MD5 94afb5634db958617cbf078fb4982f49
BLAKE2b-256 ddb61a8993ddc81fc1479dbbe9d2b88f7cf4346f1dadb047cfb04296e056a8bb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page