Provides 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.
A Model Context Protocol (MCP) server that provides access to Federal Reserve Economic Data (FRED) through Claude and other LLM clients. This server exposes FRED economic data series, search capabilities, and data retrieval tools.
git clone https://github.com/yourusername/WM_mcp.git cd WM_mcp
uv venv source .venv/bin/activate # On Windows, use `.venv\Scripts\activate`
uv pip install "mcp[cli]>=1.6.0" "colorama>=0.4.6" "numpy>=2.2.4" "pandas>=2.2.3" "python-dotenv>=1.1.0" "requests>=2.32.3"
cp .env.example .env
Edit .env
and add your FRED API key:
FRED_API_KEY=your_fred_api_key_here
claude_desktop_config.json
:{ "mcpServers": { "FRED Macroeconomic Data Server": { "command": "/path/to/your/.local/bin/uv", "args": [ "--directory", "/path/to/your/WM_mcp", "run", "fred_macroeco_server.py" ] } } }
Replace /path/to/your/
with your actual paths. You can find uv's path by running which uv
in terminal.
First, search online for "using MCP resource in Claude Desktop Client" to understand how to include MCP resources in your conversations.
Once you've added the resource, you can interact with FRED data. Example prompt:
Use FRED APIs to get GDPs of USA last 20 years, draw chart
file://series/available
- List all available FRED series and their detailsfetch_series_data
- Fetch data for any FRED seriessearch_series
- Search for FRED series by descriptionFor development and testing:
mcp dev fred_macroeco_server.py
This allows you to inspect resources, test tools, and verify server functionality.
python fred_macroeco_server.py
Note: The server uses stdio transport for communication with Claude Desktop. Use the MCP Inspector during development to catch and fix any issues before deploying to Claude Desktop.
If you get API key errors:
.env
.env
file is in the correct directoryIf the server doesn't appear in Claude Desktop:
claude_desktop_config.json
pathsDiscover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!