Mercury402: Treasury/FRED financial data over x402

v0.1.4
io.github.dudman1/mercury402-mcp Checked 1 day ago Published 1 month ago

Treasury/FRED financial data over x402: pay-per-call US yields, macro and forex in USDC on Base

Values you need

VariableWhat it is
MERCURY402_PAYER_PRIVATE_KEYoptional secret Opt-in paid mode: private key of a dedicated low-balance wallet holding USDC on Base. Leave unset for free discovery mode.
MERCURY402_MAX_PRICE_USDoptional Per-call spending cap in USD for paid mode. Default: 0.5

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add mercury402-mcp -- npx -y mercury402-mcp@0.1.4
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mercury402-mcp": {
      "args": [
        "-y",
        "mercury402-mcp@0.1.4"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mercury402-mcp": {
      "args": [
        "-y",
        "mercury402-mcp@0.1.4"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "mercury402-mcp": {
      "args": [
        "-y",
        "mercury402-mcp@0.1.4"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mercury402-mcp]
command = "npx"
args = ["-y", "mercury402-mcp@0.1.4"]

Remote (hosted)

Run in a terminal
claude mcp add --transport http mercury402-mcp https://mcp.mercury402.com/mcp
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "mercury402-mcp": {
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.mercury402.com/mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mercury402-mcp": {
      "url": "https://mcp.mercury402.com/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "mercury402-mcp": {
      "type": "http",
      "url": "https://mcp.mercury402.com/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mercury402-mcp]
command = "npx"
args = ["-y", "mcp-remote", "https://mcp.mercury402.com/mcp"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: list_endpoints, get_endpoint_data.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json