a402-pay-mcp
MCP server by agent402-dev Community
Pay x402 APIs in USDC from your own wallet on Solana or Base, within limits you set.
Install a402-pay-mcp
Built from the published package, never by AI.
claude mcp add a402-pay-mcp -- npx -y @agent402-dev/pay-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"a402-pay-mcp": {
"command": "npx",
"args": [
"-y",
"@agent402-dev/pay-mcp"
]
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"a402-pay-mcp": {
"command": "npx",
"args": [
"-y",
"@agent402-dev/pay-mcp"
]
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"a402-pay-mcp": {
"command": "npx",
"args": [
"-y",
"@agent402-dev/pay-mcp"
]
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add a402-pay-mcp -- npx -y @agent402-dev/pay-mcp{
"mcpServers": {
"a402-pay-mcp": {
"command": "npx",
"args": [
"-y",
"@agent402-dev/pay-mcp"
]
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add a402-pay-mcp npx -y @agent402-dev/pay-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the a402-pay-mcp block.
What you need
| Setting | Needed | What it is |
|---|---|---|
X402_Environment variable | Optional | Path to the payment wallet key file (Solana CLI JSON). Without it nothing is paid. |
X402_Environment variable | Optional | Allowed domains, comma-separated. Empty: every payment refused. |
X402_Environment variable | Optional | Trusted recipient addresses, comma-separated. Empty: every payment refused. |
X402_Environment variable | Optional | USDC (default) or USDC,PREQ. A402 (v1) is deprecated. |
X402_Environment variable | Optional | Max USDC per payment in USD (default 0.05) |
X402_Environment variable | Optional | Max USDC per UTC day in USD (default 1) |
X402_Environment variable | Optional | Max payments per UTC day (default 20) |
X402_Environment variable | Optional | Max USDC per recipient per UTC day in USD (default off) |
X402_Environment variable | Optional | Max PREQ per payment, in PREQ smallest units (1 PREQ = 1,000,000). Not set: PREQ refused. |
X402_Environment variable | Optional | Max PREQ per UTC day, in PREQ smallest units (1 PREQ = 1,000,000). Not set: PREQ refused. |
X402_Environment variable | Optional | Max PREQ per recipient per UTC day, in PREQ smallest units (1 PREQ = 1,000,000). Default off. |
X402_Environment variable | Optional | Ask a human at or above this USDC amount (USD). Default off. |
X402_Environment variable | Optional | Ask a human at or above this PREQ amount (PREQ smallest units). Default off. |
X402_Environment variable | Optional | yes = pay only sellers whose registered on-chain lock meets the minimums (default off) |
X402_Environment variable | Optional | Require a seller lock only for USDC payments at or above this amount (USD) |
X402_Environment variable | Optional | The minimum must still be locked this many days from now (default 90) |
X402_Environment variable | Optional | Minimum PREQ locked by the seller, PREQ smallest units (1 PREQ = 1,000,000) |
X402_Environment variable | Optional | Minimum USDC locked by the seller, USDC smallest units (1 USDC = 1,000,000) |
X402_Environment variable | Optional | Minimum wrapped SOL locked by the seller, lamports (1 SOL = 1,000,000,000) |
X402_Environment variable | Optional | Agent402 Bond: seller addresses you may open deals with, comma-separated. Empty: bond_open refused. |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Alternatives to a402-pay-mcp
All alternatives →Connects AI assistants to Stripe through the hosted Stripe MCP server at mcp.stripe.com. It is for developers building AI-powered products and businesses on Stripe.
Gives AI assistants market data, technical analysis, backtests, options activity and news sentiment for stocks, crypto, FX and metals. Built for traders and developers using Claude, ChatGPT, Cursor or other MCP clients. Its outputs are informational, not financial advice.
CCXT is an official MCP server for market data and trading across more than 100 exchanges and prediction markets. It is aimed at developers, traders and AI agents.
Calculates over 1400 transparent financial methods from raw statements and exposes them to AI assistants through an MCP server. Suited to analysts and developers who want to see how each metric is computed.
Lets an AI assistant search x402 APIs and pay for them in USDC from a local, non-custodial wallet. Built for people and agents that need to pay APIs per call under spend caps.
Lets AI assistants explore a free database of over 300,000 symbols, including equities, ETFs, funds, indices, currencies and cryptocurrencies, categorised by sector, industry and country. It suits private investors who want to discover products rather than look up fundamentals or stock data.
Compare with mcp, TradingMCP or CCXT
a402-pay-mcp: common questions
How do I install a402-pay-mcp?
In Claude Code run claude mcp add a402-pay-mcp -- npx -y @agent402-dev/pay-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is a402-pay-mcp the official server?
a402-pay-mcp is a community project by agent402-dev, not verified by a company domain.
Is a402-pay-mcp free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is a402-pay-mcp safe to use?
It scores 84 of 100. Grades: maintenance A, licence A, quality C. The security check has not run for it yet. Review the code before you install. How grades work.
What are alternatives to a402-pay-mcp?
Similar MCP servers: mcp, TradingMCP, CCXT, Finance Toolkit.
Does a402-pay-mcp work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
