x402engine

by agentc22

Not rated
GitHub

About

50+ pay-per-call APIs for AI agents via HTTP 402 crypto micropayments. $0.001–$0.12 per call with USDC and USDm.

Details

Author
agentc22
Categories
Developer Tools, Finance, Other

Setup

Install x402engine in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/agentc22/x402engine-mcp

Follow the installation instructions in the repository README, then restart your MCP client.

- Discover available paid APIs— browse the live gateway catalog withdiscover_servicesto find LLM, image, crypto, travel, and other pay-per-request endpoints.
- Check service health before paying— useservice_healthto verify an endpoint is reachable and see its current pricing without spending.
- Generate images on demand— callgenerate_imageto create AI-generated images, with automatic USDC payment on Base or Solana.
- Execute code in a sandbox— run snippets viaexecute_codeand pay per execution through the x402 protocol.
- Fetch crypto prices and market data— queryget_crypto_price,get_crypto_markets, orget_trending_cryptofor real-time token and market information.
- Search flights and hotels— usesearch_flights,search_hotels, orsearch_locationsto look up travel options with per-request billing.

Agent-friendly MCP server forx402engine. 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 asdiscover_servicesandservice_healthstill work. Paid tools return their x402 payment requirements until a wallet is configured.

claude mcp add x402engine -- npx -y x402engine-mcp@1.1.0

Inautomode, 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.

Prices are included in each tool description and in live discovery. The gateway catalog can change independently of this package.

- 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

- Website:x402engine.app
- npm:
x402engine-mcp
- GitHub:
agentc22/x402engine-mcp
- Protocol:
x402.org

This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.

Access real-time and historical crypto market data from CoinAPI’s MCP server, built for developers and AI agents needing reliable, unified market coverage.

Read/write to over 2k blockchains, enabling data querying, contract analysis/deployment, and transaction execution, powered by Thirdweb.

Interact with Alchemy's blockchain APIs to query data without writing code.

Interact with Aptos documentation and create full-stack Aptos blockchain applications.

A MCP server for interacting with Aptos NPM packages.

An AI gateway for the Blend Protocol on Stellar, enabling DeFi actions like lending, borrowing, and pool creation through AI assistants or apps.

Provides real-time access to Chainlink's decentralized on-chain price feeds.

Managed MCP server for Bybit perpetual futures trading. Isolated sub-accounts, built-in risk management, 12 trading tools.

A comprehensive toolkit for Ethereum blockchain analysis directly within Claude AI.

A set of tools for interacting with the Flow blockchain through the Model Context Protocol.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.