Forecast Anything
Timestral, from your assistant. Connect a CSV, ask Claude (or another MCP client) for a forecast, and check later whether it was right.
Forecast Anything runs Mistral's Timestral forecasting model locally and exposes it to your assistant over MCP. You talk in plain language; the assistant previews your file, asks what it cannot infer (when each value becomes known, its unit and cadence), and returns a forecast with its uncertainty band and a comparison against a simple baseline. Your data stays on your machine.
How the code fits together
The map is generated with Floorplan, a Claude Code plugin that draws a codebase as an interactive, plain-English map. The animation follows one request: the assistant asks for a forecast, and it passes through the local API, the data layer, the models and the SQLite ledger.
Why not just call Timestral from a script?
A script gives you numbers. This gives you numbers you can check:
- No look-ahead. Every observation records when it became available, and a forecast only sees what was known at its cutoff.
- A record you can revisit. Every forecast is stored immutably with its inputs, model revision and assumptions, so you can score it later against what actually happened.
- An honest comparison. Backtests replay past cutoffs and compare Timestral with a seasonal-naive baseline on the same cells, and the report says when there is not enough evidence.
- No code. The assistant assembles the requests; the core validates them and computes every number. Model prose is never used as evidence.
Measured once, on data no decision had seen
On a pre-registered, single-use holdout of four public domains (M5 retail, household electricity, M4 daily macro series and Wikipedia traffic), the automatic model choice was as accurate as the best single Timestral checkpoint: MASE within 0.1% and CRPS within 0.1% in every domain. On the same origins, Timestral 123M had a lower MASE than the seasonal-naive baseline in all four domains (relative MASE 0.57 to 0.81), and its 80% intervals covered 79–84% of outcomes. These numbers describe those frozen origins only. The full results, including where the classical models came close, are in the results page.
Quick start
uv tool install "forecast_anything-0.2.0-py3-none-any.whl[mcp]"
forecast-anything setup --client claude-desktop --prepare-model
The package is not on PyPI yet, so the first command installs a wheel from a reviewed build (uv build in this checkout makes one). Restart Claude Desktop, put a CSV in the sources folder of the workspace that setup reports, and ask: "Forecast the next two weeks of this file and tell me how much to trust it." --client also accepts claude-code, codex, and none (prints a config snippet for any other MCP client). On macOS and Linux, setup runs the workspace as a login service. The installation guide covers checksums, updates, removal and running without a service. The generated reference lists every tool, provider and operator.
See it on real data. Replay a daily retail forecast from a public CSV, and reopen the saved question: real-data demo and 30-second video.
How it works
your assistant ──MCP (stdio)──▶ local adapter ──HTTP, loopback──▶ API + worker ──▶ Timestral on CPU
(computes nothing) (SQLite ledger)
- Preview and confirm a source. The assistant reads a CSV from a folder you approved and proposes a mapping. You confirm what it cannot know, such as when each value became available. The data is frozen as an immutable snapshot.
- Forecast. The worker runs Timestral and a seasonal-naive baseline on that snapshot. The result carries point forecasts, quantiles, the model revision and every assumption.
- Check it. Replay past cutoffs with a backtest, or score the forecast later against the values that actually arrived. The assistant reports what the core computed, never its own estimate.
The quickstart walks through this journey. The MCP guide covers other clients and the two tool profiles. The default essential profile has 13 tools; --profile full adds saved questions, recurring watches and raw evidence reads.
What works today
| Area | Status | Limits |
|---|---|---|
| Assistant over MCP | Claude Desktop, Claude Code and Codex registration; any stdio MCP client by snippet. Tested with the official Python MCP SDK against a real API and worker. | Rendering inside each host varies; see the compatibility matrix. |
| Sources | Local CSV and bounded HTTP JSON, with explicit time, availability, unit, cadence and timezone. | No spreadsheets, databases or pagination yet: these are good first issues. |
| Forecasting | Timestral 28M (default) or 123M, pinned and local, with point forecasts and quantiles. ETS, Theta, AutoARIMA and seasonal naive as comparators. | CPU only. Weights have their own license (see below). |
| Evidence | Backtests over frozen past cutoffs, later scoring against observed values, immutable records. | Product backtests score MAE. Interval coverage was measured once, on the V1 holdout. |
| Setup | setup installs a login service on macOS (LaunchAgent) and Linux (systemd user unit). |
Windows is not supported yet: process supervision is POSIX only. |
| Experimental | Joint sample paths for sums and threshold events across a horizon. | Not calibrated; no probability-accuracy claim. |
The capability matrix has the precise boundaries, and the generated reference lists every tool, provider and operator.
Documentation
- Quickstart and installation: first forecast, service, updates and removal.
- MCP guide: tools, profiles, errors and provider selection.
- Connectors: mapping a source, availability time and adding a connector.
- Architecture, API and operators.
- Timestral: pinned revisions, parity check and weights license.
- Benchmarks: the development comparison, and the V1 holdout.
- Roadmap.
Contribute
Start with CONTRIBUTING and the issues labelled good first issue. scripts/check.sh runs every check CI runs. Routine tests need no model weights, network model calls or private data. Report vulnerabilities privately, as described in SECURITY.
License
Project code is under the Apache License 2.0. Timestral's weights are licensed separately by Mistral AI under a modified MIT license, which requires a separate license above USD 20 million of global consolidated monthly revenue; forecast-anything model status shows the pinned license and its link. NOTICE lists the terms for dependencies, datasets and weights.
Metadata
Release files for forecast-anything 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| forecast_anything-0.2.0.tar.gz | 3.5 MB | With provenance | Details for forecast_anything-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| forecast_anything-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for forecast_anything-0.2.0-py3-none-any.whl |
Total release size: 4.0 MB
Release files / forecast_anything-0.2.0.tar.gz
| Download URL | forecast_anything-0.2.0.tar.gz |
|---|---|
| Size | 3.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
482f758a6d84dcc8870c487e9951ff79f826f5f829986374bd53271126397fe4
|
|
BLAKE2b-256 checksum How to use checksums |
d99aa4355f9f30422e9fae81fb343de796287bab064b91d57a4ea0c301e3fedb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / forecast_anything-0.2.0-py3-none-any.whl
| Download URL | forecast_anything-0.2.0-py3-none-any.whl |
|---|---|
| Size | 490.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6a5c973cb650dbd6b3796ca0586933152d92f38cbfebc3cbf4a583670081ab47
|
|
BLAKE2b-256 checksum How to use checksums |
dbd50840c62dfa7cdf3ab361f69467456b90af144e95181535ff232d415c6598
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logSecurity for forecast-anything 0.2.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for forecast_anything-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logA 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.