fred-mcp-server
Open-source FRED MCP Server (Federal Reserve Economic Data)
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.4%) to scientific vocabulary
Keywords
Repository
Open-source FRED MCP Server (Federal Reserve Economic Data)
Basic Info
- Host: GitHub
- Owner: stefanoamorelli
- License: agpl-3.0
- Language: TypeScript
- Default Branch: main
- Homepage: https://www.npmjs.com/package/fred-mcp-server
- Size: 261 KB
Statistics
- Stars: 43
- Watchers: 2
- Forks: 6
- Open Issues: 2
- Releases: 6
Topics
Metadata Files
README.md
Federal Reserve Economic Data MCP Server
[!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
Installation
Installing via Smithery
To install Federal Reserve Economic Data Server for Claude Desktop automatically via Smithery:
bash
npx -y @smithery/cli install @stefanoamorelli/fred-mcp-server --client claude
Manual Installation
- Clone the repository:
bash git clone https://github.com/stefanoamorelli/fred-mcp-server.git cd fred-mcp-server - Install dependencies:
bash pnpm install - Build the project:
bash pnpm build
Configuration
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:
json
{
"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>"
}
}
}
}
Using Docker
You can also run the FRED MCP Server using Docker. Add this configuration to your claude_desktop_config.json:
json
{
"mcpServers": {
"fred-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"FRED_API_KEY=<your-key-here>",
"stefanoamorelli/fred-mcp-server:latest"
],
"env": {}
}
}
}
Replace <your-key-here> with your actual FRED API key.
Available Tools
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", "categoryseries", "releaseseries"
* category_id (optional): Category ID for browsing subcategories or series within a category
* release_id (optional): Release ID for browsing series within a release
* limit (optional): Maximum number of results (default: 50)
* offset (optional): Number of results to skip for pagination
* order_by (optional): Field to order results by
* sort_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 descriptions
* search_type (optional): "fulltext" or "seriesid"
* tag_names (optional): Comma-separated list of tag names to filter by
* exclude_tag_names (optional): Comma-separated list of tag names to exclude
* limit (optional): Maximum number of results (default: 25)
* offset (optional): Number of results to skip for pagination
* order_by (optional): Field to order by (e.g., "popularity", "lastupdated")
* `sortorder(optional): "asc" or "desc"
*filtervariable` (optional): Filter by "frequency", "units", or "seasonaladjustment"
* filter_value (optional): Value to filter the variable by
fred_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 format
* observation_end (optional): End date in YYYY-MM-DD format
* limit (optional): Maximum number of observations
* offset (optional): Number of observations to skip
* sort_order (optional): "asc" or "desc"
* units (optional): Data transformation:
- "lin" (levels/no transformation)
- "chg" (change from previous period)
- "ch1" (change from year ago)
- "pch" (percent change)
- "pc1" (percent change from year ago)
- "pca" (compounded annual rate of change)
- "cch" (continuously compounded rate of change)
- "log" (natural log)
* frequency (optional): Frequency aggregation ("d", "w", "m", "q", "a")
* aggregation_method (optional): "avg" (average), "sum", or "eop" (end of period)
Example Usage
With these three tools, you can: - Browse all economic categories and discover available data - Search for specific indicators by keywords or tags - Retrieve any of the 800,000+ series with custom transformations - Access real-time economic data including GDP, unemployment, inflation, interest rates, and more
Testing
See TESTING.md for more details.
```bash
Run all tests
pnpm test
Run specific tests
pnpm test:registry ```
License ⚖️
This open-source project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0). This means:
- You can use, modify, and distribute this software
- If you modify and distribute it, you must release your changes under AGPL-3.0
- If you run a modified version on a server, you must provide the source code to users
- See the LICENSE file for full details
For commercial licensing options or other licensing inquiries, please contact stefano@amorelli.tech.
© 2025 Stefano Amorelli
Owner
- Name: Stefano Amorelli
- Login: stefanoamorelli
- Kind: user
- Location: Tallinn, Estonia
- Website: amorelli.tech
- Twitter: stefanoamorelli
- Repositories: 1
- Profile: https://github.com/stefanoamorelli
Citation (CITATION.cff)
cff-version: 1.2.0
message: "If you use this software in your research or work, please cite it as below."
authors:
- family-names: Amorelli
given-names: Stefano
orcid: https://orcid.org/0009-0004-4917-0999
title: "Federal Reserve Economic Data MCP (Model Context Protocol) Server"
version: 1.0.0
date-released: 2025-05-13
url: https://github.com/stefanoamorelli/fred-mcp-server
GitHub Events
Total
- Create event: 13
- Issues event: 1
- Release event: 6
- Watch event: 25
- Delete event: 2
- Issue comment event: 4
- Push event: 39
- Public event: 1
- Pull request review event: 1
- Pull request event: 10
- Fork event: 2
Last Year
- Create event: 13
- Issues event: 1
- Release event: 6
- Watch event: 25
- Delete event: 2
- Issue comment event: 4
- Push event: 39
- Public event: 1
- Pull request review event: 1
- Pull request event: 10
- Fork event: 2
Issues and Pull Requests
Last synced: 4 months ago
All Time
- Total issues: 3
- Total pull requests: 15
- Average time to close issues: 8 days
- Average time to close pull requests: 1 day
- Total issue authors: 3
- Total pull request authors: 3
- Average comments per issue: 0.67
- Average comments per pull request: 0.67
- Merged pull requests: 11
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 3
- Pull requests: 15
- Average time to close issues: 8 days
- Average time to close pull requests: 1 day
- Issue authors: 3
- Pull request authors: 3
- Average comments per issue: 0.67
- Average comments per pull request: 0.67
- Merged pull requests: 11
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- sgoley (1)
- benjaminbascary97 (1)
- bivex (1)
Pull Request Authors
- stefanoamorelli (12)
- calclavia (2)
- sgoley (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- npm 1,632 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 8
- Total maintainers: 1
npmjs.org: fred-mcp-server
Federal Reserve Economic Data (FRED) MCP Server - Access all 800,000+ economic time series with search, browse, and data retrieval capabilities
- Homepage: https://github.com/stefanoamorelli/fred-mcp-server#README.md
- License: AGPL-3.0
-
Latest release: 1.0.0
published 5 months ago