MCP server for the FXMacroData API — macroeconomic indicators, release calendars, COT, commodities, and forex for AI agents.
Project description
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.
Quick start
No install needed — run with uvx:
uvx mcp-server-fxmacrodata
USD data works immediately with no API key. For all currencies, set your key:
FXMACRODATA_API_KEY=your_key uvx mcp-server-fxmacrodata
Get a free API key at fxmacrodata.com/api-management.
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 — no local install needed. Append?api_key=your_keyfor non-USD data.
Available tools
| Tool | Description |
|---|---|
ping |
Verify FXMacroData API connectivity |
data_catalogue |
List available indicators for a currency |
release_calendar |
Upcoming macro release dates |
forex |
FX spot rates with optional technical indicators |
indicator_query |
Macro indicator time series (announcements) |
market_sessions |
FX session timetable (Sydney, Tokyo, London, New York) |
cot_data |
CFTC Commitment of Traders positioning |
commodities |
Commodity prices (gold, silver, platinum) |
Environment variables
| Variable | Default | Description |
|---|---|---|
FXMACRODATA_API_KEY |
(none) | API key for non-USD data |
FXMACRODATA_BASE_URL |
https://fxmacrodata.com/api |
Override API base URL |
Install with pip
pip install mcp-server-fxmacrodata
Then run:
mcp-server-fxmacrodata
Development
git clone https://github.com/fxmacrodata/mcp-server-fxmacrodata
cd mcp-server-fxmacrodata
pip install -e ".[dev]"
pytest
Debugging
Use the MCP Inspector:
npx @modelcontextprotocol/inspector uvx mcp-server-fxmacrodata
License
MIT — see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_server_fxmacrodata-0.1.0.tar.gz.
File metadata
- Download URL: mcp_server_fxmacrodata-0.1.0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c951de88cad98772237ce879f8de00d89ccbb8bdb75440fe5c9c884382b39ac
|
|
| MD5 |
5cef2d902870e451dd257b1e43c6fc48
|
|
| BLAKE2b-256 |
16649c297a4cc5d6d55d3eb1abb4dce81c8f3f66cde4bb08d7448d231e6ffeb8
|
File details
Details for the file mcp_server_fxmacrodata-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mcp_server_fxmacrodata-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f75907c9c5a13c9e74a7f06b109d9d966d054347cf146bf00b45972c7e74942
|
|
| MD5 |
b13f32d57b5c319cf3041c34020724e4
|
|
| BLAKE2b-256 |
5fd3ffc7f83d0fe5d56045de6e17543964d06b132806823765503b7510c3b2ff
|