x402engine
50+ pay-per-call APIs for AI agents via HTTP 402 crypto micropayments. $0.001–$0.12 per call with USDC and USDm.
Ads
Overview
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. Use a dedicated, low-balance payer wallet. The MCP signs x402 payments locally and never sends the private key to x402engine.
Installation
npx -y x402engine-mcp@1.1.0
Configuration
{
"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"
}
}
}
}Capabilities
- Discover available paid APIs
browse the live gateway catalog with `discover_services` to find LLM, image, crypto, travel, and other pay-per-request endpoints.
- Check service health before paying
use `service_health` to verify an endpoint is reachable and see its current pricing without spending.
- Generate images on demand
call `generate_image` to create AI-generated images, with automatic USDC payment on Base or Solana.
- Execute code in a sandbox
run snippets via `execute_code` and pay per execution through the x402 protocol.
- Fetch crypto prices and market data
query `get_crypto_price`, `get_crypto_markets`, or `get_trending_crypto` for real-time token and market information.
- Search flights and hotels
use `search_flights`, `search_hotels`, or `search_locations` to look up travel options with per-request billing.
Tags
- finance
- crypto
- data-analysis
- development
Related MCP servers
Context7 MCP
OfficialOfficial Context7 MCP server that brings up-to-date, version-specific library documentation and code examples into AI coding prompts.
Chrome DevTools MCP
OfficialOfficial Chrome DevTools MCP server for controlling and inspecting a live Chrome browser from coding agents such as Gemini, Claude, Cursor, and Copilot.
Mastra/mcp
OfficialClient implementation for Mastra, providing seamless integration with MCP-compatible AI models and tools.
GitHub MCP Server
OfficialConnect your AI assistant to GitHub repositories, issues, pull requests, and search.