FXMacroData MCP Server
Connect Claude, Cursor, VS Code, or any MCP-compatible AI host to live central bank and macroeconomic data. Ask questions in plain English — no code required.
Quick Connect
Claude (Web & Desktop)
claude.ai — remote MCP connector
-
1
Open Claude → Settings → Connectors
Click Add MCP Server and select Remote.
-
2
Enter the server URL
https://fxmacrodata.com/mcp -
3
Start using it
USD data and public tools work immediately — no API key needed. To unlock all 18 currencies, enter your API key when the OAuth prompt appears.
-
4
Verify the connection
In a new chat, ask: "Run the FXMacroData ping tool", "Show me available USD indicators", or "What sessions are open right now?"
Example: Live in Claude
Chart Artifacts
Use indicator_visual_artifact to render an interactive chart widget directly inside AI clients that support MCP Apps.
Tool Catalog
6 toolsReturns all available indicators and metadata for a given currency code.
Returns macroeconomic indicator time series for a currency. Supports policy_rate, inflation, gdp, employment, and more.
Returns indicator time series with MCP Apps metadata so compatible clients can render an interactive chart artifact in-context.
Returns upcoming release timestamps with optional indicator filtering.
Returns CFTC Commitment of Traders (COT) weekly positioning data for a currency's FX futures contract.
Returns commodity and energy indicator time series. Covers gold, oil (Brent/WTI), and natural gas.
Usage Examples
Connectivity check
"Run the FXMacroData ping tool"
USD inflation time series
"Get USD inflation data from 2024-01-01 to 2025-01-01"
AUD catalogue discovery
"What AUD indicators are available?"
USD release calendar
"Show upcoming USD GDP release dates"
EUR/USD spot rates
"Show EUR/USD spot rates with RSI and SMA"
Chart artifact — EUR policy rate
"Plot the EUR policy rate as a chart"
Live FX sessions
"What FX sessions are open right now?"
GBP COT positioning
"Show GBP futures positioning data"
Gold price series
"Get gold prices for 2024"
Authentication
- ▸ Connect with just the bare URL
- ▸ USD indicators, FX rates, catalogue, calendar, sessions
- ▸ No API key or OAuth required
- ▸ Authorization code flow with PKCE
- ▸ Scope:
fxmacrodata.read - ▸ Bearer transport:
Authorization: Bearer <token>
- ▸ Append to MCP URL as query param
- ▸
/mcp?api_key=YOUR_KEY - ▸ Best for IDE / SDK runtimes without OAuth
OAuth endpoints
Allowed OAuth callbacks
Server Details
Quick Validation
# API health check
curl -i https://fxmacrodata.com/api/v1/ping
# OAuth metadata
curl -i https://fxmacrodata.com/.well-known/oauth-authorization-server
# MCP route probe (406 expected for plain GET)
curl -i https://fxmacrodata.com/mcp
# MCP initialize
curl -i -X POST "https://fxmacrodata.com/mcp" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
--data '{"jsonrpc":"2.0","id":"1","method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"curl","version":"1.0"}}}'
# MCP tools/list (replace SESSION_ID)
curl -i -X POST "https://fxmacrodata.com/mcp" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Mcp-Session-Id: SESSION_ID" \
--data '{"jsonrpc":"2.0","id":"2","method":"tools/list","params":{}}'
# Authenticated indicator_query
curl -i -X POST "https://fxmacrodata.com/mcp" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer ACCESS_TOKEN" \
-H "Mcp-Session-Id: SESSION_ID" \
--data '{"jsonrpc":"2.0","id":"3","method":"tools/call","params":{"name":"indicator_query","arguments":{"currency":"usd","indicator":"inflation","start_date":"2024-01-01","end_date":"2025-01-01"}}}'
Error Reference
| Status | Meaning |
|---|---|
| 406 | Unsupported Accept header or wrong HTTP method — expected for plain GET probes |
| 400 | Invalid MCP request format |
| 401/403 | Authentication or authorization failure on protected data |
| 200 | Valid MCP initialize with Accept: application/json returns session id |