Skip to main content
Glama
fred-mcp-server

fred-mcp-server

by floriancaro

fred-mcp-server

CI PyPI Python License: MIT

An MCP (Model Context Protocol) server that provides access to the full FRED API (Federal Reserve Economic Data), including the Maps API for regional and geographic data. Use it to search, explore, and retrieve economic data directly within Claude conversations.

Disclaimer: This project is not affiliated with, endorsed by, or connected to the Federal Reserve Bank of St. Louis or any Federal Reserve entity. It is an independent open-source tool that accesses the publicly available FRED API.

Features

  • 33 tools covering all FRED API endpoints including Maps (series, categories, releases, sources, tags, maps)

  • Full parameter support — no artificial limits on pagination or filtering

  • Built-in rate limiting (120 requests/minute)

  • Async HTTP client for efficient request handling

Related MCP server: mcp-fred

Requirements

Installation

pip install fred-mcp-server

Or with uv:

uv tool install fred-mcp-server

With Docker:

docker pull ghcr.io/floriancaro/fred-mcp-server

Or build from source:

docker build -t fred-mcp-server https://github.com/floriancaro/fred-mcp-server.git

From source:

git clone https://github.com/floriancaro/fred-mcp-server.git
cd fred-mcp-server
uv sync --dev

Configuration

After installing, configure the MCP server for your preferred client.

Claude Code (CLI)

Add the server globally (available in all projects):

claude mcp add fred -s user -e FRED_API_KEY=your-api-key-here -- fred-mcp-server

Or add it to a specific project only:

claude mcp add fred -e FRED_API_KEY=your-api-key-here -- fred-mcp-server

Verify it's connected:

claude mcp list

Claude Code (project config)

Alternatively, create a .mcp.json file in your project root:

{
  "mcpServers": {
    "fred": {
      "command": "fred-mcp-server",
      "env": {
        "FRED_API_KEY": "your-api-key-here"
      }
    }
  }
}

A .mcp.json.example file is included in the repo as a template.

Claude Desktop

Add to your Claude Desktop config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "fred": {
      "command": "fred-mcp-server",
      "env": {
        "FRED_API_KEY": "your-api-key-here"
      }
    }
  }
}

Restart Claude Desktop after saving.

Docker

If using the Docker image, replace the command field:

{
  "mcpServers": {
    "fred": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "-e", "FRED_API_KEY", "ghcr.io/floriancaro/fred-mcp-server"],
      "env": {
        "FRED_API_KEY": "your-api-key-here"
      }
    }
  }
}

Tools

Series

Tool

Description

fred_series

Get metadata for a series

fred_series_search

Search for series by text

fred_series_observations

Get data values for a series

fred_series_categories

Get categories for a series

fred_series_release

Get the release for a series

fred_series_tags

Get tags for a series

fred_series_search_tags

Get tags matching a search query

fred_series_search_related_tags

Get related tags for a search query

fred_series_updates

Get recently updated series

fred_series_vintagedates

Get vintage dates for a series

Categories

Tool

Description

fred_category

Get a category (root = 0)

fred_category_children

Get child categories

fred_category_related

Get related categories

fred_category_series

Get series in a category

fred_category_tags

Get tags for a category, or related tags via related_to

Releases

Tool

Description

fred_releases

List all releases

fred_releases_dates

Get dates for all releases

fred_release

Get a specific release

fred_release_dates

Get dates for a release

fred_release_series

Get series in a release

fred_release_sources

Get sources for a release

fred_release_tags

Get tags for a release, or related tags via related_to

fred_release_tables

Get release table trees

Sources

Tool

Description

fred_sources

List all sources

fred_source

Get a specific source

fred_source_releases

Get releases for a source

Tags

Tool

Description

fred_tags

List/search all tags

fred_related_tags

Get related tags

fred_tags_series

Get series matching tags

Maps

Tool

Description

geofred_series_group

