by stefanoamorelli
Provides universal access to over 800,000 Federal Reserve Economic Data (FRED) time series via three MCP tools for browsing catalogs, searching series, and retrieving data with transformations and date filters.
Offers a Model Context Protocol (MCP) server that exposes the entire FRED catalog (800,000+ series) through three powerful tools: fred_browse
, fred_search
, and fred_get_series
. Users can explore categories, locate series by keywords or tags, and pull observations with custom aggregation, frequency, and transformation options.
npx -y fred-mcp-server
FRED_API_KEY
.Q: Do I need a FRED API key?
A: Yes. Obtain one from the FRED website and set FRED_API_KEY
in the environment.
Q: Which package manager should I use?
A: The documentation recommends pnpm
for manual installation, but the server can be started directly with npx
for quick setup.
Q: How many results can I request at once?
A: Each tool supports a limit
parameter (default 25‑50) and offset
for pagination.
Q: Can I change the data frequency?
A: Yes. Use the frequency
parameter (d
, w
, m
, q
, a
).
Q: Is the server compatible with Claude Desktop?
A: Absolutely. The README includes a sample claude_desktop_config.json
configuration.
[!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 providing universal access to all 800,000+ Federal Reserve Economic Data (FRED®) time series through three powerful tools.
https://github.com/user-attachments/assets/66c7f3ad-7b0e-4930-b1c5-a675a7eb1e09
[!TIP] If you use this project in your research or work, please cite it using the CITATION.cff file, or the APA format below:
Amorelli, S. (2025). Federal Reserve Economic Data MCP (Model Context Protocol) Server [Computer software]. GitHub. https://github.com/stefanoamorelli/fred-mcp-server
To install Federal Reserve Economic Data Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @stefanoamorelli/fred-mcp-server --client claude
git clone https://github.com/stefanoamorelli/fred-mcp-server.git
cd fred-mcp-server
pnpm install
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>"
}
}
}
}
This MCP server provides three comprehensive tools to access all 800,000+ FRED® economic data series:
fred_browse
Description: Browse FRED's complete catalog through categories, releases, or sources.
Parameters:
browse_type
(required): Type of browsing - "categories", "releases", "sources", "category_series", "release_series"category_id
(optional): Category ID for browsing subcategories or series within a categoryrelease_id
(optional): Release ID for browsing series within a releaselimit
(optional): Maximum number of results (default: 50)offset
(optional): Number of results to skip for paginationorder_by
(optional): Field to order results bysort_order
(optional): "asc" or "desc"fred_search
Description: Search for FRED economic data series by keywords, tags, or filters.
Parameters:
search_text
(optional): Text to search for in series titles and descriptionssearch_type
(optional): "full_text" or "series_id"tag_names
(optional): Comma-separated list of tag names to filter byexclude_tag_names
(optional): Comma-separated list of tag names to excludelimit
(optional): Maximum number of results (default: 25)offset
(optional): Number of results to skip for paginationorder_by
(optional): Field to order by (e.g., "popularity", "last_updated")sort_order
(optional): "asc" or "desc"filter_variable
(optional): Filter by "frequency", "units", or "seasonal_adjustment"filter_value
(optional): Value to filter the variable byfred_get_series
Description: Retrieve data for any FRED series by its ID with support for transformations and date ranges.
Parameters:
series_id
(required): The FRED series ID (e.g., "GDP", "UNRATE", "CPIAUCSL")observation_start
(optional): Start date in YYYY-MM-DD formatobservation_end
(optional): End date in YYYY-MM-DD formatlimit
(optional): Maximum number of observationsoffset
(optional): Number of observations to skipsort_order
(optional): "asc" or "desc"units
(optional): Data transformation:
frequency
(optional): Frequency aggregation ("d", "w", "m", "q", "a")aggregation_method
(optional): "avg" (average), "sum", or "eop" (end of period)With these three tools, you can:
See TESTING.md for more details.
# Run all tests
pnpm test
# Run specific tests
pnpm test:registry
This open-source project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0). This means:
For commercial licensing options or other licensing inquiries, please contact stefano@amorelli.tech.
© 2025 Stefano Amorelli
Please log in to share your review and rating for this MCP.
{ "mcpServers": { "Federal Reserve Economic Data MCP Server": { "command": "npx", "args": [ "-y", "fred-mcp-server" ], "env": { "FRED_API_KEY": "<YOUR_API_KEY>" } } } }
Explore related MCPs that share similar capabilities and solve comparable challenges
by goat-sdk
Enables AI agents to send and receive payments, purchase goods and services, execute investment strategies, tokenize assets, and obtain financial insights by leveraging blockchains, stablecoins, and wallets.
by financial-datasets
Provides access to income statements, balance sheets, cash flow statements, stock prices, market news, and cryptocurrency data through MCP tools for AI assistants.
by alpacahq
Enables large language models to trade stocks and options, retrieve real‑time and historical market data, and manage portfolios using plain English commands through a local or remote MCP server.
by XeroAPI
Provides a bridge between the Model Context Protocol and Xero's API, enabling standardized access to Xero accounting and business features.
by stefanoamorelli
Provides an MCP server that connects AI models to SEC EDGAR filings, enabling real‑time retrieval of company filings, financial statements, and insider‑trading data with exact XBRL precision and verifiable filing references.
by ariadng
Enables AI LLMs to execute trades on the MetaTrader 5 platform through the Model Context Protocol.
by calvernaz
Provides access to Alpha Vantage stock market data via an MCP server, supporting stdio and HTTP streaming modes with optional OAuth 2.1 authentication.
by kukapay
Integrates the Freqtrade cryptocurrency trading bot with MCP, exposing its REST API as tools for AI agents to perform automated trading operations.
by kukapay
Provides a comprehensive set of cryptocurrency technical analysis indicators and ready‑to‑use trading strategies through an MCP interface, enabling AI agents and applications to generate buy, hold, or sell signals.