x402engine-mcp

x402engine-mcp

MCP server providing AI agents access to 38 pay-per-call APIs (LLM, image, code, audio, crypto, web, IPFS) via HTTP 402 micropayments in USDC/USDm.

Category
访问服务器

README

x402engine-mcp

MCP server for x402 Engine — giving AI agents access to 38 pay-per-call APIs via HTTP 402 micropayments.

Payments are made with USDC on Base, USDC on Solana, or USDm on MegaETH. Prices range from $0.001 to $0.12 per call.

Quick Start

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "x402engine": {
      "command": "npx",
      "args": ["-y", "x402engine-mcp"],
      "env": {
        "X402_DEV_BYPASS": "your-dev-bypass-secret"
      }
    }
  }
}

Claude Code

claude mcp add x402engine -- npx -y x402engine-mcp

Available Tools

LLM Inference

Tool Price Description
llm_chat $0.002-$0.09 Chat completion with any supported model

Supported models: GPT-4o ($0.04), GPT-4o Mini ($0.003), OpenAI o1 ($0.03), Claude Opus 4.6 ($0.09), Claude Sonnet 4.5 ($0.06), Claude Haiku 4.5 ($0.02), Gemini 2.5 Pro ($0.035), Gemini 2.5 Flash ($0.009), Grok 4 ($0.06), DeepSeek V3 ($0.005), DeepSeek R1 ($0.01), Llama 3.3 70B ($0.002), Mistral Large 3 ($0.006), Qwen3 235B ($0.004), Perplexity Sonar Pro ($0.06).

Image Generation

Tool Price Description
generate_image $0.015-$0.12 AI image generation (fast/quality/text tiers)

Code Execution

Tool Price Description
execute_code $0.005 Sandboxed code execution (Python, JS, Bash, R)

Audio

Tool Price Description
transcribe_audio $0.10 Audio-to-text transcription (Deepgram Nova-3)
tts_openai $0.01 Text-to-speech (OpenAI)
tts_elevenlabs $0.02 Text-to-speech (ElevenLabs)

Text Embeddings

Tool Price Description
create_embeddings $0.001 Text embeddings (OpenAI text-embedding-3-small)

Crypto & Market Data

Tool Price Description
get_crypto_price $0.001 Current crypto prices
get_crypto_markets $0.002 Top coins by market cap
get_crypto_history $0.003 Historical price charts
get_trending_crypto $0.001 Trending coins
search_crypto $0.001 Search for coins

Blockchain & Wallet

Tool Price Description
get_wallet_balances $0.005 Token balances for any wallet
get_wallet_transactions $0.005 Transaction history
get_wallet_pnl $0.01 Profit & loss analysis
get_token_prices $0.005 DEX-derived token prices
get_token_metadata $0.002 Token metadata
simulate_transaction $0.01 Transaction simulation (Tenderly)

Web

Tool Price Description
web_scrape $0.005 Scrape and extract web page content
web_screenshot $0.01 Capture web page screenshot

IPFS Storage

Tool Price Description
pin_to_ipfs $0.01 Pin JSON to IPFS
get_from_ipfs $0.001 Retrieve content from IPFS

Discovery

Tool Price Description
discover_services Free List all services and pricing

Environment Variables

Variable Required Description
X402_BASE_URL No Gateway URL (default: https://x402-gateway-production.up.railway.app)
X402_DEV_BYPASS No Dev bypass secret to skip payments
X402_PAYMENT_HEADER No Pre-signed payment header

Payment Networks

  • Base (EVM) — USDC, 6 decimals, ~2s confirmation
  • Solana — USDC, 6 decimals, ~400ms confirmation
  • MegaETH (EVM) — USDm, 18 decimals, ~10ms confirmation

How It Works

  1. Agent calls an MCP tool (e.g., llm_chat)
  2. MCP server makes HTTP request to x402engine.app
  3. Gateway returns 402 Payment Required with pricing
  4. Agent pays with crypto via the x402 protocol
  5. Gateway verifies payment on-chain and returns data

For automatic payment handling, use @x402/fetch in your agent code.

Links

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选