Get metadata for a geographic FRED series

geofred_series_data

Get cross-sectional regional data for a geographic series

geofred_regional_data

Get cross-sectional regional data by series group

geofred_shapes

Get GeoJSON shape files for geographic region boundaries

Example Prompts

Once configured, you can ask Claude things like:

  • "What is the current US GDP growth rate?" (uses fred_series_search + fred_series_observations)

  • "Show me the unemployment rate for the past 10 years" (uses fred_series_observations with observation_start)

  • "What data releases are coming up this week?" (uses fred_releases_dates)

  • "Find all series related to housing starts" (uses fred_series_search)

  • "Compare regional unemployment rates across states" (uses geofred_regional_data)

Development

git clone https://github.com/floriancaro/fred-mcp-server.git
cd fred-mcp-server
uv sync --dev

# Run unit tests
uv run pytest tests/test_client.py tests/test_tools.py -v

# Run integration tests (requires FRED_API_KEY)
FRED_API_KEY=your-key uv run pytest tests/test_integration.py -v

Troubleshooting

"FRED_API_KEY environment variable is not set" Ensure the FRED_API_KEY is passed in your MCP configuration's env block, or set it in your shell environment.

Rate limiting The server limits requests to 120 per minute (matching FRED API limits). If you hit the limit, requests will automatically wait — no action needed.

Verifying the server is running

claude mcp list

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

MIT

Available Tools

33 tools
fred_categoryB

Get a FRED category. Use category_id=0 for the root category.

Returns: dict with key 'categories'.

Inputs: category_id, realtime_start, realtime_end. Returns: object

fred_category_childrenC

Get the child categories for a FRED category.

Returns: dict with key 'categories'.

Inputs: category_id, realtime_start, realtime_end. Returns: object

fred_category_seriesB

Get the series in a FRED category.

Args: category_id: FRED category ID. realtime_start: Start of real-time period (YYYY-MM-DD). realtime_end: End of real-time period (YYYY-MM-DD). limit: Max number of results. offset: Pagination offset. order_by: Sort results by this field. sort_order: "asc" or "desc". filter_variable: Filter by "frequency", "units", or "seasonal_adjustment". filter_value: Value to filter by (depends on filter_variable). tag_names: Semicolon-delimited tag names to filter by (e.g., "usa;gdp"). exclude_tag_names: Semicolon-delimited tag names to exclude.

Returns: dict with key 'seriess'.

Inputs: category_id (required), realtime_start, realtime_end, limit, +7 more. Returns: object

fred_category_tagsA

Get tags for a FRED category, or find related tags.

When related_to is set, returns tags related to the specified tag names (uses the category/related_tags endpoint). Otherwise returns all tags for the category.

Args: category_id: FRED category ID. realtime_start: Start of real-time period (YYYY-MM-DD). realtime_end: End of real-time period (YYYY-MM-DD). tag_names: Semicolon-delimited tag names to filter by. tag_group_id: Tag group to filter by. search_text: Search tags by text. limit: Max number of results. offset: Pagination offset. order_by: Sort results by this field. sort_order: "asc" or "desc". related_to: Semicolon-delimited tag names to find related tags for. When set, tag_names is ignored and the related_tags endpoint is used. exclude_tag_names: Semicolon-delimited tag names to exclude.

Returns: dict with key 'tags'.

Inputs: category_id (required), realtime_start, realtime_end, tag_names, +8 more. Returns: object

fred_releaseB

Get a specific FRED release of economic data.

Returns: dict with key 'releases'.

Inputs: release_id (required), realtime_start, realtime_end. Returns: object

fred_release_datesA

Get release dates for a specific FRED release.

Args: release_id: FRED release ID. realtime_start: Start of real-time period (YYYY-MM-DD). realtime_end: End of real-time period (YYYY-MM-DD). limit: Max number of results. offset: Pagination offset. sort_order: "asc" or "desc". include_release_dates_with_no_data: If true, include release dates that have no data.

