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
| Name | Type | Required | Description |
|---|---|---|---|
series_id | string | yes | FRED series ID (e.g., “MORTGAGE30US”, “HOUST”, “CSUSHPISA”) |
observation_start | string | no | Start date in YYYY-MM-DD format (optional) |
observation_end | string | no | End date in YYYY-MM-DD format (optional) |
frequency | string | no | Frequency aggregation: d, w, bw, m, q, sa, a (optional) |
units | string | no | Data 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 |
_apiKey | string | yes | FRED 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
| Field | Type | Description |
|---|---|---|
series_id | string | The requested FRED series ID |
count | number | Total number of observations returned |
observation_start | string | Start date of observations in YYYY-MM-DD format |
observation_end | string | End date of observations in YYYY-MM-DD format |
observations | array | Array 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.