
Gives Claude direct access to 50+ pay-per-call APIs through the x402 micropayment protocol. You get LLM inference across 16+ models (GPT-4o, Claude, Gemini, DeepSeek), image generation, sandboxed code execution in Python/JS/Bash, audio transcription and TTS, crypto market data from CoinGecko, on-chain wallet analysis, web scraping, and IPFS pinning. Each call costs between $0.001 and $0.12, paid in USDC on Base or Solana. Useful when you want Claude to orchestrate multiple AI services or access live crypto data without managing separate API keys. Payment happens automatically via HTTP 402 responses, though you can use a dev bypass token for testing.
Public tool metadata for what this MCP can expose to an agent.
discover_servicesList all available x402 Engine APIs with pricing, endpoints, and payment networks. Call this first to understand what's available.List all available x402 Engine APIs with pricing, endpoints, and payment networks. Call this first to understand what's available.
No parameter schema in public metadata yet.
generate_imageGenerate an image from a text prompt. Three quality tiers: 'fast' ($0.015, FLUX Schnell), 'quality' ($0.05, FLUX.2 Pro), 'text' ($0.12, Ideogram v3 for images with text). Returns image URL.5 paramsGenerate an image from a text prompt. Three quality tiers: 'fast' ($0.015, FLUX Schnell), 'quality' ($0.05, FLUX.2 Pro), 'text' ($0.12, Ideogram v3 for images with text). Returns image URL.
heightnumberpromptstringseednumbertierstringfast · quality · textdefault: fastwidthnumberexecute_codeExecute code in a secure sandboxed environment (E2B). Supports Python, JavaScript, Bash, and R. $0.005 per execution.3 paramsExecute code in a secure sandboxed environment (E2B). Supports Python, JavaScript, Bash, and R. $0.005 per execution.
codestringlanguagestringpython · javascript · bash · rdefault: pythontimeoutnumbertranscribe_audioTranscribe audio to text using Deepgram Nova-3. Accepts a public URL to an audio file. $0.10 per transcription.4 paramsTranscribe audio to text using Deepgram Nova-3. Accepts a public URL to an audio file. $0.10 per transcription.
audio_urlstringdiarizebooleanlanguagestringpunctuatebooleanget_crypto_priceGet current prices for cryptocurrencies. $0.001 per request.4 paramsGet current prices for cryptocurrencies. $0.001 per request.
currenciesstringidsstringinclude_24hbooleaninclude_mcapbooleanget_crypto_marketsGet top cryptocurrencies by market cap with detailed market data. $0.002 per request.5 paramsGet top cryptocurrencies by market cap with detailed market data. $0.002 per request.
categorystringcurrencystringlimitnumberorderstringpagenumberget_crypto_historyGet historical price data for a cryptocurrency. $0.003 per request.3 paramsGet historical price data for a cryptocurrency. $0.003 per request.
currencystringdaysvalueidstringget_trending_cryptoGet trending cryptocurrencies. $0.001 per request.Get trending cryptocurrencies. $0.001 per request.
No parameter schema in public metadata yet.
search_cryptoSearch for a cryptocurrency by name or symbol. $0.001 per request.1 paramsSearch for a cryptocurrency by name or symbol. $0.001 per request.
qstringget_wallet_balancesGet token balances for a wallet address on any supported chain. $0.005 per request.2 paramsGet token balances for a wallet address on any supported chain. $0.005 per request.
addressstringchainstringget_wallet_transactionsGet transaction history for a wallet address. $0.005 per request.2 paramsGet transaction history for a wallet address. $0.005 per request.
addressstringchainstringget_wallet_pnlGet profit and loss analysis for a wallet's token trades. $0.01 per request.4 paramsGet profit and loss analysis for a wallet's token trades. $0.01 per request.
addressstringchainstringmin_liquiditynumbermin_volume_24hnumberget_token_pricesGet DEX-derived prices for tokens by contract address. $0.005 per request.1 paramsGet DEX-derived prices for tokens by contract address. $0.005 per request.
tokensarrayget_token_metadataGet metadata for a token (name, symbol, decimals, etc.). $0.002 per request.4 paramsGet metadata for a token (name, symbol, decimals, etc.). $0.002 per request.
addressstringchainstringidstringslugstringpin_to_ipfsPin JSON data to IPFS via Pinata. Returns the IPFS CID. $0.01 per pin.2 paramsPin JSON data to IPFS via Pinata. Returns the IPFS CID. $0.01 per pin.
jsonobjectnamestringget_from_ipfsRetrieve content from IPFS by CID. $0.001 per request.1 paramsRetrieve content from IPFS by CID. $0.001 per request.
cidstringsearch_flightsSearch flight offers by route, dates, and passengers. Returns pricing, itineraries, and airlines. $0.01 per request.8 paramsSearch flight offers by route, dates, and passengers. Returns pricing, itineraries, and airlines. $0.01 per request.
adultsnumbercurrencyCodestringdepartureDatestringdestinationstringmaxnumbernonStopbooleanoriginstringreturnDatestringsearch_locationsSearch for airports and cities by keyword. Returns IATA codes, names, and coordinates. $0.005 per request.2 paramsSearch for airports and cities by keyword. Returns IATA codes, names, and coordinates. $0.005 per request.
keywordstringsubTypestringsearch_hotelsSearch hotel offers by city and dates. Returns room details, pricing, and availability. $0.01 per request.7 paramsSearch hotel offers by city and dates. Returns room details, pricing, and availability. $0.01 per request.
adultsnumbercheckInDatestringcheckOutDatestringcityCodestringcurrencystringpriceRangestringroomQuantitynumbersearch_cheapest_datesFind the cheapest travel dates for a route. Returns date/price pairs sorted by price. $0.01 per request.4 paramsFind the cheapest travel dates for a route. Returns date/price pairs sorted by price. $0.01 per request.
departureDatestringdestinationstringoneWaybooleanoriginstringresolve_ensResolve an ENS name (e.g. vitalik.eth) to an Ethereum address. $0.001 per request.1 paramsResolve an ENS name (e.g. vitalik.eth) to an Ethereum address. $0.001 per request.
namestringreverse_ensLook up the ENS name for an Ethereum address. Returns null if none set. $0.001 per request.1 paramsLook up the ENS name for an Ethereum address. Returns null if none set. $0.001 per request.
addressstringllm_chatSend a chat completion request to any supported LLM. Models: gpt-4o ($0.04), gpt-4o-mini ($0.003), gpt-4.1 ($0.03), gpt-4.1-mini ($0.006), gpt-5 ($0.035), gpt-5-mini ($0.007), o3 ($0.03), o4-mini ($0.02), claude-opus ($0.09), claude-sonnet ($0.06), claude-haiku ($0.02), gemini...3 paramsSend a chat completion request to any supported LLM. Models: gpt-4o ($0.04), gpt-4o-mini ($0.003), gpt-4.1 ($0.03), gpt-4.1-mini ($0.006), gpt-5 ($0.035), gpt-5-mini ($0.007), o3 ($0.03), o4-mini ($0.02), claude-opus ($0.09), claude-sonnet ($0.06), claude-haiku ($0.02), gemini...
max_tokensnumbermessagesarraymodelstringgpt-4o · gpt-4o-mini · gpt-4.1 · gpt-4.1-mini · gpt-5 · gpt-5-minicreate_embeddingsGenerate text embeddings using OpenAI text-embedding-3-small. For semantic search, clustering, and RAG. $0.001 per request.2 paramsGenerate text embeddings using OpenAI text-embedding-3-small. For semantic search, clustering, and RAG. $0.001 per request.
textstringtextsarrayAgent-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 live gateway covers LLMs, image and video generation, web search and scraping, code execution, crypto and wallet data, transaction simulation, audio, travel, and IPFS. This MCP exposes a curated tool set and live discovery for the full catalog.
Use a dedicated, low-balance payer wallet. The MCP signs x402 payments locally and never sends the private key to x402engine.
{
"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"
}
}
}
}
Fund the wallet with USDC on Base. The x402 facilitator pays transaction gas; the wallet signs an EIP-3009 USDC authorization.
{
"mcpServers": {
"x402engine": {
"command": "npx",
"args": ["-y", "x402engine-mcp@1.1.0"],
"env": {
"X402_SOLANA_PRIVATE_KEY": "YOUR_BASE58_OR_JSON_PRIVATE_KEY",
"X402_PAYMENT_NETWORK": "solana",
"X402_MAX_PAYMENT_USD": "1.00"
}
}
}
}
Fund the wallet with USDC on Solana and enough SOL for transaction fees.
The server starts without a wallet, and free tools such as discover_services and service_health still work. Paid tools return their x402 payment requirements until a wallet is configured.
claude mcp add x402engine -- npx -y x402engine-mcp@1.1.0
| Variable | Default | Description |
|---|---|---|
X402_EVM_PRIVATE_KEY | unset | Dedicated payer key for Base USDC |
X402_SOLANA_PRIVATE_KEY | unset | Base58 or JSON payer key for Solana USDC |
X402_PAYMENT_NETWORK | auto | auto, base, or solana |
X402_MAX_PAYMENT_USD | 1.00 | Hard per-request spending limit |
X402_BASE_URL | production gateway | Override the gateway URL |
X402_PAYMENT_HEADER | unset | Legacy pre-signed x402 header |
X402_DEV_BYPASS | unset | Development bypass secret |
In auto mode, Base is preferred when both keys are configured. Automatic payment only accepts the canonical USDC contracts on Base and Solana. It rejects unknown assets, unsupported networks, and amounts above the configured cap before signing.
MegaETH remains available to clients that supply their own compatible payment header.
| Category | Tools |
|---|---|
| Discovery | discover_services, service_health |
| Image and code | generate_image, execute_code |
| Audio | transcribe_audio |
| Crypto | get_crypto_price, get_crypto_markets, get_crypto_history, get_trending_crypto, search_crypto, get_crypto_categories |
| Wallet and token | get_wallet_balances, get_wallet_transactions, get_wallet_pnl, get_token_prices, get_token_metadata |
| IPFS | pin_to_ipfs, get_from_ipfs |
| Travel | search_flights, search_locations, search_hotels, search_cheapest_dates |
Prices are included in each tool description and in live discovery. The gateway catalog can change independently of this package.
npm install
npm test
npm run build
X402_BASE_URLGateway URL (default: https://x402engine.app)
X402_DEV_BYPASSsecretDev bypass secret to skip payments during testing
X402_PAYMENT_HEADERsecretPre-signed x402 payment header for automatic payment