Gives agents access to pay-per-call tools such as headless browsing, web search, OCR and memory, paid in USDC over x402 or by card.
Setup
Choose your client, copy the config, then fill in any required environment variables.
Local
claude mcp add agent402 --env AGENT_KEY='<AGENT_KEY>' --env AGENT402_CREDITS_KEY='<AGENT402_CREDITS_KEY>' --env SOLANA_AGENT_KEY='<SOLANA_AGENT_KEY>' -- npx -y agent402-mcp~/.codex/config.toml
[mcp_servers.agent402]
command = "npx"
args = ["-y", "agent402-mcp"]
env = { AGENT_KEY = "<AGENT_KEY>", AGENT402_CREDITS_KEY = "<AGENT402_CREDITS_KEY>", SOLANA_AGENT_KEY = "<SOLANA_AGENT_KEY>" }
# codex mcp add agent402 --env AGENT_KEY='<AGENT_KEY>' --env AGENT402_CREDITS_KEY='<AGENT402_CREDITS_KEY>' --env SOLANA_AGENT_KEY='<SOLANA_AGENT_KEY>' -- npx -y agent402-mcp~/.cursor/mcp.json
{
"mcpServers": {
"agent402": {
"command": "npx",
"args": [
"-y",
"agent402-mcp"
],
"env": {
"AGENT_KEY": "<AGENT_KEY>",
"AGENT402_CREDITS_KEY": "<AGENT402_CREDITS_KEY>",
"SOLANA_AGENT_KEY": "<SOLANA_AGENT_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"agent402": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"agent402-mcp"
],
"env": {
"AGENT_KEY": "<AGENT_KEY>",
"AGENT402_CREDITS_KEY": "<AGENT402_CREDITS_KEY>",
"SOLANA_AGENT_KEY": "<SOLANA_AGENT_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"agent402": {
"command": "npx",
"args": [
"-y",
"agent402-mcp"
],
"env": {
"AGENT_KEY": "<AGENT_KEY>",
"AGENT402_CREDITS_KEY": "<AGENT402_CREDITS_KEY>",
"SOLANA_AGENT_KEY": "<SOLANA_AGENT_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"agent402": {
"command": "npx",
"args": [
"-y",
"agent402-mcp"
],
"env": {
"AGENT_KEY": "<AGENT_KEY>",
"AGENT402_CREDITS_KEY": "<AGENT402_CREDITS_KEY>",
"SOLANA_AGENT_KEY": "<SOLANA_AGENT_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"agent402": {
"command": "npx",
"args": [
"-y",
"agent402-mcp"
],
"env": {
"AGENT_KEY": "<AGENT_KEY>",
"AGENT402_CREDITS_KEY": "<AGENT402_CREDITS_KEY>",
"SOLANA_AGENT_KEY": "<SOLANA_AGENT_KEY>"
}
}
}
}Remote
claude mcp add --transport http agent402 https://agent402.tools/mcp~/.codex/config.toml
[mcp_servers.agent402]
url = "https://agent402.tools/mcp"
# codex mcp add agent402 --url https://agent402.tools/mcp~/.cursor/mcp.json
{
"mcpServers": {
"agent402": {
"url": "https://agent402.tools/mcp"
}
}
}.vscode/mcp.json
{
"servers": {
"agent402": {
"type": "http",
"url": "https://agent402.tools/mcp"
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"agent402": {
"httpUrl": "https://agent402.tools/mcp"
}
}
}claude_desktop_config.json · Customize › Connectors › Add custom connector
{
"mcpServers": {
"agent402": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://agent402.tools/mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"agent402": {
"url": "https://agent402.tools/mcp"
}
}
}Environment variables
AGENT_KEYAGENT402_CREDITS_KEYSOLANA_AGENT_KEY
Replace the placeholders with your own credentials and keep them out of version control.