r/ClaudeCode • u/francescogab_ • 6h ago
Built with Claude I built a local MCP server so Claude Code can forecast a CSV (and check later if it was right)
I wanted to ask Claude Code "what will this look like in two weeks?" and get a number
computed by a real forecasting model, not guessed by the LLM.
So I built Forecast Anything. It runs Mistral's Timestral locally and exposes it over MCP:
uv tool install "forecast-anything[mcp]"
forecast-anything setup --client claude-code --prepare-model
Then put a CSV in the workspace's `sources` folder and ask:
"Forecast the next two weeks of this file and tell me how much to trust it."
What it does beyond calling the model from a script:
- No look-ahead: a forecast only sees what was known at its cutoff
- Every forecast is stored, so you can score it against what actually happened
- Backtests compare it with a seasonal-naive baseline
- The core computes every number; Claude only assembles the request and reports it
On a pre-registered holdout of four public datasets, Timestral 123M's MASE was 19-43%
lower than seasonal naive, and its 80% intervals covered 79-84% of outcomes.
Limits: CPU only, macOS/Linux (no Windows yet), CSV and HTTP JSON sources only.
Code is Apache 2.0; the Timestral weights have their own license from Mistral.
Repo: https://github.com/francescogabrieli/forecast_anything
I'd love to hear where setup breaks, and what data you'd try it on.
•
u/AutoModerator 6h ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/calunicornia 6h ago
What kinds of data is it good at predicting?
1
u/Splax77 6h ago
Why?