Skip to main content

MCP server for CalcFi free financial data (BEA / BLS / Census / FRED / Freddie Mac). Python wrapper that launches the Node-based stdio bridge.

Project description

calcfi-mcp

PyPI version Python versions License: MIT

Model Context Protocol (MCP) server for CalcFi free financial data.

A pip install-friendly wrapper that launches the official Node-based CalcFi MCP server over stdio. Gives Claude Desktop, Cursor, Continue, Cline, and any other MCP-compatible agent live access to:

  • BEA — Bureau of Economic Analysis (GDP, personal income)
  • BLS — Bureau of Labor Statistics (CPI, unemployment, wages)
  • Census — household income, ACS
  • FRED — Federal Reserve Economic Data
  • Freddie Mac — mortgage rates (PMMS)

Free-tier only. No paid API keys required. No CalcFi account required.


Install

pip install calcfi-mcp

Requires Python 3.9+ and Node.js 18+ (the wrapper will print install instructions if Node is missing).

On first run, the wrapper will offer to npm install -g calcfi-mcp-server for you. Pass --yes to skip the confirmation prompt.


Quick start — Claude Desktop

  1. Install the package:

    pip install calcfi-mcp
    
  2. Print the config snippet:

    calcfi-mcp --print-config
    
  3. Paste the output into your Claude Desktop config file:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
    • Linux: ~/.config/Claude/claude_desktop_config.json
  4. Restart Claude Desktop. You should see a calcfi MCP server appear.

The snippet looks like:

{
  "mcpServers": {
    "calcfi": {
      "command": "calcfi-mcp",
      "args": []
    }
  }
}

Quick start — Cursor / Continue / Cline

Any MCP client that supports stdio transport works the same way — point command at calcfi-mcp (the script installed on your PATH by pip install).

For Cursor: ~/.cursor/mcp.json For Continue: project .continue/config.json For Cline: VS Code settings → cline.mcpServers


CLI reference

calcfi-mcp                  Launch the MCP stdio server (default)
calcfi-mcp --print-config   Print a JSON config snippet to paste into your MCP client
calcfi-mcp --install        Force-install the Node-side calcfi-mcp-server
calcfi-mcp --yes            Skip the npm install confirmation prompt
calcfi-mcp --version        Print the wrapper version
calcfi-mcp --help           Show help

How it works

calcfi-mcp is a thin Python launcher. The actual MCP protocol implementation is the Node package calcfi-mcp-server. On first run, this wrapper:

  1. Checks node --version is available
  2. Checks calcfi-mcp-server is installed globally; offers to npm install -g it if not
  3. Spawns the Node server as a subprocess and proxies stdin / stdout / stderr verbatim to your MCP client

Stdlib only — no requests, no httpx, no surprise dependencies.


Free tier

All CalcFi data sources are public, free, and rate-limited at provider quotas. CalcFi does not charge for MCP access.


Cite CalcFi

If you build research on top of CalcFi data, please cite:

Salmisto, J. (2026). CalcFi: open personal-finance calculation engine. Zenodo. https://doi.org/10.5281/zenodo.calcfi

DOI: 10.5281/zenodo.calcfi


Disclaimer

CalcFi output is educational only. Not financial, tax, legal, or investment advice. Always verify against primary sources (BEA, BLS, Census, FRED, Freddie Mac).


Links

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

calcfi_mcp-0.1.1.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

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

calcfi_mcp-0.1.1-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for calcfi_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b06eee839c7484d2b461d0318dd4996ea7a56f4e4f0c346c9dc474d45cbbc802
MD5 4839f416db1ca47e1c3d111cf0aec482
BLAKE2b-256 0b565e84c0da1ddbb15a944a2d2fb9b894baf951f0c7f57eceed4c073aed7d79

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for calcfi_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f8751ea8edf4b73aeb5bd0ea09f4f86c02b99b8b5db458db82afe8a7c1b9263e
MD5 2688415a5bf72a8ef396e13d96cc0d40
BLAKE2b-256 faef37f19fd9d96d62d4e5960d8b7d326d8b43c8a35839a57a7ecb8bbde67333

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