mcp-server-fxmacrodata
OfficialUse the FXMacroData MCP server to access macroeconomic indicators, FX rates, release calendars, COT positioning, commodities, and market sessions for AI agents.
Verify FXMacroData API connectivity with
ping.List available macroeconomic indicators for a currency via
data_catalogue.Get upcoming macro release dates, optionally filtered by indicator, via
release_calendar.Fetch FX spot rates for any supported currency pair, with optional technical indicators (SMA, EMA, RSI, Bollinger, ATR, MACD) via
forex.Retrieve macroeconomic indicator time series with announcement dates, values, and prior readings via
indicator_query.Get FX market session timetable and overlap windows (Sydney, Tokyo, London, New York) via
market_sessions.Access CFTC Commitment of Traders weekly positioning data for major currencies via
cot_data.Get commodity price time series for gold, silver, and platinum via
commodities.Covers 22 currencies; keyless evaluation for USD recent 90 days, with API key unlocking all currencies, real-time releases, full history, FX rates, and commodities.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-server-fxmacrodata what's the current EUR/USD rate?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-server-fxmacrodata
A Model Context Protocol (MCP) server for the FXMacroData API: macroeconomic indicators, release calendars, COT positioning, commodities, and FX rates for AI agents.
Covers 22 currencies: AUD, BRL, CAD, CHF, CNH, CNY, DKK, EUR, GBP, HUF, ILS, JPY, KRW, MYR, NGN, NOK, NZD, PEN, SEK, THB, TWD, USD.
Quick start
No install needed. Run with uvx:
uvx mcp-server-fxmacrodataEvaluate the MCP server without an API key: USD announcements for the most recent 90 days (each release readable 15 minutes after publication), the USD release calendar, USD COT positioning, the data catalogue for every currency, and market sessions. Connect an FXMacroData subscription for every currency, real-time releases, full available history, FX rates and commodities:
FXMACRODATA_API_KEY=your_key uvx mcp-server-fxmacrodataSubscribe to FXMacroData, then connect the server using your own account's API key.
For a provider-agnostic install guide that works across multiple AI clients, see llms-install.md.
Related MCP server: tradingview-mcp
Configure your MCP client
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"fxmacrodata": {
"command": "uvx",
"args": ["mcp-server-fxmacrodata"],
"env": {
"FXMACRODATA_API_KEY": "your_key"
}
}
}
}Cursor
Add to .cursor/mcp.json:
{
"mcpServers": {
"fxmacrodata": {
"command": "uvx",
"args": ["mcp-server-fxmacrodata"],
"env": {
"FXMACRODATA_API_KEY": "your_key"
}
}
}
}VS Code / GitHub Copilot
Add to .vscode/mcp.json:
{
"servers": {
"fxmacrodata": {
"command": "uvx",
"args": ["mcp-server-fxmacrodata"],
"env": {
"FXMACRODATA_API_KEY": "your_key"
}
}
}
}OpenClaw
Add to ~/.openclaw/openclaw.json:
{
"mcpServers": {
"fxmacrodata": {
"command": "uvx",
"args": ["mcp-server-fxmacrodata"],
"env": {
"FXMACRODATA_API_KEY": "your_key"
}
}
}
}Tip: If your MCP client supports remote HTTP servers, you can connect directly to
https://fxmacrodata.com/mcpinstead, with no local install. Append?api_key=your_keyfor non-USD data.
Available tools
Tool | Description |
| Verify FXMacroData API connectivity |
| List available indicators for a currency (keyless for every currency) |
| Upcoming macro release dates |
| FX spot rates for any pair of supported currencies, with optional technical indicators |
| Macro indicator time series (announcements) |
| FX session timetable (Sydney, Tokyo, London, New York) |
| CFTC Commitment of Traders positioning (AUD, CAD, CHF, EUR, GBP, JPY, NZD, USD) |
| Commodity prices (gold, silver, platinum) |
Environment variables
Variable | Default | Description |
| (none) | API key, sent as the |
|
| Override API base URL (must be https, except localhost) |
|
| Request timeout in seconds |
Install with pip
pip install mcp-server-fxmacrodataThen run:
mcp-server-fxmacrodataDevelopment
git clone https://github.com/fxmacrodata/mcp-server-fxmacrodata
cd mcp-server-fxmacrodata
pip install -e ".[dev]"
pytestDebugging
Use the MCP Inspector:
npx @modelcontextprotocol/inspector uvx mcp-server-fxmacrodataLicense
MIT. See LICENSE.
Available Tools
8 toolscommoditiesB
Get commodity price time series. Supported indicators: gold, silver, platinum.
Inputs: indicator (required), end_date, start_date. Returns: result
cot_dataA
Get CFTC Commitment of Traders (COT) weekly positioning data for a currency's FX futures contract. Supported: AUD, CAD, CHF, EUR, GBP, JPY, NZD, USD.
Inputs: currency (required), end_date, start_date. Returns: result
data_catalogueA
List available macroeconomic indicators for a currency. Supported currencies include: AUD, BRL, CAD, CHF, CNY, DKK, EUR, GBP, JPY, NZD, PLN, SEK, SGD, USD.
Inputs: currency (required). Returns: result
forexA
Get FX spot rates for a currency pair with optional technical indicators. The indicators parameter accepts a comma-separated list of technical indicator slugs (e.g. 'sma_20,ema_50,rsi_14,bbands_20,atr_14,macd').
Inputs: base (required), quote (required), end_date, indicators, +1 more. Returns: result
indicator_queryA
Get macroeconomic indicator time series for a currency. Returns announcement dates, values, and prior readings. Use data_catalogue to discover valid currency + indicator slugs.
Inputs: currency (required), indicator (required), end_date, start_date. Returns: result
market_sessionsA
Get the current FX market-session timetable and overlap windows, or request a snapshot for a specific UTC timestamp. Covers Sydney, Tokyo, London, and New York sessions.
Inputs: at. Returns: result
pingA
Verify that the FXMacroData API is reachable.
Inputs: no named parameters. Returns: result
release_calendarB
Get upcoming macroeconomic release dates for a currency, with optional indicator filter.
Inputs: currency (required), indicator. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool serves a distinct purpose: connectivity, metadata, calendar, FX rates, macro indicators, market sessions, COT data, and commodities. No overlap or ambiguity between tool functions.
All tool names use lowercase with underscores and are clear, though they mix noun and verb_noun patterns (e.g., 'forex', 'indicator_query'). The style is consistent in casing and readability, but not a strict verb_noun convention.
8 tools is well within the ideal range (3-15) and each tool addresses a core aspect of FX macroeconomic data, making the set compact and purposeful.
The surface covers all major data types for the domain: metadata discovery, release calendar, spot rates, indicator time series, market sessions, positioning, and commodities. No obvious gaps for the stated purpose of FX macro data access.
Maintenance
Related MCP Connectors
Macroeconomic and FX time-series data for AI agents: indicators, calendars, COT, forex, commodities.
FRED macro data, Treasury yields, FX rates & macro indicators for AI agents. Pay-per-query via x402.
Live & historical FX rates and currency conversion for AI agents. No API keys.
Live & historical FX rates and currency conversion for AI agents. No API keys.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to access SEC EDGAR filings, US Treasury rates, BLS labor statistics, and economic indicators without API keys.6MIT
- AlicenseAqualityBmaintenanceProvides AI agents with a TradingView-centric toolkit for screener queries, historical FX data, pattern scanning, chart rendering, backtesting, Pine tooling, and optional account/desktop integration.6MIT
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to access and analyze Forex Factory economic calendar data, including enriched event details and summary statistics, through MCP tools and resources.-
- AlicenseAqualityFmaintenanceEnables AI agents to discover, retrieve, compare, and analyze trusted macroeconomic statistics from central banks and international organizations, resolving concepts to official series with provenance and validation.6MIT