fred_get_series

Pack: fred · Endpoint: https://gateway.pipeworx.io/fred/mcp

Fetch historical data points for an economic indicator by series ID (e.g., ‘MORTGAGE30US’ for 30-year mortgage rate, ‘HOUST’ for housing starts). Returns dates and values.

Parameters

NameTypeRequiredDescription
series_idstringyesFRED series ID (e.g., “MORTGAGE30US”, “HOUST”, “CSUSHPISA”)
observation_startstringnoStart date in YYYY-MM-DD format (optional)
observation_endstringnoEnd date in YYYY-MM-DD format (optional)
frequencystringnoFrequency aggregation: d, w, bw, m, q, sa, a (optional)
unitsstringnoData transformation: lin (levels), chg (change), ch1 (change from year ago), pch (% change), pc1 (% 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). Default: lin
_apiKeystringyesFRED API key

Example call

Arguments

{
  "series_id": "MORTGAGE30US",
  "_apiKey": "your-fred-api-key"
}

curl

curl -X POST https://gateway.pipeworx.io/fred/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"fred_get_series","arguments":{"series_id":"MORTGAGE30US","_apiKey":"your-fred-api-key"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('fred_get_series', {
  "series_id": "MORTGAGE30US",
  "_apiKey": "your-fred-api-key"
});

More examples

{
  "series_id": "HOUST",
  "observation_start": "2020-01-01",
  "observation_end": "2024-12-31",
  "units": "pch",
  "_apiKey": "your-fred-api-key"
}

Response shape

Always returns: series_id, count, observation_start, observation_end, observations

FieldTypeDescription
series_idstringThe requested FRED series ID
countnumberTotal number of observations returned
observation_startstringStart date of observations in YYYY-MM-DD format
observation_endstringEnd date of observations in YYYY-MM-DD format
observationsarrayArray of date-value pairs
Full JSON Schema
{
  "type": "object",
  "properties": {
    "series_id": {
      "type": "string",
      "description": "The requested FRED series ID"
    },
    "count": {
      "type": "number",
      "description": "Total number of observations returned"
    },
    "observation_start": {
      "type": "string",
      "description": "Start date of observations in YYYY-MM-DD format"
    },
    "observation_end": {
      "type": "string",
      "description": "End date of observations in YYYY-MM-DD format"
    },
    "observations": {
      "type": "array",
      "description": "Array of date-value pairs",
      "items": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "description": "Observation date in YYYY-MM-DD format"
          },
          "value": {
            "type": [
              "string",
              "null"
            ],
            "description": "Numeric value or null if missing"
          }
        },
        "required": [
          "date",
          "value"
        ]
      }
    }
  },
  "required": [
    "series_id",
    "count",
    "observation_start",
    "observation_end",
    "observations"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "fred": {
      "url": "https://gateway.pipeworx.io/fred/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026