MCP server for Google's TimesFM 2.5 foundation model — give any AI agent zero-config time-series forecasting.
Project description
timesfm-mcp
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.
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, advanced)
TimesFM 2.5 is not on PyPI — install it from source, then install timesfm-mcp into the same environment:
git clone https://github.com/google-research/timesfm.git
cd timesfm && pip install -e ".[torch]"
pip install timesfm-mcp
timesfm-mcp
Requires ~16 GB RAM and downloads ~800 MB of model weights on first use. The server auto-detects TimesFM and upgrades to it automatically; no config change needed.
You don't need TimesFM to get started. uvx timesfm-mcp works instantly with the built-in statistical baseline — no download, no GPU, no extra install.
Two backends, zero config
| Backend | When active | What it needs |
|---|---|---|
| TimesFM 2.5 (Google) | When installed | Install from source — see below |
| 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:
- Getting Started — installation and first forecast
- Client Setup — Claude Desktop, Claude Code, Cursor configs
- Tool Reference — full parameter docs
- Cookbook — SaaS MRR, e-commerce demand, traffic, cloud spend
- How It Works — the math and model
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file timesfm_mcp-0.1.4.tar.gz.
File metadata
- Download URL: timesfm_mcp-0.1.4.tar.gz
- Upload date:
- Size: 111.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39ec17d676e029ebb4abcbf57b76d0a204c055e2725a1c4f65e6ab01134358ef
|
|
| MD5 |
69869ba322b28dde04c4b40cfef9b644
|
|
| BLAKE2b-256 |
60f98de166191831d65400281b23a12b68a27fe1211f80c1ebbea2fc31da652f
|
File details
Details for the file timesfm_mcp-0.1.4-py3-none-any.whl.
File metadata
- Download URL: timesfm_mcp-0.1.4-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9e33a117e7026c346c8b6348208a507b827d32b87dcf8b3388e4ad474a62f37
|
|
| MD5 |
7568311404239c5cfbafd3400fed1eda
|
|
| BLAKE2b-256 |
f62651a469e1d725483f079af083c163879b55235c5fbaa3559a22a80b6e97a2
|