X402 Tools MCP
melis x402 Tools — 22 pay-per-call APIs for AI agents. No accounts, no API keys. USDC on…
- Pricing
- Open source
- Runs
- Locally
- Version
- 0.1.4
- Listing updated
- 5 days ago
About X402 Tools MCP
X402 Tools MCP is an open-source MCP server. It runs locally on your machine and is started by your AI client.
melis x402 Tools — 22 pay-per-call APIs for AI agents. No accounts, no API keys. USDC on Base.
Install
Run in a terminal
claude mcp add x402-tools-mcp --env X402_PAYMENT_HEADER='<X402_PAYMENT_HEADER>' --env X402_INTERNAL_KEY='<X402_INTERNAL_KEY>' -- npx -y @melis-ai/x402-tools-mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"x402-tools-mcp": {
"command": "npx",
"args": [
"-y",
"@melis-ai/x402-tools-mcp"
],
"env": {
"X402_PAYMENT_HEADER": "<X402_PAYMENT_HEADER>",
"X402_INTERNAL_KEY": "<X402_INTERNAL_KEY>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"x402-tools-mcp": {
"command": "npx",
"args": [
"-y",
"@melis-ai/x402-tools-mcp"
],
"env": {
"X402_PAYMENT_HEADER": "<X402_PAYMENT_HEADER>",
"X402_INTERNAL_KEY": "<X402_INTERNAL_KEY>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"x402-tools-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@melis-ai/x402-tools-mcp"
],
"env": {
"X402_PAYMENT_HEADER": "<X402_PAYMENT_HEADER>",
"X402_INTERNAL_KEY": "<X402_INTERNAL_KEY>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"x402-tools-mcp": {
"command": "npx",
"args": [
"-y",
"@melis-ai/x402-tools-mcp"
],
"env": {
"X402_PAYMENT_HEADER": "<X402_PAYMENT_HEADER>",
"X402_INTERNAL_KEY": "<X402_INTERNAL_KEY>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"x402-tools-mcp": {
"command": "npx",
"args": [
"-y",
"@melis-ai/x402-tools-mcp"
],
"env": {
"X402_PAYMENT_HEADER": "<X402_PAYMENT_HEADER>",
"X402_INTERNAL_KEY": "<X402_INTERNAL_KEY>"
}
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
X402_PAYMENT_HEADERSigned x402 payment token from your wallet client. Set if handling payments manually.X402_INTERNAL_KEYBypass key for trusted internal callers — skips x402 payment flow entirely.
Pricing
Open source
X402 Tools MCP FAQ
Is X402 Tools MCP free?
Yes. X402 Tools MCP is open source, so you can use and self-host it for free.
How do I add X402 Tools MCP to Claude Code?
Run this command in your terminal: claude mcp add x402-tools-mcp --env X402_PAYMENT_HEADER='<X402_PAYMENT_HEADER>' --env X402_INTERNAL_KEY='<X402_INTERNAL_KEY>' -- npx -y @melis-ai/x402-tools-mcp
Where this comes from
- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.