Returns: dict with key 'release_dates'.

Inputs: release_id (required), realtime_start, realtime_end, limit, +3 more. Returns: object

fred_releasesC

Get all FRED releases of economic data.

Returns: dict with key 'releases'.

Inputs: realtime_start, realtime_end, limit, offset, +2 more. Returns: object

fred_releases_datesB

Get release dates for all FRED releases.

Args: realtime_start: Start of real-time period (YYYY-MM-DD). realtime_end: End of real-time period (YYYY-MM-DD). limit: Max number of results. offset: Pagination offset. order_by: Sort results by this field. sort_order: "asc" or "desc". include_release_dates_with_no_data: If true, include release dates that have no data.

Returns: dict with key 'release_dates'.

Inputs: realtime_start, realtime_end, limit, offset, +3 more. Returns: object

fred_release_seriesA

Get the series on a FRED release.

Args: release_id: FRED release ID. realtime_start: Start of real-time period (YYYY-MM-DD). realtime_end: End of real-time period (YYYY-MM-DD). limit: Max number of results. offset: Pagination offset. order_by: Sort results by this field. sort_order: "asc" or "desc". filter_variable: Filter by "frequency", "units", or "seasonal_adjustment". filter_value: Value to filter by (depends on filter_variable). tag_names: Semicolon-delimited tag names to filter by (e.g., "usa;gdp"). exclude_tag_names: Semicolon-delimited tag names to exclude.

Returns: dict with key 'seriess'.

Inputs: release_id (required), realtime_start, realtime_end, limit, +7 more. Returns: object

fred_release_sourcesC

Get the sources for a FRED release.

Returns: dict with key 'sources'.

Inputs: release_id (required), realtime_start, realtime_end. Returns: object

fred_release_tablesA

Get release table trees for a FRED release.

Args: release_id: FRED release ID. element_id: Element ID to start the tree from. Omit for the root. include_observation_values: If true, include observation values in the response. observation_date: Observation date (YYYY-MM-DD) for included values.

Returns: dict with key 'elements'.

Inputs: release_id (required), element_id, include_observation_values, observation_date. Returns: object

fred_release_tagsA

Get tags for a FRED release, or find related tags.

When related_to is set, returns tags related to the specified tag names (uses the release/related_tags endpoint). Otherwise returns all tags for the release.

Args: release_id: FRED release ID. realtime_start: Start of real-time period (YYYY-MM-DD). realtime_end: End of real-time period (YYYY-MM-DD). tag_names: Semicolon-delimited tag names to filter by. tag_group_id: Tag group to filter by. search_text: Search tags by text. limit: Max number of results. offset: Pagination offset. order_by: Sort results by this field. sort_order: "asc" or "desc". related_to: Semicolon-delimited tag names to find related tags for. When set, tag_names is ignored and the related_tags endpoint is used. exclude_tag_names: Semicolon-delimited tag names to exclude.

Returns: dict with key 'tags'.

Inputs: release_id (required), realtime_start, realtime_end, tag_names, +8 more. Returns: object

fred_seriesB

Get metadata for a FRED series.

Returns: dict with key 'seriess' containing a list of series metadata objects.

Inputs: series_id (required), realtime_start, realtime_end. Returns: object

fred_series_categoriesC

Get the categories for a FRED series.

Returns: dict with key 'categories'.

Inputs: series_id (required), realtime_start, realtime_end. Returns: object

fred_series_observationsA

Get observations (data values) for a FRED series.

