Skip to main content

MCP server for Federal Reserve Economic Data (FRED)

Project description

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 (0.1.0 -> 0.1.1) and publish
.\publish.ps1 patch

# Bump minor version (0.1.0 -> 0.2.0) and publish
.\publish.ps1 minor

# Bump major version (0.1.0 -> 1.0.0) and publish
.\publish.ps1 major

To test the build process without uploading, use the -DryRun flag:

.\publish.ps1 patch -DryRun

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fred_data_mcp-0.1.1.tar.gz (96.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fred_data_mcp-0.1.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file fred_data_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: fred_data_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 96.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for fred_data_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b9e94ad8660fcc3c87166fa8b677a9a62919881b3f1966fda1d0904002d2edca
MD5 f288276e7b751142e05891c952f4bef1
BLAKE2b-256 a8842aa5565ab9931897e021491c4841a230b55a5a1fa14b89bdc48cf1ed48eb

See more details on using hashes here.

File details

Details for the file fred_data_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: fred_data_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for fred_data_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3460a2119897c378ac4883c405b644155aff3dc21d0f5b1ec8d14db4f3c61e15
MD5 647922c151fcd80d17c9ea4f2ef2befd
BLAKE2b-256 ae934e435d9e0c00ad4f478d11bb47f8c22c0072cb51c8ccac9063d804c6fa9b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page