fred-economic-mcp-server

satendra-mani-tiwari/fred-economic-mcp-server

3.2

If you are the rightful owner of fred-economic-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The FRED Economic MCP Server is a robust Model Context Protocol server that provides access to Federal Reserve Economic Data (FRED) through Claude and other MCP-compatible clients.

Tools
  1. get_fred_data

    Get economic data by series ID

  2. get_fred_historical

    Retrieve 4+ years of data

  3. search_fred

    Find series by keyword

  4. fred_dashboard

    Key economic indicators

  5. get_multiple_series

    Compare multiple series

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

  1. Download the server file:

    • Download fred_economic_server.py from this repository
  2. Install dependencies:

pip install httpx python-mcp python-dotenv
  1. Get your FRED API key:

  2. 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

ToolDescriptionExample Usage
get_fred_dataGet economic data by series IDGDP, unemployment, inflation
get_fred_historicalRetrieve 4+ years of dataLong-term trend analysis
search_fredFind series by keywordSearch "housing prices"
fred_dashboardKey economic indicatorsGDP, unemployment, rates
get_multiple_seriesCompare multiple seriesGDP 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

IndicatorSeries IDDescription
GDPGDPGross Domestic Product
UnemploymentUNRATEUnemployment Rate
InflationCPIAUCSLConsumer Price Index
Fed Funds RateFEDFUNDSFederal Funds Rate
10-Year TreasuryDGS1010-Year Treasury Rate
S&P 500SP500S&P 500 Index

📞 Support

📄 License

This project is licensed under the MIT License.