X402engine MCP Server

Agent-friendly MCP wrapper for x402engine with automatic capped USDC payments on Base and Solana

Local serverstdio

What is the X402engine MCP MCP server?

Most developer tooling work still happens through a UI a human drives. X402engine MCP MCP server moves it into the conversation instead. Agent-friendly MCP wrapper for x402engine with automatic capped USDC payments on Base and Solana.

The short version

Agent-friendly MCP server for x402engine. It lets agents discover and call pay-per-request APIs through HTTP 402, with automatic USDC payment on Base or Solana.

The tools it exposes

The server publishes 8 tools. What each one is for:

  • Category — Tools
  • Discovery — discover_services, service_health
  • Audio — transcribe_audio
  • Crypto — get_crypto_price, get_crypto_markets, get_crypto_history, get_trending_crypto, search_crypto, get_crypto_categories
  • IPFS — pin_to_ipfs, get_from_ipfs
  • Travel — search_flights, search_locations, search_hotels, search_cheapest_dates
  • Base — Fund the wallet with USDC on Base. The x402 facilitator pays transaction gas; the wallet signs an EIP-3009 USDC authorization
  • Solana — Fund the wallet with USDC on Solana and enough SOL for transaction fees

Getting it running

The server ships on npm as x402engine-mcp, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

What it needs from you

Configuration is passed through the environment: X402_EVM_PRIVATE_KEY, X402_PAYMENT_NETWORK, X402_MAX_PAYMENT_USD, X402_SOLANA_PRIVATE_KEY, YOUR_BASE58_OR_JSON_PRIVATE_KEY, X402_BASE_URL. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

How it compares

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. X402engine MCP's toolset — Category, Discovery, Audio and 5 more — is a fair guide to whether it matches your workflow. It is maintained by agentc22; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
CategoryTools
Discoverydiscover_services, service_health
Audiotranscribe_audio
Cryptoget_crypto_price, get_crypto_markets, get_crypto_history, get_trending_crypto, search_crypto, get_crypto_categories
IPFSpin_to_ipfs, get_from_ipfs
Travelsearch_flights, search_locations, search_hotels, search_cheapest_dates
BaseFund the wallet with USDC on Base. The x402 facilitator pays transaction gas; the wallet signs an EIP-3009 USDC authorization.
SolanaFund the wallet with USDC on Solana and enough SOL for transaction fees.

How to install the X402engine MCP MCP server

{
  "mcpServers": {
    "x402engine": {
      "command": "npx",
      "args": ["-y", "x402engine-mcp@1.1.0"],
      "env": {
        "X402_EVM_PRIVATE_KEY": "0xYOUR_DEDICATED_PAYER_KEY",
        "X402_PAYMENT_NETWORK": "base",
        "X402_MAX_PAYMENT_USD": "1.00"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
X402_EVM_PRIVATE_KEYCredential the server authenticates with.Yes
X402_PAYMENT_NETWORKConfiguration value read at startup.Optional
X402_MAX_PAYMENT_USDConfiguration value read at startup.Optional
X402_SOLANA_PRIVATE_KEYCredential the server authenticates with.Yes
YOUR_BASE58_OR_JSON_PRIVATE_KEYCredential the server authenticates with.Yes
X402_BASE_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • Use X402engine MCP to Category.
  • Use X402engine MCP to Discovery.
  • Use X402engine MCP to Audio.

Frequently asked questions

It connects X402engine MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 8 tools (Category, Discovery, Audio, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with X402engine MCP directly.