Best for
- Developers who want to set per-call, per-token, or dynamic pricing for MCP or OpenAPI services through x402.
- Users and agents that need CLI or SDK access to pay-per-call MCP services.
This gateway aggregates or proxies other MCP servers; it only becomes useful once you connect real servers behind it.
The README describes MCPay as payment infrastructure for MCP and x402, with a paid-service registry, proxy, SDK, and CLI examples. It provides no server manifest or tool list; the sample configuration connects to a remote paid service shown in the README.
Strongest · Setup experience 11/20 Weakest · Maintenance 5/20
Static review · not runReviewed 2026-11-30
Read the FMRS scoring method →Runtime:Node.js
EVM_PRIVATE_KEY
The SDK example uses this variable for an EVM wallet private key; the CLI also supports an API key or wallet arguments.
Add the shown mcpay connect command to your MCP client configuration, replacing the example server URL and API key with your own values. The README also shows connection options using EVM or SVM wallet keys. No server manifest is provided at the repository root.
{
"mcpServers": {
"Paid Server": {
"command": "npx",
"args": [
"mcpay",
"connect",
"--urls",
"https://mcpay.tech/v1/mcp/05599356-7a27-4519-872a-2ebb22467470",
"--api-key",
"mcpay_YOUR_API_KEY"
]
}
}
}
Works in clients that read an "mcpServers" key. For clients such as VS Code that use a different key, the configurator below converts it.
{
"servers": {
"Paid Server": {
"command": "npx",
"args": [
"mcpay",
"connect",
"--urls",
"https://mcpay.tech/v1/mcp/05599356-7a27-4519-872a-2ebb22467470",
"--api-key",
"mcpay_YOUR_API_KEY"
]
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
[mcp_servers."Paid Server"] command = "npx" args = ["mcpay", "connect", "--urls", "https://mcpay.tech/v1/mcp/05599356-7a27-4519-872a-2ebb22467470", "--api-key", "mcpay_YOUR_API_KEY"]
Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).
claude mcp add 'Paid Server' -- npx mcpay connect --urls https://mcpay.tech/v1/mcp/05599356-7a27-4519-872a-2ebb22467470 --api-key mcpay_YOUR_API_KEY
Run it in a terminal; replace any <…> placeholders with your own values first.
Confirm the server connects in your MCP client and that it returns an available tools list.
MCPay is open-source infrastructure for MCP and x402 that can add pay-per-call payments to MCP or OpenAPI services. Its proxy handles 402 price negotiation, on-chain payment confirmation, and request retries, and the project provides a server registry and SDK. The README shows a CLI configuration for connecting to remote MCP services over stdio and a programmatic connection example using a Streamable HTTP client and SDK.
Connect code, docs, and infrastructure in a local knowledge graph.
Docker's official MCP gateway CLI plugin for managing and running MCP servers.
Fast, low-cost structured judgments for agents.
Local call graphs and structural analysis for Go repositories.
Source revision b6b7fe1e9468 Data synced 2026-12-05 Read the FMRS scoring method Markdown