# x402 Engine

28 pay-per-call APIs for AI agents via HTTP 402 crypto micropayments. Image generation, LLM inference, code execution, audio transcription, crypto market data, blockchain analytics, ENS resolution, I…

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add x402engine/x402engine-mcp

# Browse available tools
npx -y @smithery/cli@latest tool list x402engine/x402engine-mcp

# Get full schema for a tool
npx -y @smithery/cli@latest tool get x402engine/x402engine-mcp discover_services

# Call a tool
npx -y @smithery/cli@latest tool call x402engine/x402engine-mcp discover_services '{}'
```

## Direct MCP Connection

Endpoint: `https://x402engine-mcp--x402engine.run.tools`

## Tools (24)

- `discover_services` — List all available x402 Engine APIs with pricing, endpoints, and payment networks. Call this first to understand what's…
- `generate_image` — Generate an image from a text prompt. Three quality tiers: 'fast' ($0.015, FLUX Schnell), 'quality' ($0.05, FLUX.2 Pro)…
- `execute_code` — Execute code in a secure sandboxed environment (E2B). Supports Python, JavaScript, Bash, and R. $0.005 per execution.
- `transcribe_audio` — Transcribe audio to text using Deepgram Nova-3. Accepts a public URL to an audio file. $0.10 per transcription.
- `get_crypto_price` — Get current prices for cryptocurrencies. $0.001 per request.
- `get_crypto_markets` — Get top cryptocurrencies by market cap with detailed market data. $0.002 per request.
- `get_crypto_history` — Get historical price data for a cryptocurrency. $0.003 per request.
- `get_trending_crypto` — Get trending cryptocurrencies. $0.001 per request.
- `search_crypto` — Search for a cryptocurrency by name or symbol. $0.001 per request.
- `get_wallet_balances` — Get token balances for a wallet address on any supported chain. $0.005 per request.
- `get_wallet_transactions` — Get transaction history for a wallet address. $0.005 per request.
- `get_wallet_pnl` — Get profit and loss analysis for a wallet's token trades. $0.01 per request.
- `get_token_prices` — Get DEX-derived prices for tokens by contract address. $0.005 per request.
- `get_token_metadata` — Get metadata for a token (name, symbol, decimals, etc.). $0.002 per request.
- `pin_to_ipfs` — Pin JSON data to IPFS via Pinata. Returns the IPFS CID. $0.01 per pin.
- `get_from_ipfs` — Retrieve content from IPFS by CID. $0.001 per request.
- `search_flights` — Search flight offers by route, dates, and passengers. Returns pricing, itineraries, and airlines. $0.01 per request.
- `search_locations` — Search for airports and cities by keyword. Returns IATA codes, names, and coordinates. $0.005 per request.
- `search_hotels` — Search hotel offers by city and dates. Returns room details, pricing, and availability. $0.01 per request.
- `search_cheapest_dates` — Find the cheapest travel dates for a route. Returns date/price pairs sorted by price. $0.01 per request.
- `resolve_ens` — Resolve an ENS name (e.g. vitalik.eth) to an Ethereum address. $0.001 per request.
- `reverse_ens` — Look up the ENS name for an Ethereum address. Returns null if none set. $0.001 per request.
- `llm_chat` — Send a chat completion request to any supported LLM. Models: gpt-4o ($0.04), gpt-4o-mini ($0.003), gpt-4.1 ($0.03), gpt…
- `create_embeddings` — Generate text embeddings using OpenAI text-embedding-3-small. For semantic search, clustering, and RAG. $0.001 per requ…

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get x402engine/x402engine-mcp <tool-name>
```

## Resources

- `x402engine://services`
