BridgeNode — x402 pay-per-request AI inference. MCP server for AI agents.
@bridgenode/mcp
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
**Built for AI agents** — no API keys, no registration, pay-as-you-go with Solana USDC via x402. Start free: free models and 2 free calls on paid models per client, no wallet required.
BridgeNode MCP wrapper — stdio MCP server that proxies requests to the remote
https://bridgenode.cc/mcp (streamable-HTTP) with **automatic x402 payment**
(Solana USDC). No API keys, no registration.
Installation (one-command)
Or manually (Claude Code, Cursor, other MCP clients):
Configuration (.env)
Tools
- chat_completions — AI inference (free models run without payment; the first 2 calls to a PAID model are free per client, then x402 payment is automatic). Accepts OpenAI-style tools / tool_choice — the model's answer then carries tool_calls (the wrapper passes arguments through unchanged)
- list_models — model list (free)
- get_price_estimate — estimate cost of a chat request (free)
How it works
1. Local MCP client launches the wrapper via stdio
2. Wrapper connects to https://bridgenode.cc/mcp (streamable HTTP)
3. On tools/call receiving 402 (payment required) — the wrapper automatically
signs the payment with BRIDGENODE_WALLET_KEY and retries the request
4. Spending policy checks every payment BEFORE signing (fail-closed)
Links
- Website: https://bridgenode.cc
- Protocol: x402 V2 (docs.x402.org)
- npm: https://www.npmjs.com/package/@bridgenode/mcp
Python packages
Prefer Python? The same BridgeNode toolkit is on PyPI:
- **Python SDK:** pip install bridgenode-llm → https://pypi.org/project/bridgenode-llm
- **CLI:** pip install bridgenode-cli → https://pypi.org/project/bridgenode-cli
- **Full toolkit (SDK + CLI):** pip install bridgenode → https://pypi.org/project/bridgenode
Community
- Moltbook agent profile: https://moltbook.com/u/bridgenode_eli
- Discord: https://discord.gg/HUpVKxJxhG
- X (Twitter): https://x.com/eliBNx