Labsco
Jaldekoa logo

FRED Economic Data

โ˜… 6

from Jaldekoa

Access economic data from the Federal Reserve Bank of St. Louis (FRED).

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup

MCP-FREDAPI

FRED (Federal Reserve Economic Data) API integration with Model Context Protocol (MCP)

Table of Contents

Introduction

MCP-FREDAPI provides access to economic data from the Federal Reserve Bank of St. Louis (FRED) through the Model Context Protocol. This integration allows AI assistants like Claude to retrieve economic time series data directly when used with Cursor or other MCP-compatible environments.

This package integrates with the official FRED API, focusing specifically on the series_observations endpoint which provides time series data for economic indicators.

Available Tools

get_fred_series_observations

Retrieves economic time series observations from FRED.

When using Claude in Cursor, you can access this tool directly with:

@mcp-fredapi:get_fred_series_observations

Parameters

The get_fred_series_observations tool accepts the following parameters. For complete technical details about each parameter, please refer to the official FRED API documentation.

ParameterTypeDescriptionAllowed ValuesDefault ValueStatus
series_idstrThe ID of the economic series-(Required)โœ… Works
sort_orderstrSort order of observations'asc', 'desc''asc'โœ… Works
unitsstrData value transformation'lin', 'chg', 'ch1', 'pch', 'pc1', 'pca', 'cch', 'cca', 'log''lin'โœ… Works
frequencystrFrequency of observations'd', 'w', 'bw', 'm', 'q', 'sa', 'a', 'wef', 'weth', 'wew', 'wetu', 'wem', 'wesu', 'wesa', 'bwew', 'bwem'Noneโœ… Works
aggregation_methodstrAggregation method for frequency'avg', 'sum', 'eop''avg'โœ… Works
output_typeintOutput type of observations1, 2, 3, 41โœ… Works
realtime_startstrStart of real-time period (YYYY-MM-DD)-NoneโŒ Not working
realtime_endstrEnd of real-time period (YYYY-MM-DD)-NoneโŒ Not working
limitint/strMaximum number of observations to returnBetween 1 and 10000010โŒ Not working
offsetint/strNumber of observations to skip from the beginning-0โŒ Not working
observation_startstrStart date of observations (YYYY-MM-DD)-NoneโŒ Not working
observation_endstrEnd date of observations (YYYY-MM-DD)-NoneโŒ Not working
vintage_datesstrComma-separated list of vintage dates-NoneโŒ Not working

[!WARNING]

Due to current limitations with the MCP implementation, only certain parameters are working properly:

  • โœ… Working parameters: series_id, sort_order, units, frequency , aggregation_method, and output_type`.
  • โŒ Non-working parameters: realtime_start, realtime_end, limit, offset, observation_start, observation_end, and vintage_dates.

For best results, stick with the working parameters in your queries. Future updates may resolve these limitations.

Examples

Getting US GDP Data

When using Claude in Cursor, you can ask for GDP data like this:

Can you get the latest GDP data from FRED?

@mcp-fredapi:get_fred_series_observations
{
  "series_id": "GDP"
}

Getting GDP Data in Descending Order

Can you get the GDP data in descending order (newest first)?

@mcp-fredapi:get_fred_series_observations
{
  "series_id": "GDP",
  "sort_order": "desc"
}

Getting Annual GDP Data

Can you get annual GDP data?

@mcp-fredapi:get_fred_series_observations
{
  "series_id": "GDP",
  "frequency": "a"
}

Getting Inflation Rate

To get consumer price index data with percent change:

What's the recent inflation rate in the US?

@mcp-fredapi:get_fred_series_observations
{
  "series_id": "CPIAUCSL",
  "units": "pch",
  "frequency": "m"
}

Different Output Format

Show me GDP data in a different format.

@mcp-fredapi:get_fred_series_observations
{
  "series_id": "GDP",
  "output_type": 2
}

References