Python time series forecasting assistant built on skforecast: deterministic decisions, the script that ran, an optional LLM that explains them, and an MCP server for AI agents.
- ✓Open-source license (Apache-2.0)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Topics declared
- ✓Documented (README)
claude mcp add skforecast-ai -- python -m skforecast-ai{
"mcpServers": {
"skforecast-ai": {
"command": "python",
"args": ["-m", "skforecast-ai"]
}
}
}Resumen de MCP Servers
<h1 align="left">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/skforecast/skforecast-ai/blob/main/docs/img/banner-landing-page-dark-mode-skforecast-ai-no-background.png?raw=true">
<img src="https://github.com/skforecast/skforecast-ai/blob/main/docs/img/banner-landing-page-skforecast-ai.png?raw=true" alt="skforecast-ai">
</picture>
</h1>
| | |
| --- | --- |
| Package |  [](https://pypi.org/project/skforecast-ai/) [](https://pepy.tech/projects/skforecast-ai) [](https://pypistats.org/packages/skforecast-ai) |
| Agents | [](https://ai.skforecast.org/stable/user-guides/mcp-server.html) [](https://registry.modelcontextprotocol.io/?q=skforecast) [](https://ai.skforecast.org/stable/user-guides/mcp-server.html#install) |
| Meta | [](https://github.com/skforecast/skforecast-ai/blob/main/LICENSE) [](https://doi.org/10.5281/zenodo.21338159) |
| Testing | [](https://github.com/skforecast/skforecast-ai/actions/workflows/unit-tests.yml) [](https://codecov.io/gh/skforecast/skforecast-ai) |
| Community | [](https://discord.gg/3V52qpNkuj) [](https://www.linkedin.com/company/skforecast/) [](https://cienciadedatos.net/en/forecasting-python) |
## About skforecast-ai
**The forecasting assistant that shows its work.** Give skforecast-ai a time series: it profiles the data, chooses the model with deterministic rules, validates it and returns the forecast together with the [skforecast](https://skforecast.org) script that produced it. Every decision comes from a rule you can read, the same data always gives the same result, and the script runs on its own with plain skforecast. An optional LLM explains every decision; it never makes them.
<p align="center">
<img src="https://github.com/skforecast/skforecast-ai/blob/main/docs/img/skforecast-ai-forecast-ask.png?raw=true" alt="skforecast-ai forecast of hourly bike sharing users with its 80% interval, and the ask() answer that explains the evaluation metrics" width="100%">
</p>
<sub>36-hour LightGBM forecast of hourly bike sharing users, with its 80% prediction interval against the held-out hours, and the answer of `ask()` that explains its metrics. Real skforecast-ai outputs, from the animation on [ai.skforecast.org](https://ai.skforecast.org).</sub>
## Installation
```bash
pip install skforecast-ai
```
The LLM layer is optional. To use it, install the extra (`[bedrock]` for AWS Bedrock):
```bash
pip install "skforecast-ai[llm]"
```
Requires Python 3.10 or newer. More options in the [installation guide](https://ai.skforecast.org/stable/quick-start/how-to-install.html); to install from source, see the [Contribution Guide](https://github.com/skforecast/skforecast-ai/blob/main/CONTRIBUTING.md).
## Quick example
[](https://colab.research.google.com/github/skforecast/skforecast-ai/blob/main/docs/quick-start/first-forecast.ipynb) Try it without installing anything: [Your first forecast](https://ai.skforecast.org/stable/quick-start/first-forecast.html) runs in Google Colab, from the data to a validated forecast, with no API key.
```python
from skforecast_ai import ForecastingAssistant
from skforecast.datasets import load_demo_dataset
# Download demo dataset (monthly)
data = load_demo_dataset(verbose=False)
# Profile the data, plan the model, generate the script and run it,
# evaluated on the last 12 months. No LLM needed.
assistant = ForecastingAssistant()
result = assistant.forecast(data=data, target="y", steps=12, test_size=12)
result.predictions.head()
# pred
# 2007-07-01 0.851486
# 2007-08-01 1.048000
# 2007-09-01 0.998147
# 2007-10-01 1.147577
# 2007-11-01 1.110845
result.metrics
# series MAE MSE MASE MAPE
# 0 y 0.078442 0.008933 0.802828 0.088608
print(result.code) # the skforecast script that produced this result
```
That single call chose a `ForecasterRecursive` with a `Ridge` estimator, its lags and window features, and ran the script that `result.code` returns. `result.profile` and `result.plan` hold every decision and the rule behind it. Drop `test_size` to train on all the data and forecast the next 12 months.
<details>
<summary><b>Same pipeline from the terminal</b></summary>
```bash
# End-to-end forecast
skforecast-ai forecast data.csv --target y --date-column date --steps 12
# Only the standalone script, without running it
skforecast-ai forecast-code data.csv --target y --date-column date --steps 12 --output forecast.py
```
The CLI covers the whole pipeline, including `ask()` and the prompts of `refine_plan()` and `create_cv()`. See [Using the CLI](https://ai.skforecast.org/stable/user-guides/cli-usage.html).
</details>
<details>
<summary><b>Ask why (optional LLM)</b></summary>
```python
# pip install "skforecast-ai[llm]"
assistant = ForecastingAssistant(llm="openai:gpt-5.5")
answer = assistant.ask(
"Is the MASE good, and why was this estimator chosen?",
context=result,
)
```
`ask()` reads the object you pass and explains it, grounded in the skforecast agent skills. It never changes the result. The dataset is never sent: a result shares only its own predictions and metrics, with a warning. Providers, credentials and local models are covered in [Configuring the LLM](https://ai.skforecast.org/stable/user-guides/llm-configuration.html).
</details>
<details open>
<summary><b>From your coding agent (MCP server)</b></summary>
In Claude Code, install the server and its skill as a plugin:
```text
/plugin marketplace add skforecast/skforecast-ai
/plugin install skforecast-ai@skforecast-ai
```
Then ask in plain language: *"Forecast the next 12 months of `data/sales.csv` and tell me how accurate it is."* The agent brings the language model and calls skforecast-ai as tools; every decision still comes from the same deterministic rules, every result comes with the script that produced it, and responses never carry rows of your data. The setups for Cursor, VS Code, Codex and Claude Desktop are in [MCP server for coding agents](https://ai.skforecast.org/stable/user-guides/mcp-server.html).
<p align="center">
<img src="https://github.com/skforecast/skforecast-ai/blob/main/docs/img/agent-session-short.gif?raw=true" alt="A coding agent asked to compare models for the next 12 months of a monthly series calls the skforecast-ai MCP server (profile, plan, create_cv, compare, get_code) and answers with the leaderboard against a seasonal naive baseline and the script of the winner" width="100%">
</p>
<sub>A real Claude Code session with the server and its skill, from the agent check of skforecast-ai 0.4.0, abridged: the first three calls share a row, and an ellipsis marks every cut in a response or in the answer. The <a href="https://github.com/skforecast/skforecast-ai/blob/main/docs/img/agent-session.gif">whole session</a> shows every call, every message of the agent and its complete answer.</sub>
In VS Code, this button adds the server and asks for the directory with your data (it needs [uv](https://docs.astral.sh/uv/)):
[](https://insiders.vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522skforecast-ai%2522%252C%2522command%2522%253A%2522uvx%2522%252C%2522args%2522%253A%255B%2522skforecast-ai-mcp%2522%252C%2522--allow-dir%2522%252C%2522%2524%257Binput%253Aallow_dir%257D%2522%255D%252C%2522inputs%2522%253A%255B%257B%2522type%2522%253A%2522promptString%2522%252C%2522id%2522%253A%2522allow_dir%2522%252C%2522description%2522%253A%2522Absolute%2520path%2520of%2520the%2520directory%2520with%2520your%2520CSV%2520files%2520%2528the%2520server%2520reads%2520only%2520inside%2520it%2529%2522%257D%255D%257D)
</details>
## Features
### A deterministic engine
- **[Data profiling](https://ai.skforecast.org/stable/user-guides/agentic-forecasting-step-by-step.html)**: frequency, missing values, exogenous and categorical variables, and the significant lags from the partial autocorrelation.
- **A plan with a rule for every decision**: forecaster and estimator, lags, window and calendar features, prediction intervals, metric and cross-validation.
- **The code you see is the code that ran**: `forecast()` and `backtest()` execute the same script that `forecast_code()` and `backtest_code()` return. Inspect it, version it or run it with plain skforecast.
- **[Model selection](https://ai.skforecast.org/stable/user-guides/agentic-foreLo que la gente pregunta sobre skforecast-ai
¿Qué es skforecast/skforecast-ai?
+
skforecast/skforecast-ai es mcp servers para el ecosistema de Claude AI. Python time series forecasting assistant built on skforecast: deterministic decisions, the script that ran, an optional LLM that explains them, and an MCP server for AI agents. Tiene 51 estrellas en GitHub y su última actualización registrada es del 2026-10-12.
¿Cómo se instala skforecast-ai?
+
Puedes instalar skforecast-ai clonando el repositorio (https://github.com/skforecast/skforecast-ai) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.
¿Es seguro usar skforecast/skforecast-ai?
+
Nuestro agente de seguridad ha analizado skforecast/skforecast-ai y le ha asignado un Trust Score de 95/100 (tier: Verified). Revisa el desglose completo de comprobaciones superadas y flags en esta página.
¿Quién mantiene skforecast/skforecast-ai?
+
skforecast/skforecast-ai es mantenido por skforecast. La última actividad registrada en GitHub es del 2026-10-12, con 1 issues abiertos.
¿Hay alternativas a skforecast-ai?
+
Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.
Despliega skforecast-ai en tu cloud
Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.
¿Mantienes este repo? Añade un badge a tu README
Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.
[](https://claudewave.com/repo/skforecast-skforecast-ai)<a href="https://claudewave.com/repo/skforecast-skforecast-ai"><img src="https://claudewave.com/api/badge/skforecast-skforecast-ai" alt="Featured on ClaudeWave: skforecast/skforecast-ai" width="320" height="64" /></a>Más MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
Reverse engineer anything with agents, from app behavior down to native binaries.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev