What does MCP Pay Server do?
It acts as an MCP server that requires clients to pre-pay with USDC before executing certain tools, using cryptographic signature verification to authorize payments.
@nexiansOrg
基本情報
概要はまだありません
A simple greeting tool (Requires payment by default).
Returns the credit balance for the calling wallet (Free).
MCP Pay Server is a standalone implementation of the Model Context Protocol (MCP) server with HTTP+SSE transport that includes a basic pre-pay credit system using USDC deposits on Base (or Base Sepolia). It is built for developers who want to require payment for MCP tool usage.
Install dependencies with npm install, configure a .env file in the root directory with SERVER_DEPOSIT_ADDRESS (required), BASE_RPC_URL (optional), and PORT (optional), then start with npm start. The server watches for USDC deposits and clients must include __payer and __signature in paid tool calls.
payments/getCapabilities methodIt acts as an MCP server that requires clients to pre-pay with USDC before executing certain tools, using cryptographic signature verification to authorize payments.
The server requires Node.js, npm, a configured `.env` file with `SERVER_DEPOSIT_ADDRESS`, and optionally a custom RPC URL for Base or Base Sepolia. It runs on port 3000 by default.
Payments are tracked by monitoring USDC deposits on the Base blockchain to the configured `SERVER_DEPOSIT_ADDRESS`. Balances are stored in the server’s internal ledger.
The server uses HTTP+SSE transport. Authentication for paid tools requires clients to include `__payer` (their Ethereum address) and `__signature` (ECDSA signature of the canonical request) in tool call arguments.
The cost for paid tools (e.g., `greet` at 0.05 USDC) is deducted only if the tool execution succeeds. Signature verification and balance check happen before execution. The balance check tool `payments_getBalance` is free and requires no signature.
This open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,

Model Context Protocol Servers
🚀 The fast, Pythonic way to build MCP servers and clients.
Open-source MCP to use Blender with any LLM

Model Context Protocol Servers
コメント