FRED Macroeconomic Data MCP Server

FRED Macroeconomic Data MCP Server

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.

Category
Visit Server

README

FRED Macroeconomic Data MCP Server

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.

Features

  • Access to common FRED economic indicators (GDP, Employment, Inflation, etc.)
  • Search functionality for FRED data series
  • Real-time data fetching from FRED API
  • Standardized data format for LLM consumption
  • Built using the MCP Python SDK for seamless integration

Prerequisites

  • Python 3.11 or higher
  • uv - Modern Python package installer
  • Claude Desktop for local usage
  • FRED API Key (get one from FRED API)

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/WM_mcp.git
cd WM_mcp
  1. Create and activate a virtual environment using uv:
uv venv
source .venv/bin/activate  # On Windows, use `.venv\Scripts\activate`
  1. Install dependencies using uv:
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"
  1. Set up environment variables:
cp .env.example .env

Edit .env and add your FRED API key:

FRED_API_KEY=your_fred_api_key_here

Installing in Claude Desktop

  1. Make sure Claude Desktop is installed and running
  2. Open Claude Desktop settings:
    • Go to Settings > Developer > Edit Config
    • Add the following configuration to your 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.

Usage in Claude

  1. First, search online for "using MCP resource in Claude Desktop Client" to understand how to include MCP resources in your conversations.

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

Available Resources

  • file://series/available - List all available FRED series and their details

Available Tools

  • fetch_series_data - Fetch data for any FRED series
  • search_series - Search for FRED series by description

Development

For development and testing:

  1. Run the MCP Inspector to test the server:
mcp dev fred_macroeco_server.py

This allows you to inspect resources, test tools, and verify server functionality.

  1. For direct server execution (to check for issues):
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.

Troubleshooting

  1. If you get API key errors:

    • Verify your FRED API key is correctly set in .env
    • Check that the .env file is in the correct directory
  2. If the server doesn't appear in Claude Desktop:

    • Double-check your claude_desktop_config.json paths
    • Ensure uv and all dependencies are installed correctly
    • Try restarting Claude Desktop

Acknowledgments

  • Federal Reserve Bank of St. Louis for providing the FRED API
  • Model Context Protocol team for the MCP SDK
  • Anthropic for Claude and the Claude Desktop client

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured