GnistAI GnistAI
Log in

FRED (Federal Reserve)

U.S. economic time series — GDP, inflation, interest rates, and 800k+ indicators.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 6 tools tools 6 6 Economics

Data source: Federal Reserve Economic Data

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/fred/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-fred": {
      "url": "https://context.gnist.ai/mcp/fred/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
Shell
curl -X POST "https://context.gnist.ai/mcp/fred/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "get_series", "arguments": {"series_id": "example"}}}'

API REST API

API Root https://context.gnist.ai/rest/fred/

6 endpoints available:

Shell
curl "https://context.gnist.ai/rest/fred/get_series?series_id=example" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/fred/get_series",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "series_id": "example"
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc fred

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (6)

get_series
Get economic time series observations from FRED.
ParameterTypeRequiredDescription
series_idstringrequiredFRED series identifier (e.g. "FEDFUNDS", "UNRATE", "GDP").
observation_startanyoptionalStart date (YYYY-MM-DD). If omitted, fetches from the series start.
observation_endanyoptionalEnd date (YYYY-MM-DD). If omitted, fetches to the latest available observation.
frequencyanyoptionalAggregate to lower frequency. Options: "d" (daily), "w" (weekly), "bw" (biweekly), "m" (monthly), "q" (quarterly), "sa" (semiannual), "a" (annual).
aggregation_methodanyoptionalHow to aggregate when changing frequency. Options: "avg" (default), "sum", "eop".
limitintegeroptionalMaximum observations to return (default 100, max 100000). (default: 100)
search_series
Search FRED for economic time series matching a query.
ParameterTypeRequiredDescription
querystringrequiredSearch terms to match against FRED series names and notes.
limitintegeroptionalMaximum results to return (default 20, max 1000). (default: 20)
get_series_info
Get metadata for a FRED series without fetching observations.
ParameterTypeRequiredDescription
series_idstringrequiredFRED series identifier (e.g. "FEDFUNDS", "UNRATE", "GDP").
get_category
Browse FRED's category hierarchy.
ParameterTypeRequiredDescription
category_idintegeroptionalInteger category ID. Default 0 returns the root categories. Pass a child category ID to drill down. IDs for common top-level categories: - 32991: Money, Banking & Finance - 10: National Accounts - ... (default: 0)
compare_series
Fetch multiple FRED series aligned to a common time axis.
ParameterTypeRequiredDescription
series_idslist[string]requiredList of 2–10 FRED series IDs to compare.
observation_startanyoptionalStart date (YYYY-MM-DD) applied to all series.
observation_endanyoptionalEnd date (YYYY-MM-DD) applied to all series.
frequencyanyoptionalAggregate all series to this frequency before aligning (e.g. "q" for quarterly, "a" for annual).
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related