Skip to content
MCP server

Market Data (x402)

Pay-per-call market calendars, futures, macro and compliance data for agents

Runs locally

Market Data (x402) is a paid MCP server for finance and payments. It runs locally on your machine and is started by your AI client.

Pricing
Paid
Platforms
CLI, API
Runs
Locally
Version
0.5.0
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add market-data-mcp --env X402_PRIVATE_KEY='<X402_PRIVATE_KEY>' -- uvx x402-market-data-mcp

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "market-data-mcp": {
      "command": "uvx",
      "args": [
        "x402-market-data-mcp"
      ],
      "env": {
        "X402_PRIVATE_KEY": "<X402_PRIVATE_KEY>"
      }
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "market-data-mcp": {
      "command": "uvx",
      "args": [
        "x402-market-data-mcp"
      ],
      "env": {
        "X402_PRIVATE_KEY": "<X402_PRIVATE_KEY>"
      }
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "market-data-mcp": {
      "command": "uvx",
      "args": [
        "x402-market-data-mcp"
      ],
      "env": {
        "X402_PRIVATE_KEY": "<X402_PRIVATE_KEY>"
      }
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "market-data-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "x402-market-data-mcp"
      ],
      "env": {
        "X402_PRIVATE_KEY": "<X402_PRIVATE_KEY>"
      }
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add market-data-mcp --env X402_PRIVATE_KEY='<X402_PRIVATE_KEY>' -- uvx x402-market-data-mcp

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.market-data-mcp]
command = "uvx"
args = ["x402-market-data-mcp"]
env = { X402_PRIVATE_KEY = "<X402_PRIVATE_KEY>" }

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "market-data-mcp": {
      "command": "uvx",
      "args": [
        "x402-market-data-mcp"
      ],
      "env": {
        "X402_PRIVATE_KEY": "<X402_PRIVATE_KEY>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "market-data-mcp": {
          "command": "uvx",
          "args": [
            "x402-market-data-mcp"
          ],
          "env": {
            "X402_PRIVATE_KEY": "<X402_PRIVATE_KEY>"
          }
        }
      }
    }

    Or run: gemini mcp add -s user -e X402_PRIVATE_KEY='<X402_PRIVATE_KEY>' market-data-mcp uvx -- x402-market-data-mcp

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "market-data-mcp": {
          "command": "uvx",
          "args": [
            "x402-market-data-mcp"
          ],
          "env": {
            "X402_PRIVATE_KEY": "<X402_PRIVATE_KEY>"
          }
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "market-data-mcp": {
          "command": "uvx",
          "args": [
            "x402-market-data-mcp"
          ],
          "env": {
            "X402_PRIVATE_KEY": "<X402_PRIVATE_KEY>"
          }
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "market-data-mcp": {
          "command": "uvx",
          "args": [
            "x402-market-data-mcp"
          ],
          "env": {
            "X402_PRIVATE_KEY": "<X402_PRIVATE_KEY>"
          }
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "market-data-mcp": {
          "command": "uvx",
          "args": [
            "x402-market-data-mcp"
          ],
          "env": {
            "X402_PRIVATE_KEY": "<X402_PRIVATE_KEY>"
          }
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "market-data-mcp": {
          "command": "uvx",
          "args": [
            "x402-market-data-mcp"
          ],
          "env": {
            "X402_PRIVATE_KEY": "<X402_PRIVATE_KEY>"
          }
        }
      }
    }

    The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "market-data-mcp": {
          "command": "uvx",
          "args": [
            "x402-market-data-mcp"
          ],
          "env": {
            "X402_PRIVATE_KEY": "<X402_PRIVATE_KEY>"
          }
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "market-data-mcp": {
          "command": "uvx",
          "args": [
            "x402-market-data-mcp"
          ],
          "env": {
            "X402_PRIVATE_KEY": "<X402_PRIVATE_KEY>"
          }
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • X402_KEY_FILEPath to a file with the private key of a small, dedicated payment wallet (plain text or JSON with private_key). Without it only free tools work.
  • X402_PRIVATE_KEYAlternative to X402_KEY_FILE: private key of a small, dedicated payment wallet.
  • MAX_USDC_PER_CALLHighest price per call in USDC
  • MAX_USDC_PER_SESSIONTotal budget per server start in USDC

About Market Data (x402)

Each of the 53 paid tools calls an HTTP API protected by x402 and settles in USDC on Base from a wallet key you supply. Prices run from about 0.02 to 0.045 USDC per call, and five helper tools such as catalog_list and payment_status are free.

Spending is fenced in. The server pays only the known wallets of these APIs, only in USDC on Base mainnet, and stops at MAX_USDC_PER_CALL (default 0.05) and MAX_USDC_PER_SESSION (default 1.00). The README advises a separate small wallet, and says no ETH is needed because the x402 facilitator pays gas. Without a key, paid tools explain how to enable payment.

Coverage includes exchange hours for NYSE, Nasdaq, LSE, Xetra, SIX, Tokyo, Hong Kong, Shanghai and ASX, futures such as ES, NQ, FDAX and FESX, Treasury and ECB rates, CFTC positioning, sanctions screening, and LEI, VAT, IBAN and VIN lookups. The data comes from public sources including the U.S. Treasury, ECB, CFTC, GLEIF and openFDA, and the README states it is not investment advice.

Tools this server provides (8)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 4 of 8 tools read data; 4 names don't say.

From the server's own tool labels and tool names; not verified by us.

market_is_open
Checks whether an exchange is open
futures_roll_calendar
Futures roll calendar
treasury_yield_curve
US Treasury yield curve
sanctions_checkName suggests: reads
Screens against OFAC, UN, EU and SECO lists
lei_lookupName suggests: reads
Looks up a legal entity identifier
trading_briefing
Market-moving events of the next days in one call
catalog_listName suggests: reads
Free tool listing the catalogue
payment_statusName suggests: reads
Free tool showing payment status

What it does

Exchange hours and holidays
Checks whether a market is open and when it next opens or closes, plus holiday lists.
Futures calendars
Front-month contracts, expirations, roll calendars and contract specs for equity index futures.
Macro and rates
Treasury yield curve and spreads, ECB FX rates, inflation and CFTC positioning.
Risk and compliance checks
Sanctions screening against OFAC, UN, EU and SECO lists, plus weather alerts, earthquakes and FDA recalls.
Capped x402 payments
Per-call and per-session USDC limits, with payment only to the known API wallets.
Reference lookups
LEI, IBAN, BIC, VIN, EU VAT rates, time zones and country data.

Good for

  • Let an agent check whether a venue is open before scheduling a trade-related task
  • Find the next futures roll date for a contract
  • Pull the current US yield curve and 2s10s spread into a briefing
  • Screen a counterparty name against sanctions lists
  • Validate an IBAN or look up a company LEI during onboarding

Pricing

Paid

Per-call USDC pricing, about 0.0205 to 0.0455 per paid call; five helper tools are free; code is MIT licensed

Market Data (x402) FAQ

How are paid calls charged?

Each paid tool settles in USDC on Base through x402 using a wallet key you provide. Calls cost roughly 0.0205 to 0.0455 USDC.

Can I use Market Data (x402) without a wallet?

Yes, but only the five free helper tools work. Paid tools explain how to enable payment.

How do I limit spending?

Set MAX_USDC_PER_CALL (default 0.05) and MAX_USDC_PER_SESSION (default 1.00). The server also refuses any payee other than the known API wallets.

Is there an HTTP option?

The same data is available as x402 HTTP APIs hosted on Render and listed in the Coinbase x402 Bazaar.

How do I add Market Data (x402) to Claude Code?

Run this command in your terminal: claude mcp add market-data-mcp --env X402_PRIVATE_KEY='<X402_PRIVATE_KEY>' -- uvx x402-market-data-mcp

What are the best alternatives to Market Data (x402)?

The closest alternatives to Market Data (x402) are Agent-Native Analytics, Solana MCP by Vybe, dashboard-icons, Google Ads + Meta Ads + SEO/GEO MCP and Tapetide - Indian Stock Market MCP.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers