Federal Reserve Economic Data (FRED)

v1.0.1Finance & Fintechstable

Provides access to over 800,000 economic time series from the Federal Reserve, allowing users to browse, search, and retrieve data for indicators like GDP and unemployment. It supports custom date ranges and data transformations such as percentage ch

datadata-analysis-projectfinancefinancial-analysisgenai
Share:
94
Stars
0
Downloads
0
Weekly
0/5

What is Federal Reserve Economic Data (FRED)?

Federal Reserve Economic Data (FRED) is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to provides access to over 800,000 economic time series from the federal reserve, allowing users to browse, search, and retrieve data for indicators like gdp and unemployment. it supports custom date ran...

Provides access to over 800,000 economic time series from the Federal Reserve, allowing users to browse, search, and retrieve data for indicators like GDP and unemployment. It supports custom date ranges and data transformations such as percentage ch

This server falls under the Finance & Fintech and Analytics categories on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • RRPONTSYD

Use Cases

Economic time series data access
Financial indicator analysis
Custom transformations of economic datasets
stefanoamorelli

Maintainer

LicenseAGPL 3.0
Languagetypescript
Versionv1.0.1
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y fred-mcp-server

Manual Installation

npx -y fred-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Federal Reserve Economic Data (FRED)

The FRED MCP Server provides AI assistants with universal access to all 800,000+ economic time series published by the Federal Reserve Bank of St. Louis through the FRED API, including indicators such as GDP, unemployment rate (UNRATE), CPI, interest rates, and thousands more. It exposes three tools — fred_browse for navigating categories and releases, fred_search for keyword and tag-based discovery, and fred_get_series for retrieving actual time series data with support for custom date ranges and data transformations including percentage change, year-over-year change, and log transformation. A FRED API key is required and can be obtained free of charge from the FRED website.

Prerequisites

  • Node.js 18 or later (for running via npx or from source)
  • A free FRED API key from https://fred.stlouisfed.org/docs/api/api_key.html
  • An MCP-compatible client such as Claude Desktop, Cursor, or Claude Code CLI
  • pnpm (for building from source)
1

Obtain a FRED API key

Register for a free API key at the FRED website. The key is required for all API calls — without it the server will fail to retrieve any data.

# Visit: https://fred.stlouisfed.org/docs/api/api_key.html
# Create an account and request a free API key
2

Run the server with npx

The server can be run directly via npx without any installation. Pass your FRED API key as an environment variable.

FRED_API_KEY=your_key_here npx -y fred-mcp-server
3

Configure your MCP client

Add the FRED MCP server to your client configuration with your API key set as an environment variable. This is the recommended approach for persistent use.

4

Test data retrieval

Verify the server is working by asking your AI assistant to retrieve a well-known series such as GDP or UNRATE. The server should return observation data with dates and values.

5

Optional: run via Docker

For containerized deployments, use the Docker image which bundles the server without requiring Node.js on the host.

docker run -i --rm -e FRED_API_KEY=your_key_here stefanoamorelli/fred-mcp-server:latest

Federal Reserve Economic Data (FRED) Examples

Client configuration

Claude Desktop configuration for the FRED MCP server using npx with the API key as an environment variable.

{
  "mcpServers": {
    "FRED MCP Server": {
      "command": "npx",
      "args": ["-y", "fred-mcp-server"],
      "env": {
        "FRED_API_KEY": "your_fred_api_key_here"
      }
    }
  }
}

Prompts to try

Sample prompts for retrieving and analyzing Federal Reserve economic data through the MCP server.

- "Get the US GDP data for the last 10 years and show it as percent change"
- "What is the current US unemployment rate? Retrieve the UNRATE series"
- "Search FRED for economic series related to inflation and CPI"
- "Retrieve the federal funds rate (FEDFUNDS) from 2020 to 2024"
- "Browse the FRED categories to find money supply data"
- "Get monthly CPI data (CPIAUCSL) and calculate the year-over-year percent change"

Troubleshooting Federal Reserve Economic Data (FRED)

All FRED API calls return 403 or 'Bad API key' errors

Verify that FRED_API_KEY is correctly set in your MCP client configuration and that the key is active. Keys are tied to an email address — log into fred.stlouisfed.org to confirm your key is valid and has not been revoked.

fred_get_series returns no observations for a series

Check that the series ID is correct — FRED series IDs are case-sensitive (e.g., GDP, UNRATE, CPIAUCSL). Use fred_search to find the exact series ID before retrieving data. Also verify the date range falls within the series' available data window.

The server starts but npx times out downloading the package

Run npm install -g fred-mcp-server once to cache the package globally, then use fred-mcp-server as the command in your client config instead of npx. Alternatively, clone and build from source following the repository instructions.

Frequently Asked Questions about Federal Reserve Economic Data (FRED)

What is Federal Reserve Economic Data (FRED)?

Federal Reserve Economic Data (FRED) is a Model Context Protocol (MCP) server that provides access to over 800,000 economic time series from the federal reserve, allowing users to browse, search, and retrieve data for indicators like gdp and unemployment. it supports custom date ranges and data transformations such as percentage ch It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Federal Reserve Economic Data (FRED)?

Install via npm with the command: npx -y fred-mcp-server. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Federal Reserve Economic Data (FRED)?

Federal Reserve Economic Data (FRED) works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Federal Reserve Economic Data (FRED) free to use?

Yes, Federal Reserve Economic Data (FRED) is open source and available under the AGPL 3.0 license. You can use it freely in both personal and commercial projects.

Browse More Finance & Fintech MCP Servers

Explore all finance & fintech servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "federal-reserve-economic-data-fred-mcp-server": { "command": "npx", "args": ["-y", "fred-mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Federal Reserve Economic Data (FRED)?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides