← Back to directory
M

MCPay

Community
Gateway / proxy
Add pay-per-call on-chain payments to MCP services.

This gateway aggregates or proxies other MCP servers; it only becomes useful once you connect real servers behind it.

Category
Dev Tools #651 of 751
Stars
★ 90 Popular
Transport
stdio (local process) · Streamable HTTP
Runtime
Node.js
Credentials
API key / credential required
License
Other / unspecified
Last commit
⚠
39FMRS · D

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

Reliability
7/20
Security and permissions
6/20
Maintenance
5/20
Documentation
10/20
Setup experience
11/20
Why each score
Reliability 7/20
The README describes the x402 payment negotiation and retry flow after payment confirmation, and provides MCP client and paid-server examples, making the intended happy path reasonably clear. It provides no server manifest, CI, tests, or error-handling evidence, so initialization, tool listing, and actual behavior cannot be verified; points are deducted for that uncertainty.
Security and permissions 6/20
The README shows EVM/SVM wallet keys or secrets and API keys, and mentions a maximum payment value and policy-based proxy, indicating credential and on-chain payment risks alongside some controls. It does not explain credential storage, permission scope, data flows, payment confirmation, or limits on dangerous operations. The examples use placeholder credentials, so no red line is triggered.
Maintenance 5/20
The repository metadata says it is not archived and reports 90 stars and 24 open issues; the README claims Apache 2.0, while the object metadata says NOASSERTION. There is no evidence here of releases, commit activity, issue response, dependency updates, or a security response channel, so maintenance receives limited credit.
Documentation 10/20
The README covers the product purpose, architecture flow, SDK, paid-tool code example, and CLI configuration, with examples for several networks and payment paths. It lacks a server manifest, detailed parameter and permission information, cost and limit disclosures, troubleshooting guidance, and verifiable implementation evidence, leaving material assumptions despite being usable for orientation.
Setup experience 11/20
The README provides an npx CLI connection example, an MCP client configuration snippet, and an SDK connection example, with API key and wallet authentication paths. Runtime preparation, platform compatibility, secure key configuration, and end-to-end verification are not fully documented; without CI and test evidence, the score is limited.

Static review · not runReviewed 2026-11-30

Read the FMRS scoring method →

Fit and risk

What it can accessUses the network

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.

Not for

  • Users expecting this repository to provide a declared set of MCP tools; the README does not list a tool catalog.
  • Users who do not want on-chain payments, wallets, or a payment proxy involved.

Required permissions

  • When using an API key, access to that key is needed for the configured paid service.
  • Wallet payments require the relevant EVM or SVM wallet credentials; the README example supports setting a maximum payment value.
  • Remote service access requires network access and may result in on-chain payments.

Risks and side effects

  • Exposure of wallet keys can result in loss of funds; the README cautions against handling private keys insecurely in production.
  • Paid calls involve on-chain transactions, with amounts and networks determined by service pricing and the selected network.
  • The proxy forwards requests and retries them after payment confirmation; verify the target service, price metadata, and payment policy.

Setup

Before you start

Runtime:Node.js

EVM_PRIVATE_KEY optionalsecret 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.

MCP config · JSON
{
  "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.

.vscode/mcp.json
{
  "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).

~/.codex/config.toml
[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).

Terminal
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.

Check that it works

Confirm the server connects in your MCP client and that it returns an available tools list.

Troubleshooting

  1. Check the server URL, API key or wallet parameters, and EVM/SVM network settings.
  2. Confirm the target service is reachable and inspect its 402 price metadata and payment confirmation status.
  3. For MCP client configuration, confirm the client can run npx and correctly loads the mcpay connect stdio configuration.

Use cases

Connect through a proxy to remote MCP services that require x402 payments.
Use the SDK to set pay-per-call pricing for MCP tools or HTTP endpoints.
Discover priced MCP services in the MCPay registry.

Overview

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.

Similar servers

Source revision b6b7fe1e9468 Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/mcpay.svg)](https://followmcp.com/en/servers/mcpay)