Args: series_id: FRED series ID (e.g., "GNPCA", "UNRATE"). realtime_start: Start of real-time period (YYYY-MM-DD). realtime_end: End of real-time period (YYYY-MM-DD). limit: Max number of results. offset: Pagination offset. sort_order: "asc" or "desc" by observation date. observation_start: Start of observation range (YYYY-MM-DD). observation_end: End of observation range (YYYY-MM-DD). units: Data transformation — "lin" (levels), "chg" (change), "ch1" (change from year ago), "pch" (percent change), "pc1" (percent change from year ago), "pca" (compounded annual rate of change), "cch" (continuously compounded rate of change), "cca" (continuously compounded annual rate of change), "log" (natural log). frequency: Aggregation frequency — "d" (daily), "w" (weekly), "bw" (biweekly), "m" (monthly), "q" (quarterly), "sa" (semiannual), "a" (annual). Weekly variants: "wef" (Fri), "weth" (Thu), "wew" (Wed), "wetu" (Tue), "wem" (Mon), "wesu" (Sun), "wesa" (Sat). aggregation_method: How to aggregate — "avg" (average), "sum", "eop" (end of period). output_type: 1=observations by real-time period, 2=all by vintage date, 3=new/revised by vintage date, 4=initial release only. vintage_dates: Comma-separated vintage dates (YYYY-MM-DD).

Returns: dict with key 'observations' containing data points with 'date' and 'value' fields.

Inputs: series_id (required), realtime_start, realtime_end, limit, +9 more. Returns: object

fred_series_releaseC

Get the release for a FRED series.

Returns: dict with key 'releases'.

Inputs: series_id (required), realtime_start, realtime_end. Returns: object

fred_series_search_tagsB

Get the tags for a series search query.

Args: series_search_text: Search query to find series (e.g., "GDP", "unemployment"). realtime_start: Start of real-time period (YYYY-MM-DD). realtime_end: End of real-time period (YYYY-MM-DD). tag_names: Semicolon-delimited tag names to filter by. tag_group_id: Tag group to filter by. tag_search_text: Search tags by text. limit: Max number of results. offset: Pagination offset. order_by: Sort results by this field. sort_order: "asc" or "desc".

Returns: dict with key 'tags'.

Inputs: series_search_text (required), realtime_start, realtime_end, tag_names, +6 more. Returns: object

fred_series_tagsC

Get the FRED tags for a series.

Args: series_id: FRED series ID (e.g., "GNPCA", "UNRATE"). realtime_start: Start of real-time period (YYYY-MM-DD). realtime_end: End of real-time period (YYYY-MM-DD). order_by: Sort results by this field. sort_order: "asc" or "desc".

Returns: dict with key 'tags'.

Inputs: series_id (required), realtime_start, realtime_end, order_by, +1 more. Returns: object

fred_series_updatesA

Get recently updated FRED series.

Args: realtime_start: Start of real-time period (YYYY-MM-DD). realtime_end: End of real-time period (YYYY-MM-DD). limit: Max number of results. offset: Pagination offset. filter_value: "macro" for macroeconomic series, "regional" for regional, "all" for both. start_time: Filter to series updated on or after this time (YYYYMMDDHhmm format). end_time: Filter to series updated on or before this time (YYYYMMDDHhmm format).

Returns: dict with key 'seriess' containing recently updated series.

Inputs: realtime_start, realtime_end, limit, offset, +3 more. Returns: object

fred_series_vintagedatesB

Get vintage dates (revision history) for a FRED series.

Returns: dict with key 'vintage_dates'.

Inputs: series_id (required), realtime_start, realtime_end, limit, +2 more. Returns: object

fred_sourceC

Get a specific source of economic data.

Returns: dict with key 'sources'.

Inputs: source_id (required), realtime_start, realtime_end. Returns: object

fred_source_releasesC

Get the releases for a source.

Returns: dict with key 'releases'.

Inputs: source_id (required), realtime_start, realtime_end, limit, +3 more. Returns: object

fred_sourcesC

Get all sources of economic data.

Returns: dict with key 'sources'.

Inputs: realtime_start, realtime_end, limit, offset, +2 more. Returns: object

fred_tagsB

