FRED MCP Server
An MCP server for the Federal Reserve Economic Data (FRED) API.
Features
- Search for economic data series.
- Retrieve data points for series.
- Explore Categories, Releases, Sources, and Tags.
- Pagination support for large datasets.
- Option to save data as JSON files.
Configuration
Set the FRED_API_KEY environment variable to your FRED API key.
Usage
Run with uvx (if published):
uvx fred-data-mcp
Installation from PyPI
Once published, you can install and run directly:
pip install fred-data-mcp
# or
uvx fred-data-mcp
Claude Desktop Configuration
To use this server with the Claude Desktop app, add the following to your claude_desktop_config.json:
Published Package (Recommended)
If you have published the package to PyPI, you can key off the package name directly:
{
"mcpServers": {
"fred": {
"command": "uvx",
"args": [
"fred-data-mcp"
],
"env": {
"FRED_API_KEY": "your_api_key_here"
}
}
}
}
Local Development
If you are running from the source code repository:
{
"mcpServers": {
"fred": {
"command": "uvx",
"args": [
"--from",
"/absolute/path/to/fred-mcp",
"fred-data-mcp"
],
"env": {
"FRED_API_KEY": "your_api_key_here"
}
}
}
}
Development
Running the MCP Inspector
To test the server locally with the MCP Inspector:
Windows (PowerShell):
$env:FRED_API_KEY = "your_api_key_here"
.\run-inspector.ps1
Bash:
export FRED_API_KEY="your_api_key_here"
./run-inspector.sh
Alternatively, run the command directly:
npx @modelcontextprotocol/inspector uv run fred-data-mcp
## Publication
### Publishing to PyPI
A helper script `publish.ps1` is provided to automate version bumping and publication.
**Requirements:**
- `uv` installed.
- PyPI credentials configured (e.g., via `~/.pypirc` or environment variables `TWINE_USERNAME` and `TWINE_PASSWORD`).
**Usage (Windows PowerShell):**
```powershell
# Bump patch version and publish
.\publish.ps1 patch
Usage (Bash):
# Bump patch version and publish
./publish.sh patch
To test the build process without uploading, use the -DryRun (PS) or --dry-run (Bash) flag:
.\publish.ps1 patch -DryRun
# or
./publish.sh patch --dry-run
Metadata
Release files for fred-data-mcp 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fred_data_mcp-0.1.7.tar.gz | 115.6 kB | Without provenance | Details for fred_data_mcp-0.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fred_data_mcp-0.1.7-py3-none-any.whl | Python 3 | none | any | Details for fred_data_mcp-0.1.7-py3-none-any.whl |
Total release size: 122.4 kB
Release files / fred_data_mcp-0.1.7.tar.gz
| Download URL | fred_data_mcp-0.1.7.tar.gz |
|---|---|
| Size | 115.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6da8fc0005338d5d14bb663eac6916b1433d3be0b11f6d2262e698ab6f00bf6e
|
|
BLAKE2b-256 checksum How to use checksums |
99f6de8d5f0ecb3144f39aa302e9b22048767edd8632574b731ea26b7c1e8368
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.4
|
Release files / fred_data_mcp-0.1.7-py3-none-any.whl
| Download URL | fred_data_mcp-0.1.7-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
57b6f210f31498d4341ef777fbcd71387f331854e0bffc4a03b3a35745f43189
|
|
BLAKE2b-256 checksum How to use checksums |
468e3b8e34314d6eebb52671293b443503798afaf93320fd1a05ff71035cd000
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.4
|
Security for fred-data-mcp 0.1.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.