Skip to main content
Glama

FRED MCP Server

An MCP server for the Federal Reserve Economic Data (FRED) API.

Features

  • Search for economic data series.

  • Retrieve data points for series.

  • Explore Categories, Releases, Sources, and Tags.

  • Pagination support for large datasets.

  • Option to save data as JSON files.

Related MCP server: FRED Economic MCP Server

Configuration

Set the FRED_API_KEY environment variable to your FRED API key.

Usage

Run with uvx (if published):

uvx fred-data-mcp

Installation from PyPI

Once published, you can install and run directly:

pip install fred-data-mcp
# or
uvx fred-data-mcp

Claude Desktop Configuration

To use this server with the Claude Desktop app, add the following to your claude_desktop_config.json:

If you have published the package to PyPI, you can key off the package name directly:

{
  "mcpServers": {
    "fred": {
      "command": "uvx",
      "args": [
        "fred-data-mcp"
      ],
      "env": {
        "FRED_API_KEY": "your_api_key_here"
      }
    }
  }
}

Local Development

If you are running from the source code repository:

{
  "mcpServers": {
    "fred": {
      "command": "uvx",
      "args": [
        "--from",
        "/absolute/path/to/fred-mcp",
        "fred-data-mcp"
      ],
      "env": {
        "FRED_API_KEY": "your_api_key_here"
      }
    }
  }
}

Development

Running the MCP Inspector

To test the server locally with the MCP Inspector:

Windows (PowerShell):

$env:FRED_API_KEY = "your_api_key_here"
.\run-inspector.ps1

Bash:

export FRED_API_KEY="your_api_key_here"
./run-inspector.sh

Alternatively, run the command directly:

npx @modelcontextprotocol/inspector uv run fred-data-mcp

## Publication

### Publishing to PyPI
A helper script `publish.ps1` is provided to automate version bumping and publication.

**Requirements:**
- `uv` installed.
- PyPI credentials configured (e.g., via `~/.pypirc` or environment variables `TWINE_USERNAME` and `TWINE_PASSWORD`).


**Usage (Windows PowerShell):**
```powershell
# Bump patch version and publish
.\publish.ps1 patch

Usage (Bash):

# Bump patch version and publish
./publish.sh patch

To test the build process without uploading, use the -DryRun (PS) or --dry-run (Bash) flag:

.\publish.ps1 patch -DryRun
# or
./publish.sh patch --dry-run

Available Tools

11 tools
get_category_childrenA

Get child categories for a specific category.

Args: category_id: The parent category ID.

Inputs: category_id (required).

get_category_detailsB

Get details for a specific category (if supported).

Args: category_id: The ID of the category (e.g., 125).

Inputs: category_id (required).

get_category_seriesA

Get series in a specific category.

Args: category_id: The category ID. limit: Max results in preview. offset: Offset for preview. file_path: Optional absolute path to save the full list as JSON.

Inputs: category_id (required), limit, offset, file_path.

get_releasesB

Get all releases of economic data.

Args: limit: Max results in preview. offset: Offset for preview. file_path: Optional absolute path to save the full list as JSON.

Inputs: limit, offset, file_path.

get_release_seriesB

Get series in a specific release.

Args: release_id: The release ID. limit: Max results in preview. offset: Offset for preview. file_path: Optional absolute path to save the full list as JSON.

Inputs: release_id (required), limit, offset, file_path.

get_series_dataA

Get data points for a specific series.

Args: series_id: The ID of the series (e.g., "GDP"). limit: Max data points to return in the markdown preview (default: 1000). offset: Data points to skip (default: 0). file_path: Optional absolute path to save the full data as JSON. If provided, the full dataset (ignoring limit/offset) is saved and response is minimized.

Inputs: series_id (required), limit, offset, file_path.

get_series_infoB

Get metadata for a specific data series.

Args: series_id: The ID of the series (e.g., "GDP", "UNRATE").

Inputs: series_id (required).

get_sourceB

Get details for a specific source.

Inputs: source_id (required).

get_sourcesB

Get all sources of economic data.

Args: file_path: Optional absolute path to save the sources list as JSON.

Inputs: file_path.

search_seriesA

Search for economic data series by text query.

Args: query: The search text (e.g., "gdp", "unemployment"). limit: Maximum number of results to return in preview (default: 10). offset: Number of results to skip (default: 0). file_path: Optional absolute path to save the full search results as JSON.

Inputs: query (required), limit, offset, file_path.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 11 tools

    Disambiguation5/5

    Each tool targets a distinct resource or action: series search, metadata, data, categories, releases, sources, and related tags. Even similar pairs like get_sources and get_source are clearly differentiated by list vs single-item semantics.

    Naming Consistency5/5

    All tool names follow a consistent snake_case verb_noun pattern. Search operations use search_ and data retrieval operations use get_, which is a predictable and semantically meaningful convention.

    Tool Count5/5

    11 tools is well-scoped for an economic data server, covering search, metadata, observations, categories, releases, sources, and tags without excessive fragmentation or redundancy.

    Completeness4/5

    The tool surface covers the core FRED workflows: discovering series, browsing categories/releases/sources, fetching metadata and observations. Minor gaps exist around tag browsing and direct series-to-tag relationships, but these do not break typical usage.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      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.
      8
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      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.
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      Enables searching and retrieving economic data from the Federal Reserve Economic Data (FRED) API, including time series, categories, releases, and popular indicators.
      7
      1
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables natural language access to 800,000+ economic time series from FRED, including GDP, inflation, unemployment, and interest rates, with built-in transforms and frequency aggregation.
      71 npm
      MIT