Skip to main content

timesfm-mcp

CI PyPI Docs

MCP server for Google's TimesFM 2.5 — give any AI agent zero-config time-series forecasting.

Plug TimesFM 2.5, Google's 200M-parameter foundation model for time-series, directly into Claude Code, Claude Desktop, Cursor, or any MCP client. The agent calls forecast, gets point predictions + uncertainty bands + a trend/seasonality summary, and writes the explanation itself.

No ML configuration. No data pipelines. One line to run.

Forecast chart: 24-month MRR history with 6-month point forecast and 90% confidence band

Chart generated with the statistical baseline. See "Enable TimesFM 2.5" below to use the full neural model.

Quickstart (30 seconds)

uvx timesfm-mcp        # runs over stdio for local agents

Add to your Claude Desktop / Claude Code / Cursor config:

{
  "mcpServers": {
    "forecast": { "command": "uvx", "args": ["timesfm-mcp"] }
  }
}

Then ask your agent: "Forecast the next 6 months from this revenue data and tell me what to expect."

Enable TimesFM 2.5 (optional)

System requirements: ≥ 16 GB RAM · ~800 MB disk (model weights, downloaded on first use) · PyTorch

Not sure? Skip this — uvx timesfm-mcp already works great on any machine.

pip install "timesfm-mcp[timesfm]"

The TimesFM 2.5 source is bundled inside this package (Apache-2.0, Google LLC) — no separate git clone needed. The server auto-detects it and upgrades automatically; no config change required.

Two backends, zero config

Backend When active System requirement Install
Statistical baseline Always — default Any machine uvx timesfm-mcp
TimesFM 2.5 (Google) When installed ≥ 16 GB RAM + ~800 MB disk pip install "timesfm-mcp[timesfm]"

Start with the baseline. It runs on any machine, installs in seconds, and delivers production-ready forecasts. Upgrade to TimesFM only if you need the neural model's extra accuracy and have the RAM for it.

Tools

Tool What it does
forecast Forecast a single series with optional uncertainty bands
list_backends Report which engine is active (timesfm / baseline)
backtest Hold out the last N points — compare TimesFM vs baseline MAE/sMAPE

Supported clients

Works with any MCP-compatible agent. Verified configs in Client Setup:

Client Config
Claude Desktop claude_desktop_config.json
Claude Code claude mcp add forecast -- uvx timesfm-mcp
GitHub Copilot (VS Code) .vscode/mcp.json
Cursor ~/.cursor/mcp.json
Windsurf ~/.codeium/windsurf/mcp_config.json
Cline (VS Code) Cline MCP settings panel
Continue.dev ~/.continue/config.json
Zed ~/.config/zed/settings.json

Documentation

Full docs in the docs/ folder:

Migrating from forecast-mcp

timesfm-mcp is the renamed continuation of forecast-mcp. Update your install:

pip install timesfm-mcp      # replaces: pip install forecast-mcp
uvx timesfm-mcp              # replaces: uvx forecast-mcp

Update your agent config: change "args": ["forecast-mcp"] → "args": ["timesfm-mcp"].

License

Apache-2.0

Metadata

Release files for timesfm-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)

Source distribution for timesfm-mcp 0.1.7
File Size Uploaded Provenance Actions
timesfm_mcp-0.1.7.tar.gz 138.2 kB Without provenance Details for timesfm_mcp-0.1.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for timesfm-mcp 0.1.7
File Interpreter ABI Platform Actions
timesfm_mcp-0.1.7-py3-none-any.whl Python 3 none any Details for timesfm_mcp-0.1.7-py3-none-any.whl

Total release size: 189.9 kB

Release files / timesfm_mcp-0.1.7.tar.gz

Download URL timesfm_mcp-0.1.7.tar.gz
Size 138.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5a867558d10f0bea9932285a67f2a673ab6700092d4423fd7725e063cc745f10
BLAKE2b-256 checksum
How to use checksums
269998623996db0bba23e75ad314eca68b8bdd87e043a80b7858a0da202c0340
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Release files / timesfm_mcp-0.1.7-py3-none-any.whl

Download URL timesfm_mcp-0.1.7-py3-none-any.whl
Size 51.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
947027c840b3fdedfd79add313043ffb00f4f65a303d98279da6357c152348b6
BLAKE2b-256 checksum
How to use checksums
ccdcbdf6d4d7a30a44c4cae938381ecb77a06fcf2599f3dc66ba4014b76f6eec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Security for timesfm-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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page