Market Data (x402)
Paid-per-call market data for agents: trading calendars, futures, macro, contract specs (x402)
Installation
Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).
x402-market-data-mcpclaude mcp add market-data-x402 -e 'X402_KEY_FILE=<X402_KEY_FILE>' -e 'X402_PRIVATE_KEY=<your x402_private_key>' -e 'MAX_USDC_PER_CALL=0.01' -e 'MAX_USDC_PER_SESSION=0.10' -- uvx x402-market-data-mcp==0.2.1
{
"mcpServers": {
"market-data-x402": {
"command": "uvx",
"args": [
"x402-market-data-mcp==0.2.1"
],
"env": {
"X402_KEY_FILE": "<X402_KEY_FILE>",
"X402_PRIVATE_KEY": "<your x402_private_key>",
"MAX_USDC_PER_CALL": "0.01",
"MAX_USDC_PER_SESSION": "0.10"
}
}
}
}
Variables d'environnement
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_KEYsecret Alternative to X402_KEY_FILE: private key of a small, dedicated payment wallet.MAX_USDC_PER_CALLHighest price per call in USDCMAX_USDC_PER_SESSIONTotal budget per server start in USDC
Documentation
Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.
Sommaire
Market Data MCP
An MCP server that gives AI assistants and agents 32 paid market-data tools plus 5 free helper tools:
| Area | Tools | Price per call |
|---|---|---|
| Exchange hours | market_is_open, market_next_open_close, market_holidays | 0.01–0.02 USDC |
| Futures | futures_front_month, futures_expirations, futures_roll_calendar | 0.01–0.02 USDC |
| Trading time | settlement_date, fx_sessions, dst_gaps, is_dst_gap, market_countdown | 0.01–0.02 USDC |
| Macro | treasury_yield_curve, treasury_spread, ecb_fx_rate, ecb_convert, cot_positioning | 0.01–0.02 USDC |
| Calendars | options_expiration_check, options_expiration_calendar, vix_expirations, economic_release_next, economic_releases, central_bank_next_meeting, central_bank_meetings, treasury_auctions, treasury_next_auction, is_banking_day, banking_holidays, index_rebalance_dates | 0.01–0.02 USDC |
| Briefing | trading_briefing – all market-moving events of the next days in one call | 0.03 USDC |
| Futures specs | contract_spec, futures_tick_value, futures_position_size | 0.01 USDC |
| Free | catalog_list, payment_status, list_markets, list_futures_products, list_cot_markets | free |
Exchanges: NYSE, Nasdaq, LSE, Xetra, SIX, Tokyo, Hong Kong, Shanghai, ASX, CME equity futures. Futures: ES, MES, NQ, MNQ, YM, MYM, RTY, M2K, FDAX, FDXM, FESX, FSMI. Macro data comes from the U.S. Treasury (public domain), the ECB (euro reference rates; source: ECB statistics) and the CFTC Commitments of Traders report (public domain).
How payment works
Each paid tool calls an HTTP API protected by x402. The server pays automatically in USDC on Base, using a wallet key you provide, and only:
- to the known wallets of these APIs (any other payee is refused),
- in USDC on Base mainnet,
- up to
MAX_USDC_PER_CALLper call (default 0.05) andMAX_USDC_PER_SESSIONper server start (default 1.00).
Without a key the free tools work and paid tools explain how to enable payment.
Use a separate, small wallet for
X402_PRIVATE_KEYwith only a few USDC on Base. Never use your main wallet. No ETH is needed for gas; the x402 facilitator pays it.
Install (Claude Desktop, Cursor, any MCP client)
Requires uv. Add this to your MCP client config (Claude Desktop: Settings → Developer → Edit Config):
{
"mcpServers": {
"market-data": {
"command": "uvx",
"args": ["--from", "x402-market-data-mcp", "market-data-mcp"],
"env": {
"X402_KEY_FILE": "C:\\path\\to\\wallet.json",
"MAX_USDC_PER_SESSION": "1.00"
}
}
}
}
X402_KEY_FILE points to a file with the key (plain text or JSON with private_key);
alternatively set X402_PRIVATE_KEY directly. Without uv: pip install x402-market-data-mcp
and use "command": "python", "args": ["-m", "market_data_mcp"].
Then ask for example: "Is the NYSE open on 27 November 2026 at 18:00 UTC?", "What is the ES roll date in December?" or "Show the current US yield curve and the 2s10s spread."
Direct HTTP use
The same data is available as x402 HTTP APIs, listed in the Coinbase x402 Bazaar:
- https://market-hours-api.onrender.com
- https://futures-expiry-api.onrender.com
- https://trading-time-api.onrender.com
- https://macro-data-api-313m.onrender.com
- https://market-calendar-api.onrender.com
- https://filings-specs-api.onrender.com
Disclaimer
Data is provided as is, without warranty. Not investment advice. Always confirm critical dates with the exchange.
License: MIT
Questions fréquentes
Qu'est-ce que Market Data (x402) ?
Paid-per-call market data for agents: trading calendars, futures, macro, contract specs (x402)
Comment installer Market Data (x402) ?
Il s'exécute sur votre machine. Dans Claude Code : claude mcp add market-data-x402 -e 'X402_KEY_FILE=<X402_KEY_FILE>' -e 'X402_PRIVATE_KEY=<your x402_private_key>' -e 'MAX_USDC_PER_CALL=0.01' -e 'MAX_USDC_PER_SESSION=0.10' -- uvx x402-market-data-mcp==0.2.1. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.
Faut-il une clé API pour Market Data (x402) ?
Oui. Il attend X402_PRIVATE_KEY, à renseigner dans sa configuration.
Market Data (x402) est-il open source ?
Oui. Son code est sur GitHub sous licence MIT.
Qui maintient Market Data (x402) ?
Il est publié par r0dell. AI.tn le référence sans le maintenir ni le recommander.
Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.