sktime-mcp
OfficialClick on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@sktime-mcpfind a forecasting estimator for monthly sales data"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
sktime-mcp
Read the Documentation | PyPI Package
MCP (Model Context Protocol) layer for sktime - Registry-Driven for LLMs
A semantic engine that exposes sktime's native registry and semantics to Large Language Models, enabling them to:
π Discover valid estimators
π§ Reason about estimator capabilities
π Compose compatible estimators
β‘ Execute real sktime workflows on real data
π― Design Philosophy
This MCP is not just documentation or static code analysis. It is a semantic engine for programmatic model usage.
Key Principles
sktime as Source of Truth - No AST parsing, no repo indexing, no heuristics. All structure comes from
all_estimators, estimator tags, and sktime's API contracts.Registry-First - Instead of
File β Class β Infer Relationships, we doRegistry β Semantics β Safe Execution.Minimal MCP Surface - Exposes only what an LLM needs: Discovery, Description, Instantiation, Execution, and model persistence.
Related MCP server: mcp-openapi-schema
π οΈ Installation
Zero-install via uvx (recommended)
If you have uv installed, no separate installation step is needed. Just update your MCP client config (see Connecting from an LLM Client below) and uvx will handle the rest automatically.
# Verify uv is available
uvx sktime-mcp --helppip
pip install sktime-mcp
# With optional extras (SQL, forecasting models, file formats)
pip install "sktime-mcp[all]"Development installation
git clone https://github.com/sktime/sktime-mcp
cd sktime-mcp
python3 -m pip install -e ".[dev]"π³ Docker
Run without installing anything locally (only Docker required):
# Build the image
docker build -t sktime-mcp .
# Run the MCP server (stdio transport)
docker run -i sktime-mcpOr use Docker Compose:
docker compose build
docker compose run sktime-mcpClaude Desktop β use Docker as the MCP server command:
{
"mcpServers": {
"sktime": {
"command": "docker",
"args": ["run", "-i", "--rm", "sktime-mcp"]
}
}
}Environment variables can be passed at runtime:
docker run -i -e SKTIME_MCP_LOG_LEVEL=DEBUG sktime-mcpFor a more detailed first-time setup flow, including MCP server verification and troubleshooting, see Beginner Setup.
π§ Beginner Setup (FirstβTime Users)
If you are new to sktimeβmcp or to MCPβbased workflows, this section provides a minimal starting point to help you verify that your setup is working correctly.
What is MCP?
The Model Context Protocol (MCP) allows Large Language Models (LLMs) to discover, reason about, and execute sktime workflows programmatically. This project exposes sktimeβs estimator registry and semantics in a structured way so that LLMs can safely compose and run real timeβseries pipelines.
Prerequisites
Python 3.10 or newer
A working Python virtual environment (recommended)
pipinstalled
macOS / Unix-like first-time setup
For macOS or Unix-like shells, create an isolated virtual environment before installing the package:
python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install sktime-mcpFor development (if you want to modify the source):
python -m pip install -e ".[dev]"Verify that the MCP server starts:
sktime-mcpIf the sktime-mcp console command is not found (e.g. the script was not placed on your PATH), use the module fallback instead β this is also the recommended form when an MCP client needs to target a specific Python environment:
python -m sktime_mcp.serverCommon first-time issues:
Symptom | Likely cause | Fix |
| Scripts directory not on | Run |
| Package not installed in the active environment | Confirm |
| System | Use |
Wrong Python version selected | Multiple Python installations | Invoke |
Minimal Setup Check
After completing the steps above, confirm the server starts with sktime-mcp. See the macOS / Unix-like first-time setup section for the fallback command and common error solutions.
Note: On Windows, the
sktime-mcpcommand may be installed to a directory not on yourPATH(e.g.,%APPDATA%\Python\Python3xx\Scripts). Either add that directory to yourPATHor usepython -m sktime_mcp.serverinstead.
π Quick Start
Running the MCP Server
Standard Stdio Mode (for MCP Clients)
sktime-mcpHTTP/SSE Mode via FastAPI (for Web Browsers or ChatGPT)
To expose the MCP server as a REST API over SSE (Server-Sent Events) for direct consumption:
PYTHONPATH=src .venv/bin/uvicorn sktime_mcp.app:app --host 127.0.0.1 --port 8001This exposes standard SSE on /sse and message passing on /messages/.
Note for ChatGPT Web Users: ChatGPT runs in the cloud and cannot connect to
http://127.0.0.1(you will get an "Unsafe URL" error). You must expose your local server to the internet using a secure tunnel like ngrok:ngrok http 8001Then use the provided
https://<your-ngrok-id>.ngrok-free.app/sseURL in ChatGPT.
Configuration (Environment Variables)
You can configure the server's behavior at runtime using environment variables:
SKTIME_MCP_MAX_RESPONSE_TOKENS: Maximum tokens allowed per tool response (e.g.,10000). If a response exceeds this limit, it is truncated and appended with a notice. Set to0(default) for unlimited.SKTIME_MCP_LOG_LEVEL: Server logging verbosity level (DEBUG,INFO,WARNING,ERROR). Defaults toWARNING.SKTIME_MCP_AUTO_FORMAT: Enables or disables automatic time-series formatting during data loading.SKTIME_MCP_JOB_MAX_AGE_HOURS: Maximum hours before completed background jobs are automatically pruned. Defaults to24.
Connecting from an LLM Client
The server uses stdio transport by default, compatible with Claude Desktop, Claude Code, and other MCP clients.
Claude Desktop β add to your config file:
Platform | Config path |
macOS |
|
Linux |
|
Windows |
|
With uvx (recommended β no prior install needed):
{
"mcpServers": {
"sktime": {
"command": "uvx",
"args": ["sktime-mcp"]
}
}
}With optional extras:
{
"mcpServers": {
"sktime": {
"command": "uvx",
"args": ["sktime-mcp[forecasting,sql]"]
}
}
}With pip-installed package:
{
"mcpServers": {
"sktime": {
"command": "sktime-mcp"
}
}
}βοΈ Configuration
The server can be configured via environment variables:
Environment Variable | Description | Default |
| Logging verbosity (e.g. |
|
| Optional file path to output logs to in addition to stderr | (None) |
| Automatically format time series data on load ( |
|
| Maximum age in hours before background jobs are cleared |
|
| Interval in seconds for periodic job cleanup checks |
|
π Available Tools
The full tool reference is in the project documentation: https://sktime.github.io/sktime-mcp/
Need | Tool options | Rough explanation |
Discover what sktime can do |
| Find demo data, estimators, tags, and component details. |
Bring data into the session |
| Load files, inline data, SQL, or URLs into handles; inspect, clean, split, and persist them. |
Build and run models |
| Create sktime estimators or pipelines, fit them, forecast, update, or call native methods. |
Evaluate and reproduce |
| Cross-validate, generate Python code, and persist fitted models. |
Manage runtime state |
| See what is in memory, clean it up, and track async work. |
The practical mental model is simple: prompts create tool calls, tool calls create handles, and handles let later prompts continue the workflow.
π Example LLM Flows
See the User Guide for end-to-end workflow examples, including:
Discovering sktime coverage
Retail forecasting and saving results
Cleaning messy business data
Time-series classification
π Project Structure
sktime-mcp/
βββ src/sktime_mcp/
β βββ server.py # MCP server entry point
β βββ registry/ # Registry interface & tag resolver
β βββ composition/ # Pipeline composition validator
β βββ runtime/ # Execution engine, handle & job management
β βββ data/ # Data adapters (file, pandas, SQL, URL)
β βββ tools/ # MCP tool implementations
βββ docs/ # Sphinx documentation source
βββ examples/ # Usage examples
βββ tests/ # Test suite
βββ Dockerfile # Multi-stage container build
βββ docker-compose.yml # Compose service definition
βββ .dockerignore # Docker build context filterπ§ͺ Running Tests
pytest tests/Local Quality Checks
Run standardized local checks before raising a PR:
make checkAuto-fix formatting and fixable lint issues:
make format-fixIf make is unavailable (common on Windows), run the equivalent commands:
ruff format --check .
ruff check .
pytestPre-Commit Hooks (Recommended)
To ensure your code meets quality standards before pushing, install the pre-commit hooks:
make install-hooksThis will automatically run Ruff and Pytest on your code every time you make a commit.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sktime/sktime-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server