Skip to main content

An MCP server that gives any AI agent time-series forecasting superpowers (TimesFM 2.5 + statistical baselines).

Project description

forecast-mcp

CI PyPI Docs

Give any AI agent time-series forecasting superpowers.

An MCP server that lets Claude Code, Claude Desktop, Cursor, or any MCP client forecast a series of numbers — sales, traffic, usage, costs — and reason about the result. Powered by Google's TimesFM 2.5 foundation model, with a zero-dependency statistical baseline so it works the moment you install it.

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

Illustrative — statistical baseline backend. Your agent calls forecast(values=[...], horizon=6, quantiles=[0.9]) and gets back these numbers plus a plain-language summary.

Why

LLM agents can read, write, and run code — but they can't see the future. This gives them a clean forecast tool. The agent calls it, gets point forecasts + uncertainty bands + a compact trend/seasonality summary, and writes the explanation and recommendation itself.

Quickstart (30 seconds)

uvx forecast-mcp        # runs over stdio for local agents

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

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

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

Enable the foundation model

pip install "forecast-mcp[timesfm]"

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

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 and compare TimesFM vs baseline performance (MAE/sMAPE).

Documentation

Full docs in the docs/ folder:

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

forecast_mcp-0.1.2.tar.gz (116.5 kB view details)

Uploaded Source

Built Distribution

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

forecast_mcp-0.1.2-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file forecast_mcp-0.1.2.tar.gz.

File metadata

  • Download URL: forecast_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 116.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.1

File hashes

Hashes for forecast_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 a4a36dc7182b4f38206d6c71123a474eb6915aead1c26038eae0d11dc76ac15d
MD5 ef4b7bdf574e9e36a0c25221513bbb96
BLAKE2b-256 e88b9f5cab0c553cc1dcd9352123900eb0237f4637db84e410fb4923fe3fd5db

See more details on using hashes here.

File details

Details for the file forecast_mcp-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: forecast_mcp-0.1.2-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.11.1

File hashes

Hashes for forecast_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d52eca6c0d7a106105faab176b7a3ac38c0022514fb84342a09e9f33d70779a7
MD5 fde82db2854843fd8adc9d311a0511b0
BLAKE2b-256 68bce3d3600f35b1f02c2ad8c38878bdb13c976406db02b20fd2f938b1ce681a

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