X402 MCP
MCP server by x402-foundation Verified · npm:@x402
x402 Payment Protocol
Install X402 MCP
Built from the published package, never by AI.
claude mcp add x402-mcp -- npx -y @x402/mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"x402-mcp": {
"command": "npx",
"args": [
"-y",
"@x402/mcp"
]
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"x402-mcp": {
"command": "npx",
"args": [
"-y",
"@x402/mcp"
]
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"x402-mcp": {
"command": "npx",
"args": [
"-y",
"@x402/mcp"
]
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add x402-mcp -- npx -y @x402/mcp{
"mcpServers": {
"x402-mcp": {
"command": "npx",
"args": [
"-y",
"@x402/mcp"
]
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add x402-mcp npx -y @x402/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 x402-mcp block.
Alternatives to X402 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
X402 MCP: common questions
How do I install X402 MCP?
In Claude Code run claude mcp add x402-mcp -- npx -y @x402/mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is X402 MCP the official server?
X402 MCP is published by npm:@x402 from its verified domain in the official MCP Registry.
Is X402 MCP free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is X402 MCP safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality B. The security check has not run for it yet. Review the code before you install. How grades work.
What are alternatives to X402 MCP?
Similar MCP servers: mcp, TradingMCP, CCXT, Finance Toolkit.
Does X402 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.
