# Market Data (x402)

> Market Data (x402) is a paid MCP server for finance and payments. Pay-per-call market calendars, futures, macro and compliance data for agents. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Paid
- **Platforms:** CLI, API
- **Repository:** https://github.com/r0dell/market-data-mcp
- **MCP Registry name:** io.github.r0dell/market-data-mcp
- **Categories:** [finance and payments](https://ai-powered.com/categories/finance-and-payments), [analytics and data](https://ai-powered.com/categories/analytics-and-data)
- **Listing updated:** 2026-11-23

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
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.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (claude_desktop_config.json)

```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.

### Cursor (~/.cursor/mcp.json)

```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.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

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

### Codex: Or add to config.toml (~/.codex/config.toml)

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

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```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.

### Devin Desktop (~/.config/devin/mcp_config.json)

```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.

### Cline (cline_mcp_settings.json)

```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.

### Zed (Zed settings.json)

```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.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "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.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```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.

### Kiro (~/.kiro/settings/mcp.json)

```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.

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

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_check` (name suggests: reads): Screens against OFAC, UN, EU and SECO lists
- `lei_lookup` (name suggests: reads): Looks up a legal entity identifier
- `trading_briefing`: Market-moving events of the next days in one call
- `catalog_list` (name suggests: reads): Free tool listing the catalogue
- `payment_status` (name suggests: reads): Free tool showing payment status

## 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.

## Alternatives

- [Agent-Native Analytics](https://ai-powered.com/mcp/agent-native-analytics): Agent-Native Analytics is an open-source MCP server for analytics and data.
- [Solana MCP by Vybe](https://ai-powered.com/mcp/solana-mcp-by-vybe): Solana MCP by Vybe is an MCP server for finance and payments.
- [dashboard-icons](https://ai-powered.com/mcp/dashboard-icons): dashboard-icons is an open-source MCP server for analytics and data.
- [Google Ads + Meta Ads + SEO/GEO MCP](https://ai-powered.com/mcp/google-ads-meta-ads-seo-geo-mcp): Google Ads + Meta Ads + SEO/GEO MCP is a freemium MCP server for marketing and seo.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.
- [Pitot](https://ai-powered.com/mcp/pitot): Pitot is an open-source MCP server for cloud and infrastructure.
- [World Monitor](https://ai-powered.com/mcp/world-monitor): World Monitor is a freemium MCP server for analytics and data.
- [NostrPulse](https://ai-powered.com/mcp/nostrpulse): NostrPulse is an open-source MCP server for finance and payments.

---
Source: https://ai-powered.com/mcp/market-data-x402
