Important
Disclaimer: This open-source project is not affiliated with, sponsored by, or endorsed by the Federal Reserve or the Federal Reserve Bank of St. Louis. "FRED" is a registered trademark of the Federal Reserve Bank of St. Louis, used here for descriptive purposes only.
A Model Context Protocol (MCP) server for accessing Federal Reserve Economic Data (FRED®) financial datasets.
Tip
If you use this project in your research or work, please cite it using the
Amorelli, S. (2025). Federal Reserve Economic Data MCP (Model Context Protocol) Server [Computer software]. GitHub. https://github.com/stefanoamorelli/fred-mcp-server
- Clone the repository:
git clone https://github.com/stefanoamorelli/fred-mcp-server.git cd fred-mcp-server - Install dependencies:
pnpm install
- Build the project:
pnpm build
This server requires a FRED® API key. You can obtain one from the FRED® website.
Install the server, for example, on Claude Desktop, modify the claude_desktop_config.json file and add the following configuration:
{
"mcpServers": {
"FRED MCP Server": {
"command": "/usr/bin/node",
"args": [
"<PATH_TO_YOUR_CLONED_REPO>/fred-mcp-server/build/index.js"
],
"env": {
"FRED_API_KEY": "<YOUR_API_KEY>"
}
}
}
}- Description: Retrieve data for Overnight Reverse Repurchase Agreements (
RRPONTSYD) from FRED®. - Parameters:
start_date(string, optional): Start date inYYYY-MM-DDformat.end_date(string, optional): End date inYYYY-MM-DDformat.limit(number, optional): Maximum number of observations to return.sort_order(enum["asc", "desc"], optional): Sort order of observations.
- Description: Retrieve data for Consumer Price Index for All Urban Consumers (
CPIAUCSL) from FRED®. - Parameters:
start_date(string, optional): Start date inYYYY-MM-DDformat.end_date(string, optional): End date inYYYY-MM-DDformat.limit(number, optional): Maximum number of observations to return.sort_order(enum["asc", "desc"], optional): Sort order of observations.