FXMacroData MCP Server

Macroeconomic and FX time-series data for AI agents: indicators, calendars, COT, forex, commodities.

Local serverstdioPython

What is the FXMacroData MCP server?

Macroeconomic and FX time-series data for AI agents: indicators, calendars, COT, forex, commodities. That is what the fxmacrodata mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

The short version

The FXMacroData Python SDK provides a simple and efficient interface for fetching macroeconomic indicators, forex prices, release calendars, COT positioning, and commodity prices from FXMacroData.

The tools it exposes

The server publishes 2 tools. What each one is for:

  • Synchronous — The Synchronous tool exposed by this server
  • Asynchronous — async def main(): async with AsyncClient(api_key="YOUR_API_KEY") as client: # Fetch macroeconomic indicators data = await client.get_indicator("eur"

Getting it running

The server ships on PyPI as fxmacrodata, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

What it needs from you

Configuration is passed through the environment: YOUR_API_KEY. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

How it compares

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. FXMacroData's toolset — Synchronous, Asynchronous — is a fair guide to whether it matches your workflow. It is maintained by fxmacrodata; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against FXMacroData's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
SynchronousThe Synchronous tool exposed by this server.
Asynchronousasync def main(): async with AsyncClient(api_key="YOUR_API_KEY") as client: # Fetch macroeconomic indicators data = await client.get_indicator("eur", "inflation") print(data)

How to install the FXMacroData MCP server

{
  "mcpServers": {
    "fxmacrodata": {
      "command": "uvx",
      "args": ["fxmacrodata"],
      "env": {
        "YOUR_API_KEY": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
YOUR_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use FXMacroData to Synchronous.
  • Use FXMacroData to Asynchronous.

Frequently asked questions

It connects FXMacroData to MCP-compatible AI assistants such as Claude and Cursor, exposing 2 tools (Synchronous, Asynchronous) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with FXMacroData directly.