fred-mcp
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., "@fred-mcp get the latest GDP growth 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.
FRED MCP Server
An MCP server for the Federal Reserve Economic Data (FRED) API.
Features
Search for economic data series.
Retrieve data points for series.
Explore Categories, Releases, Sources, and Tags.
Pagination support for large datasets.
Option to save data as JSON files.
Related MCP server: FRED Economic MCP Server
Configuration
Set the FRED_API_KEY environment variable to your FRED API key.
Usage
Run with uvx (if published):
uvx fred-data-mcpInstallation from PyPI
Once published, you can install and run directly:
pip install fred-data-mcp
# or
uvx fred-data-mcpClaude Desktop Configuration
To use this server with the Claude Desktop app, add the following to your claude_desktop_config.json:
Published Package (Recommended)
If you have published the package to PyPI, you can key off the package name directly:
{
"mcpServers": {
"fred": {
"command": "uvx",
"args": [
"fred-data-mcp"
],
"env": {
"FRED_API_KEY": "your_api_key_here"
}
}
}
}Local Development
If you are running from the source code repository:
{
"mcpServers": {
"fred": {
"command": "uvx",
"args": [
"--from",
"/absolute/path/to/fred-mcp",
"fred-data-mcp"
],
"env": {
"FRED_API_KEY": "your_api_key_here"
}
}
}
}Development
Running the MCP Inspector
To test the server locally with the MCP Inspector:
Windows (PowerShell):
$env:FRED_API_KEY = "your_api_key_here"
.\run-inspector.ps1Bash:
export FRED_API_KEY="your_api_key_here"
./run-inspector.shAlternatively, run the command directly:
npx @modelcontextprotocol/inspector uv run fred-data-mcp
## Publication
### Publishing to PyPI
A helper script `publish.ps1` is provided to automate version bumping and publication.
**Requirements:**
- `uv` installed.
- PyPI credentials configured (e.g., via `~/.pypirc` or environment variables `TWINE_USERNAME` and `TWINE_PASSWORD`).
**Usage (Windows PowerShell):**
```powershell
# Bump patch version and publish
.\publish.ps1 patchUsage (Bash):
# Bump patch version and publish
./publish.sh patchTo test the build process without uploading, use the -DryRun (PS) or --dry-run (Bash) flag:
.\publish.ps1 patch -DryRun
# or
./publish.sh patch --dry-runAvailable Tools
11 toolsget_category_childrenA
Get child categories for a specific category.
Args: category_id: The parent category ID.
Inputs: category_id (required).
get_category_detailsB
Get details for a specific category (if supported).
Args: category_id: The ID of the category (e.g., 125).
Inputs: category_id (required).
get_category_seriesA
Get series in a specific category.
Args: category_id: The category ID. limit: Max results in preview. offset: Offset for preview. file_path: Optional absolute path to save the full list as JSON.
Inputs: category_id (required), limit, offset, file_path.
get_releasesB
Get all releases of economic data.
Args: limit: Max results in preview. offset: Offset for preview. file_path: Optional absolute path to save the full list as JSON.
Inputs: limit, offset, file_path.
get_release_seriesB
Get series in a specific release.
Args: release_id: The release ID. limit: Max results in preview. offset: Offset for preview. file_path: Optional absolute path to save the full list as JSON.
Inputs: release_id (required), limit, offset, file_path.
get_series_dataA
Get data points for a specific series.
Args: series_id: The ID of the series (e.g., "GDP"). limit: Max data points to return in the markdown preview (default: 1000). offset: Data points to skip (default: 0). file_path: Optional absolute path to save the full data as JSON. If provided, the full dataset (ignoring limit/offset) is saved and response is minimized.
Inputs: series_id (required), limit, offset, file_path.
get_series_infoB
Get metadata for a specific data series.
Args: series_id: The ID of the series (e.g., "GDP", "UNRATE").
Inputs: series_id (required).
get_sourceB
Get details for a specific source.
Inputs: source_id (required).
get_sourcesB
Get all sources of economic data.
Args: file_path: Optional absolute path to save the sources list as JSON.
Inputs: file_path.
search_seriesA
Search for economic data series by text query.
Args: query: The search text (e.g., "gdp", "unemployment"). limit: Maximum number of results to return in preview (default: 10). offset: Number of results to skip (default: 0). file_path: Optional absolute path to save the full search results as JSON.
Inputs: query (required), limit, offset, file_path.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Each tool targets a distinct resource or action: series search, metadata, data, categories, releases, sources, and related tags. Even similar pairs like get_sources and get_source are clearly differentiated by list vs single-item semantics.
All tool names follow a consistent snake_case verb_noun pattern. Search operations use search_ and data retrieval operations use get_, which is a predictable and semantically meaningful convention.
11 tools is well-scoped for an economic data server, covering search, metadata, observations, categories, releases, sources, and tags without excessive fragmentation or redundancy.
The tool surface covers the core FRED workflows: discovering series, browsing categories/releases/sources, fetching metadata and observations. Minor gaps exist around tag browsing and direct series-to-tag relationships, but these do not break typical usage.
Maintenance
Related MCP Connectors
Equip AI with tools for researching economic data from Federal Reserve Economic Data (FRED).
FRED macro data, Treasury yields, FX rates & macro indicators for AI agents. Pay-per-query via x402.
Premium live data from S&P Global, FRED, OECD & more, plus web search, in one call.
GDP, unemployment, CPI, interest rates, and 800K+ economic time series from the Federal Reserve
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides access to Federal Reserve Economic Data (FRED) through Claude and other LLM clients, enabling users to search for, retrieve, and visualize economic indicators like GDP, employment, and inflation data.8-
- AlicenseNot gradedqualityDmaintenanceProvides access to 800,000+ Federal Reserve Economic Data (FRED) time series, enabling users to search, retrieve, and analyze economic indicators like GDP, unemployment, inflation, and interest rates through natural language queries.MIT
- FlicenseAqualityDmaintenanceEnables searching and retrieving economic data from the Federal Reserve Economic Data (FRED) API, including time series, categories, releases, and popular indicators.71-
- AlicenseNot gradedqualityCmaintenanceEnables natural language access to 800,000+ economic time series from FRED, including GDP, inflation, unemployment, and interest rates, with built-in transforms and frequency aggregation.71 npmMIT