cipher-x402-mcp

cipher-x402-mcp

MCP server providing Solana/crypto/macro tools (wallet scan, password breach, Jito tip, GitHub health, FRED series, Drift exposure, premium chapters) with x402 payment gating (USDC on Base) for 7 of 8 tools.

Category
访问服务器

README

cipher-x402-mcp

CI License: MIT MCP x402 MCPize

An MCP server that exposes 8 Solana / crypto / macro tools to any MCP-aware client (Claude Desktop, Cursor, Cline, Continue, etc.). Seven of the tools are gated behind the x402 payment protocol — agents auto-pay in USDC on Base, $0.005 – $0.25 per tool call. One tool is free (educational).

The server is a forward-only relay: when an agent calls a paid tool without an X-PAYMENT header, we surface the upstream HTTP 402 + accept-list verbatim so the agent's own wallet signs the payment. We never custody caller funds.

Free + MIT-licensed. Fork it, ship your own, no strings.


Hosted Plans (MCPize)

Prefer not to self-host? A managed listing is live on MCPize with gateway proxying, rate limiting, API-key auth, and consolidated billing:

mcpize.com/mcp/cipher-x402-mcp

Plan Price Requests / mo Rate limit Includes
Free $0 100 10 / min Free tools + solana_wallet_scan
Starter $9 1,000 60 / min 4 read-only tools (scan, HIBP, repo health, FRED)
Pro (recommended) $29 5,000 120 / min All 8 tools, priority GitHub support
Team $99 25,000 600 / min All 8 tools + custom upstream override, 24h response SLA

Pay-as-you-go via MCPize's gateway. Self-host is still free (this repo, MIT).


Tools

Tool Price (USDC, Base) Upstream
solana_wallet_scan(address) $0.01 cipher-scan-three.vercel.app
check_password_breach(sha1_prefix) $0.005 cipher-pwned.vercel.app
jito_tip_calculator(pool_depth, expected_profit, slot_prob) $0.01 cipher-jito-tip.vercel.app
github_repo_health(owner, repo) $0.02 cipher-repo-health.vercel.app
fred_macro_series(series_id) $0.005 cipher-fred.vercel.app
check_drift_exposure(wallet) $0.01 cipher-drift-exposure.vercel.app
solana_wallet_security_audit_rules() free local (v1.1.0 ruleset)
get_premium_cipher_chapter(slug) $0.25 cipher-x402.vercel.app

Base network, USDC asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913. The current x402 payout recipient is exposed via the root / JSON manifest at runtime — agents discover it automatically, you don't configure it by hand.

Install (Claude Desktop)

Add this to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "cipher-x402": {
      "command": "npx",
      "args": ["-y", "cipher-x402-mcp"]
    }
  }
}

Restart Claude Desktop. The 8 tools show up in the tool tray.

Install (Cursor / Cline / Continue)

Any MCP-over-stdio client works the same way — the launcher is npx -y cipher-x402-mcp.

Install (Smithery)

npx -y @smithery/cli install cipher-x402-mcp --client claude

Remote HTTP transport

Deployed at https://cipher-x402-mcp.vercel.app/mcp (streamable HTTP). Probe the manifest at the root URL.

How payment works

  1. Agent calls (e.g.) solana_wallet_scan({ "address": "..." }) without a payment.
  2. Server returns a structured result starting with HTTP 402 Payment Required — upstream returned an x402 accept-list. followed by the JSON accept-list (price, network, payTo, asset, etc.).
  3. Agent's wallet signs an EIP-3009 authorization for the advertised maxAmountRequired.
  4. Agent re-invokes the same tool with { "address": "...", "_payment": "<base64-signed-header>" }.
  5. Server forwards the X-PAYMENT header upstream, upstream's facilitator verifies + settles on Base, and the content is returned to the agent.

The server itself is stateless — no API keys, no user session, no funds.


🏃 Run it yourself

Prerequisites

  • Node.js 20+ (22 recommended)
  • npm 10+
  • A Vercel account (free tier) if you want to deploy the HTTP transport
  • No API keys required for local stdio use — the server is a pass-through to public upstream endpoints

Clone + build

git clone https://github.com/cryptomotifs/cipher-x402-mcp
cd cipher-x402-mcp
npm install
npm run build
npm run smoke     # tool-registry smoke test
npm start         # stdio transport
npm run start:http  # HTTP transport on :8080

Configure your own upstream endpoints (optional)

All upstream base URLs are overridable via env — useful if you fork the upstream endpoints to your own Vercel project and want the MCP server to route to them:

CIPHER_SCAN_API_URL=https://your-scan.example.com \
CIPHER_PWNED_URL=https://your-pwned.example.com \
CIPHER_JITO_TIP_URL=https://your-jito.example.com \
CIPHER_REPO_HEALTH_URL=https://your-repo-health.example.com \
CIPHER_FRED_URL=https://your-fred.example.com \
CIPHER_DRIFT_URL=https://your-drift.example.com \
CIPHER_X402_URL=https://your-x402.example.com \
  npx cipher-x402-mcp

Deploy to Vercel

vercel link
vercel --prod

The /mcp route serves MCP JSON-RPC messages; / serves a lightweight JSON manifest used by registries.


🛒 Buy

A few small paid sidecars if the MCP is useful and you want to go deeper — all direct-pay, no platform middleman:

Also available as a managed MCPize listing: mcpize.com/mcp/cipher-x402-mcp — Free / $9 / $29 / $99 per month.


🙏 Support

This is free + MIT. If it saved you time, tips in SOL are appreciated:

cR9KrbsLVJvir5rY9cfY3WeNoxMwUGofzpCoVyobryy

No pressure — star the repo or share it and that's equally valued.


💼 Hire me

Solo Canadian dev (Ontario, ET). Available 20 hr/wk for x402 / MCP / Solana integration work.

Fixed-price SKUs:

# Service Price Duration
1 Wire x402 into your Next.js / Node app — merged PR + live test $900 2 days
2 x402 or Solana bot architecture + security review — written report + 60-min call $1000 1 day
3 AI-agent paid-API: 0 → live on Base with MCP wrapper $1200 3 days

Hourly: $150/hr open-scope, 5-hour minimum block. $125/hr if 40+ hours upfront.

Payout: USDC on Base 0x2a33D2414312e8776dA4011c2586c2d067267210, USDC on Solana cR9KrbsLVJvir5rY9cfY3WeNoxMwUGofzpCoVyobryy, or Wise-USD on request.

Engage: open an issue titled [Consulting]: <what you need> on this repo, or DM @cryptomotifs@techhub.social. I reply within the hour with scope + 50% deposit address.

Walkthrough of the settlement-path hardening I ship: dev.to/sai_93caeceb4f6a4d9969910/shipped-x402-paid-endpoint-starter-kit-nextjs-16-5g39

Also: prompt packs for Solana / x402 / MCP devs at cipher-checkout.vercel.app — 5 packs covering Anchor audit, x402 + MCP design, Solana bot engineering, crypto dev productivity, and a 20%-off bundle. Card or crypto.


Related

Niche x402 endpoints (non-crypto agent surfaces)

License

MIT — see LICENSE.

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选