x402engine-mcp
Transcribes audio to text using Deepgram's Nova-3 model.
Converts text to speech using ElevenLabs.
Pins and retrieves JSON content from IPFS.
Provides text-to-speech and text embedding generation using OpenAI's APIs.
Supports LLM chat completions using Perplexity Sonar Pro model.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@x402engine-mcp generate an image of a peaceful forest path"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
x402engine-mcp
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 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.
Quick Start
Use a dedicated, low-balance payer wallet. The MCP signs x402 payments locally and never sends the private key to x402engine.
Base
{
"mcpServers": {
"x402engine": {
"command": "npx",
"args": ["-y", "x402engine-mcp@1.1.1"],
"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.
Solana
{
"mcpServers": {
"x402engine": {
"command": "npx",
"args": ["-y", "x402engine-mcp@1.1.1"],
"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.
Discovery Without a Wallet
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.1Related MCP server: @true402.dev/mcp-server
Hermes Agent
Install the x402engine skill and merge this server into the active Hermes profile's config.yaml:
mcp_servers:
x402engine:
command: npx
args: ["-y", "x402engine-mcp@1.1.1"]
env:
X402_BASE_URL: "https://x402engine.app"
X402_PAYMENT_NETWORK: "auto"
X402_MAX_PAYMENT_USD: "0.10"Start a new session and call discover_services or service_health; both are free. Keep the network on auto until a wallet is configured. For Base payments, store X402_EVM_PRIVATE_KEY in the profile's local .env, add X402_EVM_PRIVATE_KEY: "${X402_EVM_PRIVATE_KEY}" to the server's env, and change the network to base. Never put wallet keys in chat. The cap applies per request; authorize a separate total budget for each task.
Full Hermes setup guide · Installable skill
Payment Controls
Variable | Default | Description |
| unset | Dedicated payer key for Base USDC |
| unset | Base58 or JSON payer key for Solana USDC |
|
|
|
|
| Hard per-request spending limit |
| production gateway | Override the gateway URL |
| unset | Legacy pre-signed x402 header |
| 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.
MCP Tools
Category | Tools |
Discovery |
|
Image and code |
|
Audio |
|
Crypto |
|
Wallet and token |
|
IPFS |
|
Travel |
|
Prices are included in each tool description and in live discovery. The gateway catalog can change independently of this package.
Discovery
Gateway discovery: /.well-known/x402.json
Agent card: /.well-known/agent.json
Endpoint manifest: /.well-known/agent-manifest.v1.json
Services API: /api/services
Package metadata: server.json
Development
npm install
npm test
npm run buildLinks
Website: x402engine.app
npm: x402engine-mcp
GitHub: agentc22/x402engine-mcp
Protocol: x402.org
Available Tools
22 toolsdiscover_servicesA
List all available x402 Engine APIs with pricing, endpoints, and payment networks. Call this first to understand what's available.
Inputs: no named parameters.
execute_codeA
Execute code in a secure sandboxed environment (E2B). Supports Python, JavaScript, Bash, and R. $0.005 per execution.
Inputs: code (required), timeout, language.
generate_imageA
Generate 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.
Inputs: prompt (required), seed, tier, width, +1 more.
get_crypto_categoriesA
List CoinGecko category IDs for sector discovery and downstream market filters. $0.001 per request.
Inputs: no named parameters.
get_crypto_historyB
Get historical price data for a cryptocurrency. $0.003 per request.
Inputs: id (required), days, currency.
get_crypto_marketsB
Get top cryptocurrencies by market cap with detailed market data. $0.002 per request.
Inputs: page, limit, order, category, +1 more.
get_crypto_priceB
Get current prices for cryptocurrencies. $0.001 per request.
Inputs: ids (required), currencies, include_24h, include_mcap.
get_from_ipfsB
Retrieve content from IPFS by CID. $0.001 per request.
Inputs: cid (required).
get_token_metadataA
Get metadata for a token (name, symbol, decimals, etc.). $0.002 per request.
Inputs: id, slug, chain, address.
get_token_pricesA
Get DEX-derived prices for tokens by contract address. $0.005 per request.
Inputs: tokens (required).
get_trending_cryptoC
Get trending cryptocurrencies. $0.001 per request.
Inputs: no named parameters.
get_wallet_balancesA
Get token balances for a wallet address on any supported chain. $0.005 per request.
Inputs: chain (required), address (required).
get_wallet_pnlB
Get profit and loss analysis for a wallet's token trades. $0.01 per request.
Inputs: chain (required), address (required), min_liquidity, min_volume_24h.
get_wallet_transactionsA
Get transaction history for a wallet address. $0.005 per request.
Inputs: chain (required), address (required).
pin_to_ipfsA
Pin JSON data to IPFS via Pinata. Returns the IPFS CID. $0.01 per pin.
Inputs: json (required), name.
search_cheapest_datesA
Find the cheapest travel dates for a route. Returns date/price pairs sorted by price. $0.01 per request.
Inputs: origin (required), destination (required), oneWay, departureDate.
search_cryptoA
Search for a cryptocurrency by name or symbol. $0.001 per request.
Inputs: q (required).
search_flightsB
Search flight offers by route, dates, and passengers. Returns pricing, itineraries, and airlines. $0.01 per request.
Inputs: origin (required), destination (required), departureDate (required), max, +4 more.
search_hotelsA
Search hotel offers by city and dates. Returns room details, pricing, and availability. $0.01 per request.
Inputs: cityCode (required), checkInDate (required), checkOutDate (required), adults, +3 more.
search_locationsA
Search for airports and cities by keyword. Returns IATA codes, names, and coordinates. $0.005 per request.
Inputs: keyword (required), subType.
service_healthA
Get live health metrics for all x402engine services — latency (p50/p95/p99), error rates, request volume, and status. Free, no payment required. Call this before choosing which service to use.
Inputs: service.
transcribe_audioA
Transcribe audio to text using Deepgram Nova-3. Accepts a public URL to an audio file. $0.10 per transcription.
Inputs: audio_url (required), diarize, language, punctuate.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 22 tools
Several crypto tools overlap: get_crypto_price and get_token_prices both return prices but differ by input (name vs contract), and get_crypto_markets, get_crypto_history, and get_trending_crypto all provide market data. Descriptions help distinguish them, but an agent could easily select the wrong one. Other domains (travel, IPFS, wallets) are clearly separate.
Most tools follow a verb_noun pattern (transcribe_audio, get_crypto_price, generate_image, search_flights), but a few deviate like service_health (noun_noun) and get_from_ipfs (verb_preposition_noun). The overall style is fairly consistent and readable.
With 22 tools, the server is on the heavier side, covering many unrelated domains (audio, crypto, images, travel, IPFS, wallets). It feels like a diverse API collection rather than a focused toolset, but each tool appears to earn a place for its specific purpose.
Each domain has reasonable but not exhaustive coverage: crypto has price/market/history/trending/search/categories, wallets have balances/transactions/pnl, travel has search but no booking, IPFS has pin/get but no unpin. The surface is usable but has minor gaps that an agent might need to work around.
Maintenance
Related MCP Connectors
Remote MCP server exposing 330 production AI-agent services for web/data processing, validation, AI utilities, blockchain/crypto utilities, and x402 pay-per-use access.
x402 pay-per-call APIs over MCP, settled in USDC on Base for autonomous agents and developers.
Pay-per-action access to APIs and MCP tools over Lightning L402 and Base USDC x402.
Monetize any MCP server: x402 paywall, pay-per-call billing in USDC on Base, agent marketplace.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceMCP server for AgentPay — the payment gateway for autonomous AI agents. Fund a wallet once, give your agent the key, and it discovers, provisions, and pays for tool APIs on its own. One key, every tool.112 npm1MIT
- AlicenseAqualityBmaintenanceAn MCP server that enables AI agents to access paid AI inference and web tools via HTTP 402 micropayments in USDC on Base, using the agent's wallet as identity.36124 npmMIT
- FlicenseAqualityCmaintenanceMCP server for a live x402 payment gateway on Base (USDC). Lets AI agents discover, preview for free, then pay per call — with prepaid gasless payments, signed receipts, and delta delivery.7-
- AlicenseNot gradedqualityDmaintenanceMCP server for the x402 protocol that lets AI agents discover and call payment-gated HTTP APIs automatically.242 npmApache 2.0