> Markdown version of [/videos/100669-agentic-forecasting-with-sktime-towards-autonomous-time-series-analysis](https://www.wearedevelopers.com/videos/100669-agentic-forecasting-with-sktime-towards-autonomous-time-series-analysis). Every page supports `.md` or `Accept: text/markdown`. Links point to the HTML versions so they work for humans too. Agent guide: [/agents.md](https://www.wearedevelopers.com/agents.md). --- # Agentic Forecasting with sktime: Towards Autonomous Time Series Analysis Can AI agents automate time series forecasting without getting trapped in infinite code loops? See how sktime uses a deterministic MCP server to build reproducible pipelines across 500 models. - **Speakers:** [Srujan Patwardhan](https://www.wearedevelopers.com/@srujan-patwardhan), [Shashank Shekhar Singh](https://www.wearedevelopers.com/@shashank-shekhar-singh-2), [Aryan Saini](https://www.wearedevelopers.com/@aryan-saini) - **Event:** Conference India 2026 - **Published:** November 26, 2026 - **Duration:** 26:35 - **URL:** https://www.wearedevelopers.com/videos/100669-agentic-forecasting-with-sktime-towards-autonomous-time-series-analysis - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/c3383bd5a00951240975f24cd178a8c3/thumbnails/thumbnail.jpg?time=30000ms ## Summary Time series forecasting traditionally requires heavy manual effort to prepare data, detect seasonal trends, select from hundreds of algorithms, and backtest results. Built on scikit-learn, the open-source sktime library streamlines this workflow by introducing agentic forecasting capabilities across its catalog of over 500 statistical and foundation models. Aryan Saini and Shashank Shekhar Singh demonstrate how coding agents can automate complex tasks like 24-hour energy load forecasting across hundreds of customers. sktime supports agentic workflows through three mechanisms: harnesses, skills, and an MCP server. Harnesses benchmark and check estimators, while user and developer skills allow AI assistants like Claude Code to autonomously write and execute Python scripts or build custom production forecasters. However, because freeform code generation can occasionally get stuck in infinite loops, the sktime MCP server provides a deterministic, stateful alternative. Instead of generating raw code, the MCP client invokes typed tool calls for registry discovery, statistical data inspection, model training, background job queuing, and evaluation. By separating the LLM environment from backend CPU processes and applying configurable timeout fallbacks, the MCP server prevents memory bottlenecks and ensures stability. Crucially, its reproduction tools export the entire fitted pipeline—such as daily and weekly deseasonalization paired with an AutoETS model—into a clean, shareable Python artifact and visual plot, achieving autonomous forecasting without sacrificing scientific reproducibility. **Keywords:** agentic time series forecasting, sktime library, scikit-learn time series interface, MCP server for machine learning, automated model selection, time series backtesting, energy load forecasting, reproducible ML pipelines, stateful model training, AutoETS model, time series deseasonalization, Claude Code integration, coding agent skills, portfolio optimization with PyPortfolioOpt, autonomous data inspection ## Chapters 1. **Automating manual time series forecasting workflows with sktime** (00:02) — Traditional forecasting requires repetitive manual effort for data preparation and backtesting, which sktime reduces by combining open-source scikit-learn interfaces with coding agents. 1. **Common forecasting use cases and energy load challenges** (02:55) — Forecasting across retail, healthcare, and energy supply involves scaling thousands of daily predictions while continuously tracking trends and errors. 1. **Overview of sktime harnesses, skills, and MCP server** (04:54) — Navigating hundreds of time series models is simplified through automated evaluation harnesses, code-generating agent skills, and a deterministic MCP server. 1. **Live demo of forecasting energy load with user skills** (07:29) — Using Claude Code with sktime user skills automates data loading, model comparison, and notebook generation for a 24-hour electricity forecast. 1. **Architecture and tool classes of the sktime MCP server** (12:51) — To avoid non-deterministic code generation, the sktime MCP server isolates LLM and CPU environments while exposing typed tools for discovery, data inspection, training, and code export. 1. **Live demo of reproducible forecasting using sktime MCP** (16:22) — Running the energy forecast through the MCP server executes structured tool calls to deseasonalize data, fit an AutoETS model, and export a reproducible Python script. 1. **Comparing harnesses, skills, and MCP in the sktime ecosystem** (20:25) — Choosing between harnesses, skills, and the MCP server depends on whether a workflow requires automated code checking, flexible script writing, or stateful multi-model execution. 1. **Portfolio optimization, real-world validation, and agent error recovery** (22:11) — Addressing production challenges involves using specialized libraries like PyPortfolioOpt for trading, accounting for domain stochasticity, and configuring MCP timeout fallbacks to prevent infinite agent loops. ## Related Moments - [Tracking cloud provider simplifications and time series models](https://www.wearedevelopers.com/videos/1129-should-we-build-generative-ai-into-our-existing-software) (from "Should we build Generative AI into our existing software?") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/755148c4cb52eb507258146397d341f4/thumbnails/thumbnail.jpg?time=125665ms - [Visualizing the future of proactive multi-tool agent orchestration](https://www.wearedevelopers.com/videos/100305-api-mcp-or-mcp-app-choosing-the-right-surface-for-ai-agents) (from "API, MCP or MCP App? Choosing the right surface for AI agents") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/ac896e8d6e6c4a60793b5fd352249fe2/thumbnails/thumbnail.jpg?time=36800ms - [Transitioning from machine learning models to complex agentic systems](https://www.wearedevelopers.com/videos/1383-the-state-of-genai-machine-learning-in-2025) (from "The State of GenAI & Machine Learning in 2025") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/04a1e0c8f374dfdae454595bdb830ced/thumbnails/thumbnail.jpg?time=202545ms - [Emerging capabilities of predictive analytics and proactive intelligent agents](https://www.wearedevelopers.com/videos/1099-genai-after-the-hype-transforming-organizations-with-genai-based-agents) (from "GenAI after the Hype: Transforming Organizations with GenAI-based Agents") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/65e5c549934699728ca6a1085dd54271/thumbnails/thumbnail.jpg?time=111385ms - [Future predictions for autonomous agent environments and robotics](https://www.wearedevelopers.com/videos/1629-beyond-chatbots-how-to-build-agentic-ai-systems) (from "Beyond Chatbots: How to build Agentic AI systems") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/cbc2836b735c0ae327c152e4045d66fc/thumbnails/thumbnail.jpg?time=276065ms - [Scaling role analysis and forecasting using artificial intelligence](https://www.wearedevelopers.com/videos/1856-beyond-hiring-building-a-sustainable-talent-acquisition-engine-at-deutsche-bahn) (from "Beyond Hiring: Building a Sustainable Talent Acquisition Engine at Deutsche Bahn") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/acaf7edf1564f68bc5ba2312c0591c34/thumbnails/thumbnail.jpg?time=118780ms ## Related Articles - [What is Agentic Programming and Why Should Developers Care?](https://www.wearedevelopers.com/magazine/625-what-is-agentic-programming-and-why-should-developers-care) - [Everything a Developer Needs to Know About MCP with Neo4j](https://www.wearedevelopers.com/magazine/604-everything-a-developer-needs-to-know-about-mcp-with-neo4j) - [MLops – Deploying, Maintaining And Evolving Machine Learning Models in Production](https://www.wearedevelopers.com/magazine/115-mlops-deploying-maintaining-and-evolving-machine-learning-models-in-production) - [MLOps And AI Driven Development](https://www.wearedevelopers.com/magazine/82-mlops-and-ai-driven-development) ## Related Jobs - [Senior Software Engineer - Semantic Data Lake (Open)SDE3](https://www.wearedevelopers.com/jobs/48597-senior-software-engineer-semantic-data-lake-open-sde3) at **WEX** - [Senior Data & AI Architect](https://www.wearedevelopers.com/jobs/48602-senior-data-ai-architect) at **reeeliance IM GmbH** - [Principal Software Engineer, Copilot Code Review](https://www.wearedevelopers.com/jobs/ext/4667602-principal-software-engineer-copilot-code-review) at **GitHub** - [Senior Data Scientist - AI Tooling](https://www.wearedevelopers.com/jobs/ext/4690678-senior-data-scientist-ai-tooling) at **Intercom** - [Applied AI Health Data System Engineer-Senior Manager](https://www.wearedevelopers.com/jobs/ext/4892444-applied-ai-health-data-system-engineer-senior-manager) at **PwC** - [Applied AI Health Data System Engineer-Senior Manager](https://www.wearedevelopers.com/jobs/ext/4880874-applied-ai-health-data-system-engineer-senior-manager) at **PwC**