Get all FRED tags, optionally filtered by name or group.

Returns: dict with key 'tags'.

Inputs: realtime_start, realtime_end, tag_names, tag_group_id, +5 more. Returns: object

fred_tags_seriesC

Get series matching all specified semicolon-delimited tag names.

Returns: dict with key 'seriess'.

Inputs: tag_names (required), realtime_start, realtime_end, exclude_tag_names, +4 more. Returns: object

geofred_regional_dataB

Get cross-sectional regional data by series group.

Args: series_group: Series group ID (get from geofred_series_group). region_type: Geographic region type. date: Observation date (YYYY-MM-DD). season: Seasonal adjustment — "SA" (adjusted), "NSA" (not adjusted), "SSA" (smoothed adjusted), "SAAR"/"NSAAR" (annualized rates). units: Unit description string (e.g., "Dollars", "Percent"). start_date: Start of date range (YYYY-MM-DD). frequency: Aggregation frequency. transformation: Data transformation (same codes as series observations units). aggregation_method: How to aggregate — "avg", "sum", "eop".

Returns: dict with keys 'meta' and 'data'.

Inputs: series_group (required), region_type (required), date (required), season (required), +5 more. Returns: object

geofred_series_dataC

Get cross-sectional regional data for a geographic FRED series.

Args: series_id: FRED series ID (e.g., "WIPCPI"). date: Observation date (YYYY-MM-DD). Returns data for this specific date. start_date: Start of date range (YYYY-MM-DD). Returns data from this date onward.

Returns: dict with keys 'meta' and 'data'.

Inputs: series_id (required), date, start_date. Returns: object

geofred_series_groupC

Get metadata for a geographic FRED series.

Returns metadata including title, region type, series group ID, seasonality, units, frequency, and date range.

Returns: dict with key 'series_group'.

Inputs: series_id (required). Returns: object

geofred_shapesA

Get GeoJSON shape files for geographic region boundaries.

Warning: county-level shapes can be very large (several MB of coordinate data). Prefer state or broader region types when possible.

Args: shape: Region type for shape boundaries.

Returns: GeoJSON FeatureCollection with 'type' and 'features' keys.

Inputs: shape (required). Returns: object

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 33 tools

    Disambiguation3/5

    Most tools are scoped to a distinct FRED entity, but the many tag-related variants (fred_tags, fred_related_tags, fred_series_tags, fred_series_search_tags, fred_series_search_related_tags, fred_category_tags, fred_release_tags) overlap in purpose and could easily be misselected. Singular/plural pairs like fred_releases/fred_release and fred_releases_dates/fred_release_dates also create avoidable ambiguity.

    Naming Consistency4/5

    The snake_case fred_<entity>_<detail> and geofred_<detail> patterns are mostly consistent and readable. Minor inconsistencies exist: fred_related_tags doesn't follow the same entity-action structure, and plural/singular pairs like fred_sources vs fred_source alternate between list-all and get-one without a uniform prefix like 'list_' or 'get_'.

    Tool Count2/5

    At 33 tools, this is well beyond the comfortable MCP scope and would overwhelm an agent trying to pick the right endpoint. While each tool maps to a real FRED API endpoint, several could be consolidated, making the surface heavier than necessary for agent use.

    Completeness5/5

    The server covers the full FRED domain: categories, releases, series, observations, sources, tags, updates, vintage dates, and GeoFRED regional data. Since FRED is a read-only data API, the absence of create/update/delete operations is appropriate, and there are no obvious dead-end workflows.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      An MCP server that wraps the Federal Reserve Economic Data (FRED) API, providing access to over 800,000 economic time series like GDP and unemployment. It enables AI agents to search for data, retrieve metadata, and fetch historical observations directly from the St. Louis Fed.
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      A comprehensive MCP server providing access to all FRED API endpoints with intelligent large data handling, project-based storage, and async job processing for AI assistants like Claude.
      MIT