Skip to main content

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

Project description

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. Install the timesfm extra (pip install "timesfm-mcp[timesfm]") to use the full TimesFM 2.5 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

pip install "timesfm-mcp[timesfm]"

The server auto-detects TimesFM and uses it; otherwise it falls back to the built-in statistical baseline. Both backends always return a result — no configuration needed.

Two backends, zero config

Backend When active What it needs
TimesFM 2.5 (Google) When installed pip install "timesfm-mcp[timesfm]"
Statistical baseline Always Just NumPy — already a dependency

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

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

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

timesfm_mcp-0.1.3.tar.gz (110.8 kB view details)

Uploaded Source

Built Distribution

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

timesfm_mcp-0.1.3-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file timesfm_mcp-0.1.3.tar.gz.

File metadata

  • Download URL: timesfm_mcp-0.1.3.tar.gz
  • Upload date:
  • Size: 110.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for timesfm_mcp-0.1.3.tar.gz
Algorithm Hash digest
SHA256 bd92c399ad8c6a7ee06ce011d57e22298c1a97827a953cd9bc9768fb0a94f0d2
MD5 8e1283d906ee73c18aabf0109b0a2fee
BLAKE2b-256 10e961438de0a712b6bee1cc4823acfd7e1d6948af44cdceb90a06c2cc49e642

See more details on using hashes here.

File details

Details for the file timesfm_mcp-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: timesfm_mcp-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for timesfm_mcp-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ffb9526a030fbc2695252650e699b032235d786799cd176f6f0873724407181e
MD5 6d53a4443ea058b57499935ed023b92a
BLAKE2b-256 2da0437f0f60bc4e5755ca2e172cc78664e78455eada124ac981967f34dd306a

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