MCP-Pay
Provides an HTTP x402 monetization layer on Algorand, enabling AI agents to pay for MCP tools via Algorand USDC micropayments with on-chain settlement.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP-Pay
An HTTP x402 monetization layer on Algorand that lets AI agents pay for MCP tools on a sub-cent, pay-per-call basis.
Screenshots
|
|
|
|
(All six captures live in docs/.)
Related MCP server: Synergy MCP
Problem
Autonomous AI agents using the Model Context Protocol (MCP) cannot access paid tools: credit cards, API keys, and subscriptions are human workflows. Tool creators have no way to charge per call, and legacy chains are too slow or expensive for machine-to-machine micropayments.
Solution
MCP-Pay converts any MCP tool into an instantly monetized x402 endpoint on Algorand.
An agent discovers tools at
GET /mcp/v1/tools(free, includes JSON schemas + prices).The agent invokes
POST /mcp/v1/tools/:name/executewithout payment.The server answers
402 Payment Requiredwith payment metadata (price in USDC, receiver address, network).The agent's local middleware auto-signs an Algorand USDC transfer (ASA 31566704) and retries.
The GoPlausible facilitator verifies and settles on-chain (<3.3s finality), the tool executes, and results return in one round-trip.
No accounts. No keys. No humans.
USP
Typical paid API | MCP-Pay |
One hardcoded endpoint | Tool registry: any tool becomes a priced service with a schema |
Docs written for humans | Agent-native discovery: agents list, compare, and select tools programmatically |
Subscriptions / prepaid credits | True pay-per-call settled on-chain per request |
EVM gas kills micropayments | Algorand: ~0.001 ALGO fee, 3.3s finality |
Paid Tools Included
Tool | What it does | Price |
| Reader-mode extraction of any public web page for LLM context | $0.002 |
| Live crypto spot prices from a keyless public feed | $0.001 |
| Static heuristic security scan of Solidity source | $0.005 |
Architecture
┌────────────────────────┐
│ AI AGENT (client/) │ 1. GET /mcp/v1/tools (discovery)
│ auto-paying MCP agent │ 2. POST .../execute → 402 challenge
└───────────┬────────────┘ 3. sign USDC txn locally
│ 4. retry + X-PAYMENT header
▼
┌────────────────────────┐
│ MCP-PAY SERVER (Hono) │ x402 paymentMiddleware protects each tool route
│ registry + tools/* │ executes tool only after verified settlement
└───────────┬────────────┘
▼
┌────────────────────────┐
│ GOPLAUSIBLE FACILITATOR│ /verify + /settle on Algorand TestNet
│ https://facilitator. │ USDC (ASA 31566704) transfer
│ goplausible.xyz │
└────────────────────────┘Tech Stack
TypeScript, Hono
@x402-avm/extensions(Bazaar discovery)GoPlausible facilitator, Algorand TestNet USDC
Run Locally
1. Prerequisites
Node.js 18+, pnpm (
npm i -g pnpm)Two funded Algorand TestNet accounts:
Server wallet (receiver): address only
Agent wallet (payer): mnemonic, kept local — never committed
Fund via Lora faucet, opt both into USDC in Lora, then get TestNet USDC from the Circle faucet (choose Algorand Testnet).
2. Configure
pnpm install
cp .env.example .envFill .env:
AVM_ADDRESS=<server wallet address> # receiver
AVM_MNEMONIC="<agent 25-word mnemonic>" # payer, LOCAL ONLY
SERVER_URL=http://localhost:40213. Start server + run agent
pnpm server # terminal 1
pnpm agent # terminal 2: discovery → 402 → auto-pay → resultLive Deployment
Production server running on Railway:
https://mcp-pay-production.up.railway.appTry it: GET /health or browse GET /mcp/v1/tools — then pay with any x402 client.
Verify On-Chain
Every successful call settles a real TestNet transaction:
Facilitator dashboard: https://facilitator.goplausible.xyz/dashboard
Lora explorer: https://lora.algokit.io/testnet
Verified settlements from actual demo runs:
Tool | Price | Transaction |
| $0.002 | |
| $0.001 | |
| $0.005 | settled (see facilitator dashboard) |
| $0.001 |
API
Endpoint | Payment | Description |
| free | liveness |
| free | tool catalog with schemas + prices |
| x402 | execute a tool, pay-per-call |
Roadmap
Spend-policy guard: per-agent budgets enforced by the middleware
Creator dashboard: register your own MCP tool + price in minutes
Bazaar listing at GoPlausible so any third-party agent can discover MCP-Pay tools
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Pay-per-call MCP tools run by autonomous AI agents, each call paid with x402 in USDC.
Pay-per-use tool marketplace for AI agents. Search, price-check, and call APIs via MCP.
x402 pay-per-call APIs over MCP, settled in USDC on Base for autonomous agents and developers.
Metered MCP tools: free discovery over MCP; per-call execution settled in USDC via x402 v2.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to discover, call, and pay for existing HTTP APIs over MCP with x402 paywalls, non-custodial settlement, and no code changes to the backend.322 npm68Apache 2.0
- AlicenseNot gradedqualityCmaintenanceExposes a live catalogue of specialist tools as MCP endpoints and returns x402 payment challenges for each call, letting agents pay per use in USDC from their own wallet without subscriptions or API keys.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI clients to discover, trust-check, and pay for Algorand x402 services in USDC, with policy-guarded spending, relay fallback, and an audit ledger.6 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents and humans to call paid skills—summarization, translation, data extraction, code snippets, analysis, charts, and reports—with x402 USDC micropayments over MCP or HTTP.MIT



