Are you the author? Sign in to claim
MCP server for the FRED (Federal Reserve Economic Data) API
An MCP (Model Context Protocol) server that provides access to the full FRED API (Federal Reserve Economic Data), including the Maps API for regional and geographic data. Use it to search, explore, and retrieve economic data directly within Claude conversations.
Disclaimer: This project is not affiliated with, endorsed by, or connected to the Federal Reserve Bank of St. Louis or any Federal Reserve entity. It is an independent open-source tool that accesses the publicly available FRED API.
pip install fred-mcp-server
Or with uv:
uv tool install fred-mcp-server
With Docker:
docker pull ghcr.io/floriancaro/fred-mcp-server
Or build from source:
docker build -t fred-mcp-server https://github.com/floriancaro/fred-mcp-server.git
From source:
git clone https://github.com/floriancaro/fred-mcp-server.git
cd fred-mcp-server
uv sync --dev
After installing, configure the MCP server for your preferred client.
Add the server globally (available in all projects):
claude mcp add fred -s user -e FRED_API_KEY=your-api-key-here -- fred-mcp-server
Or add it to a specific project only:
claude mcp add fred -e FRED_API_KEY=your-api-key-here -- fred-mcp-server
Verify it's connected:
claude mcp list
Alternatively, create a .mcp.json file in your project root:
{
"mcpServers": {
"fred": {
"command": "fred-mcp-server",
"env": {
"FRED_API_KEY": "your-api-key-here"
}
}
}
}
A .mcp.json.example file is included in the repo as a template.
Add to your Claude Desktop config file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json{
"mcpServers": {
"fred": {
"command": "fred-mcp-server",
"env": {
"FRED_API_KEY": "your-api-key-here"
}
}
}
}
Restart Claude Desktop after saving.
If using the Docker image, replace the command field:
{
"mcpServers": {
"fred": {
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "FRED_API_KEY", "ghcr.io/floriancaro/fred-mcp-server"],
"env": {
"FRED_API_KEY": "your-api-key-here"
}
}
}
}
| Tool | Description |
|---|---|
fred_series | Get metadata for a series |
fred_series_search | Search for series by text |
fred_series_observations | Get data values for a series |
fred_series_categories | Get categories for a series |
fred_series_release | Get the release for a series |
fred_series_tags | Get tags for a series |
fred_series_search_tags | Get tags matching a search query |
fred_series_search_related_tags | Get related tags for a search query |
fred_series_updates | Get recently updated series |
fred_series_vintagedates | Get vintage dates for a series |
| Tool | Description |
|---|---|
fred_category | Get a category (root = 0) |
fred_category_children | Get child categories |
fred_category_related | Get related categories |
fred_category_series | Get series in a category |
fred_category_tags | Get tags for a category, or related tags via related_to |
| Tool | Description |
|---|---|
fred_releases | List all releases |
fred_releases_dates | Get dates for all releases |
fred_release | Get a specific release |
fred_release_dates | Get dates for a release |
fred_release_series | Get series in a release |
fred_release_sources | Get sources for a release |
fred_release_tags | Get tags for a release, or related tags via related_to |
fred_release_tables | Get release table trees |
| Tool | Description |
|---|---|
fred_sources | List all sources |
fred_source | Get a specific source |
fred_source_releases | Get releases for a source |
| Tool | Description |
|---|---|
fred_tags | List/search all tags |
fred_related_tags | Get related tags |
fred_tags_series | Get series matching tags |
| Tool | Description |
|---|---|
geofred_series_group | Get metadata for a geographic FRED series |
geofred_series_data | Get cross-sectional regional data for a geographic series |
geofred_regional_data | Get cross-sectional regional data by series group |
geofred_shapes | Get GeoJSON shape files for geographic region boundaries |
Once configured, you can ask Claude things like:
fred_series_search + fred_series_observations)fred_series_observations with observation_start)fred_releases_dates)fred_series_search)geofred_regional_data)git clone https://github.com/floriancaro/fred-mcp-server.git
cd fred-mcp-server
uv sync --dev
# Run unit tests
uv run pytest tests/test_client.py tests/test_tools.py -v
# Run integration tests (requires FRED_API_KEY)
FRED_API_KEY=your-key uv run pytest tests/test_integration.py -v
"FRED_API_KEY environment variable is not set"
Ensure the FRED_API_KEY is passed in your MCP configuration's env block, or set it in your shell environment.
Rate limiting The server limits requests to 120 per minute (matching FRED API limits). If you hit the limit, requests will automatically wait — no action needed.
Verifying the server is running
claude mcp list
Contributions are welcome! Please open an issue or submit a pull request.
MIT
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
Google's universal MCP server supporting PostgreSQL, MySQL, MongoDB, Redis, and 10+ databases
Official GitHub integration for repos, issues, PRs, and CI/CD workflows