MCP Pay Server

MCP Pay Server

mcp-pay-server•bynexiansorg

A standalone Model Context Protocol server with HTTP+SSE transport that exposes tools, resources, and prompts and includes a USDC pre-pay credit system on Base.

License: Not specified•Runtime: Awaiting documentation review•Category: finance crypto

WHAT IT DOES

  • •Exposes MCP tools, resources, and prompts over HTTP+SSE for bidirectional communication.
  • •Monitors a configured deposit address for USDC deposits on Base or Base Sepolia and credits the sender in an internal ledger.
  • •Uses central middleware to verify payer signatures and check balances against a tool's cost before executing paid tools.
  • •Exposes a free balance check tool and a deposit info resource describing payment capabilities.

BEST FOR

  • •Running an MCP server whose tools require per-call prepaid USDC credits with signature-verified payer identity.
  • •Clients that want to discover a server's paid tools, costs, and deposit address before use.

ABOUT MCP-PAY-SERVER

MCP Pay Server is cataloged as an MCP server attributed to nexiansorg. A standalone Model Context Protocol server with HTTP+SSE transport that exposes tools, resources, and prompts and includes a USDC pre-pay credit system on Base. It is categorized under finance crypto. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP Pay Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How does a client add credit to use paid tools?

Clients fetch capabilities, read the deposit info resource to obtain the USDC deposit address, then send USDC on the configured network; the server credits the sender in its internal ledger.

Which tools are free versus paid by default?

The greet tool requires payment by default at 0.05 USDC, while payments_getBalance is free and needs no signature.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 7e9792cf12ca · 采集于 2026-11-13 11:46:37 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

MCP Pay Server

A standalone implementation of the Model Context Protocol (MCP) server with HTTP+SSE transport, including a basic pre-pay credit system.

Features

  • Exposes MCP tools, resources, and prompts
  • Supports HTTP+SSE for bidirectional communication
  • Implements a simple payment layer using USDC deposits on Base (or Base Sepolia)
  • Built with Express, TypeScript, Viem, and Zod

Setup

  1. Install dependencies:

    npm install
    
  2. Configure Environment Variables: Create a .env file in the root directory (mcp-pay-server/.env) with the following:

    # Required: Public address of the wallet the server will watch for USDC deposits
    SERVER_DEPOSIT_ADDRESS=0xYourServerWalletPublicAddress
    
    # Optional: RPC URL for Base or Base Sepolia (defaults provided)
    # BASE_RPC_URL=https://your-base-rpc-url
    
    # Optional: Port for the server (defaults to 3000)
    # PORT=3001
    
    • SERVER_DEPOSIT_ADDRESS: The public 0x... address the server should monitor for incoming USDC deposits.
    • BASE_RPC_URL: The RPC endpoint for interacting with the Base blockchain (mainnet or Sepolia).
    • PORT: The port the HTTP server will listen on.

Usage

Start the server:

npm start

This will start the MCP server and begin watching for USDC deposits to the configured SERVER_DEPOSIT_ADDRESS.

Payment System Overview

This server uses a pre-pay credit system verified via cryptographic signatures. Clients fetch the payment capabilities separately after connecting.

  1. Connect: Client connects to the server.
  2. Fetch Capabilities: Client calls the payments/getCapabilities method to receive:
    • The URI of the resource providing deposit information (e.g., mcp-pay://server/payment/info).
    • The name of the tool used for checking balances (e.g., payments_getBalance).
    • A list of tools that require payment and their associated cost (as strings).
  3. Deposit Info: Clients read the deposit info resource (URI obtained from capabilities) to get the server's USDC deposit address.
  4. Credit: Clients send USDC (on the configured network) to the deposit address. The server monitors this address and credits the sender's account in its internal ledger.
  5. Paid Tool Usage: When a client calls a tool identified as paid in the capabilities:
    • It must include __payer (its 0x... address) and __signature (ECDSA signature of the canonical request) in the params.arguments.
    • The server's central middleware verifies the signature and checks the payer's balance against the tool's cost before executing the tool logic.
    • If verification succeeds, the tool executes. If the tool execution is successful, the cost is deducted from the payer's balance.
  6. Balance Check: Clients use the balance check tool (name obtained from capabilities) with their payerAddress as an argument. This tool does not require a signature.

Available Endpoints

  • POST /mcp - For client requests to the server (requires mcp-session-id header). Handles general MCP methods and payments/getCapabilities.
  • GET /mcp - For SSE (Server-Sent Events) stream (requires mcp-session-id header).

Payment Capabilities (Exposed via payments/getCapabilities)

  • Deposit Info Resource URI: mcp-pay://server/payment/info (by default)
  • Balance Check Tool: payments_getBalance (by default)
  • Paid Tools (Example):
    • greet: 0.05 USDC (by default)
    • (Others can be configured)

Available Tools

  • greet: A simple greeting tool (Requires payment by default).
  • payments_getBalance: Returns the credit balance for the calling wallet (Free).

Available Resources

  • mcp-pay://server/payment/info: Returns the server's deposit address.

Development

Build the TypeScript code:

npm run build

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP Pay Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-pay-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related finance crypto MCP Servers

Alternative and complementary servers in the same category

View all in finance crypto →
USA Spending MCP Server
usaspending-mcp-server•thsmale

A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

Repository stats unavailable
Finance & Analytics
Fortnox MCP server — More AI
more-ai-chatgpt-claude-mcp-fortnox•amor3

A hosted, remote MCP server for Fortnox that lets AI assistants answer questions from a company's bookkeeping and propose changes for approval before writing them.

0
Finance & Analytics

OptimistFi is a read-only remote MCP server that provides perpetual futures market data, perps prop firm rules and pricing, and US equity investment research.

Repository stats unavailable
Finance & Analytics