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 at ramdhavepreetam.github.io/forecast-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

forecast_mcp-0.1.1.tar.gz (116.3 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.1-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: forecast_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 116.3 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.1.tar.gz
Algorithm Hash digest
SHA256 3cc765f4dabb2192910575d04763d613bbaccf2e3730cd279dabec6c55b227f0
MD5 0880ca95534241b4eb27a8bd60139097
BLAKE2b-256 91107453d51b069041a3cb4795636e9cf282d423a1edf0c21ab87596a2756f71

See more details on using hashes here.

File details

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

File metadata

  • Download URL: forecast_mcp-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 95db6e21d21e86a9ee46d72718f18ae3499b74816df608b142aeaaa3457eccbf
MD5 836de50d6efb418d20e6b5424258f840
BLAKE2b-256 a353812ddc4ef45434e947bdee520b4749b2bed5fe7867ae5f108b9ee7d9ec9f

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