FRED Economic MCP Server
Provides 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.
README
FRED Economic MCP Server
A powerful Model Context Protocol (MCP) server providing access to Federal Reserve Economic Data (FRED) through Claude and other MCP-compatible clients.
🌟 Features
- 📊 Comprehensive Data Access: Access to 800,000+ economic time series
- 🔍 Smart Search: Find economic indicators by keyword or category
- 📈 Historical Analysis: Retrieve up to 100,000 observations per series
- ⚡ High Performance: Efficient async operations with proper error handling
- 🎯 Economic Dashboard: Pre-configured key economic indicators
- 🔄 Multi-Series Support: Compare multiple economic series simultaneously
🚀 Quick Start
Prerequisites
- Python 3.8 or higher
- FRED API key (free from FRED)
Installation
-
Download the server file:
- Download
fred_economic_server.pyfrom this repository
- Download
-
Install dependencies:
pip install httpx python-mcp python-dotenv
-
Get your FRED API key:
- Visit FRED API Key Registration
- Sign up for a free account
- Generate your API key
-
Set up environment:
export FRED_API_KEY="your_api_key_here"
Usage with Claude Desktop
Add to your Claude Desktop configuration (claude_desktop_config.json):
{
"mcpServers": {
"fred-economic": {
"command": "python",
"args": ["path/to/fred_economic_server.py"],
"env": {
"FRED_API_KEY": "your_api_key_here"
}
}
}
}
🛠️ Available Tools
| Tool | Description | Example Usage |
|---|---|---|
get_fred_data |
Get economic data by series ID | GDP, unemployment, inflation |
get_fred_historical |
Retrieve 4+ years of data | Long-term trend analysis |
search_fred |
Find series by keyword | Search "housing prices" |
fred_dashboard |
Key economic indicators | GDP, unemployment, rates |
get_multiple_series |
Compare multiple series | GDP vs unemployment |
📊 Example Queries
Basic Data Retrieval
Ask Claude: "Get the latest GDP data"
Uses: get_fred_data("GDP")
Historical Analysis
Ask Claude: "Show me 10 years of unemployment data"
Uses: get_fred_historical("UNRATE", years=10)
Economic Research
Ask Claude: "Compare inflation and unemployment over the last 5 years"
Uses: get_multiple_series(["CPIAUCSL", "UNRATE"])
📈 Common Economic Series
| Indicator | Series ID | Description |
|---|---|---|
| GDP | GDP |
Gross Domestic Product |
| Unemployment | UNRATE |
Unemployment Rate |
| Inflation | CPIAUCSL |
Consumer Price Index |
| Fed Funds Rate | FEDFUNDS |
Federal Funds Rate |
| 10-Year Treasury | DGS10 |
10-Year Treasury Rate |
| S&P 500 | SP500 |
S&P 500 Index |
📞 Support
- 📧 Issues: Use GitHub Issues for bug reports and feature requests
- 📖 FRED API Docs: https://fred.stlouisfed.org/docs/api/
- 🔧 MCP Protocol: https://modelcontextprotocol.io/
📄 License
This project is licensed under the MIT License.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
E2B
Using MCP to run code via e2b.