ZenML

The ZenML MCP server acts as a smart bridge that allows AI assistants to understand and interact with machine learning workflows. Think of it as a translator that lets an AI look into a project’s machine learning "factory" to see what is being built, which tools are being used, and whether everything is running smoothly. Instead of manually checking a dashboard, developers can simply ask their AI assistant for updates on their models and data pipelines. For those managing complex MLOps environments, this tool provides deep visibility into the ZenML ecosystem. It exposes a wide range of metadata, including pipeline configurations, stack components, and artifact details. The server can even retrieve specific step logs and source code, enabling an AI to help debug failed runs or explain the logic behind a specific part of the pipeline. It transforms the AI from a general-purpose chat bot into a specialized MLOps co-pilot that has real-time context regarding the entire development lifecycle. Technical integration is streamlined through the Model Context Protocol, allowing the server to plug directly into hosts like Claude Desktop or IDEs like Cursor. While it primarily offers read functionality for monitoring users, schedules, and service connectors, it also includes the capability to trigger new pipeline runs using existing templates. By combining containerized deployment options via Docker with the efficiency of the `uv` Python package manager, this MCP server provides a robust, secure way to bring sophisticated machine learning orchestration into a conversational development workflow.

Category: Data & Analytics

Tags: machine learning, mlops, orchestration, pipelines, zenml

Visit ZenML

How to install and configure ZenML

1. Installation Prerequisites: * Access to a deployed ZenML server (ZenML Pro trial available). * uv installed locally (recommended via installer script or brew). * Clone the repository locally: bash git clone https://github.com/zenml-io/mcp-zenml.git Option A: Claude Desktop Bundle (Easiest) * Open Claude Desktop Settings. * Drag the mcp-zenml.mcpb file from the root of the cloned repository onto the menu. * Follow the prompts to add your ZenML server URL and API key. Option B: Docker * Pull the image: bash docker pull zenmldocker/mcp-zenml:latest * Run directly: bash docker run -i --rm \ -e ZENML_STORE_URL="https://your-zenml-server.example.com" \ -e ZENML_STORE_API_KEY="your-api-key" \ zenmldocker/mcp-zenml:latest ---

2. Configuration

Local Execution (via uv) To configure the server for Claude Desktop or other MCP hosts using your local clone, use the following structure in your mcpServers config file. You must replace the dummy paths and credentials. json { "mcpServers": { "zenml": { "command": "/usr/local/bin/uv", "args": ["run", "/path/to/cloned/repo/server/zenml_server.py"], "env": { "LOGLEVEL": "WARNING", "NO_COLOR": "1", "ZENML_LOGGING_COLORS_DISABLED": "true", "ZENML_LOGGING_VERBOSITY": "WARN", "ZENML_ENABLE_RICH_TRACEBACK": "false", "PYTHONUNBUFFERED": "1", "PYTHONIOENCODING": "UTF-8", "ZENML_STORE_URL": "https://your-zenml-server-goes-here.com", "ZENML_STORE_API_KEY": "your-api-key-here" } } } }

Docker-based Configuration If you prefer running via Docker, use this configuration: json { "mcpServers": { "zenml": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "ZENML_STORE_URL=https://your-zenml-server.example.com", "-e", "ZENML_STORE_API_KEY=your-api-key", "-e", "ZENML_ACTIVE_PROJECT_ID=...", "-e", "LOGLEVEL=WARNING", "-e", "NO_COLOR=1", "-e", "ZENML_LOGGING_COLORS_DISABLED=true", "-e", "ZENML_LOGGING_VERBOSITY=WARN", "-e", "ZENML_ENABLE_RICH_TRACEBACK=false", "-e", "PYTHONUNBUFFERED=1", "-e", "PYTHONIOENCODING=UTF-8", "zenmldocker/mcp-zenml:latest" ] } } }

Cursor Configuration 1. Create a .cursor folder in the root of your repository. 2. Create an mcp.json file inside that folder using the configuration provided above. 3. Enable the ZenML server in Cursor settings. ---

3. Available Tools The ZenML MCP server provides tools to access core read functionality and trigger actions: * Read Access: Retrieve live information about: * Users and Stacks * Pipelines and Pipeline runs/steps * Services and Service Connectors * Stack components and Flavors * Pipeline run templates and Schedules * Artifacts (metadata only) * Step code and Step logs (for cloud-based stacks) * Write Access: Trigger new pipeline runs (requires an existing run template). ---

4. Example Prompts Improving Tool Output: To make ZenML data easier to read, you can provide Claude with the following custom preference in Settings → Profile: > "When using zenml tools which return JSON strings and you're asked a question, you might want to consider using markdown tables to summarize the results or make them easier to view!"

What you can do with ZenML

Use Case 1: Real-time Pipeline Debugging and Log Analysis Problem: When an ML pipeline fails in production or a remote environment, developers often have to navigate through multiple layers of a web UI or use complex CLI commands to find the specific error logs and the corresponding code that caused the failure. Solution: This MCP allows an LLM (like Claude) to directly fetch the status of the latest pipeline runs, identify failed steps, and retrieve both the step code and the execution logs. The LLM can then analyze the logs against the code to suggest an immediate fix. Example: A user asks Claude: "The 'training-pipeline' failed. Can you find the logs for the failed step and tell me why it crashed?" Claude uses the get_pipeline_runs and get_step_logs tools to identify a MemoryError in the 'train_model' step and suggests optimizing the batch size.

Use Case 2: Automated MLOps Infrastructure Auditing Problem: MLOps engineers often lose track of which "Stacks" (combinations of orchestrators, artifact stores, and secrets managers) are currently configured or which "Service Connectors" are active, leading to configuration drift or security oversights. Solution: The MCP provides read access to all stack components, flavors, and service connectors. An AI assistant can quickly inventory the entire environment to ensure compliance or help a new team member understand the infrastructure. Example: A lead engineer asks: "List all active Stacks that use AWS as a provider and check if our 's3-connector' is properly linked to them." The LLM queries the ZenML server and returns a markdown table summarizing the infrastructure.

Use Case 3: On-Demand Pipeline Execution via Natural Language Problem: Data scientists often need to re-run specific experiments or trigger evaluation pipelines with updated templates, but they may not want to context-switch to a terminal or a dedicated dashboard to execute a standardized workflow. Solution: If a pipeline run template exists, this MCP enables the LLM to trigger new runs directly. This turns the AI into a "ChatOps" interface for the ML lifecycle. Example: A researcher says: "I've updated the data in the bucket. Trigger a new run of the 'model-evaluation' pipeline using the 'production-template'." The LLM identifies the template ID and initiates the run, providing the user with a direct link to monitor the progress.

Use Case 4: Artifact Lineage and Data Discovery Problem: In complex ML systems, it's hard to remember which specific version of a dataset or…

Key facts

  • Open Source
  • https://github.com/zenml-io/mcp-zenml
  • Data & Analytics, Developer Tools & Code Intelligence, DevOps, CI/CD & Version Control
  • machine learning, mlops, orchestration, pipelines, zenml

Part of MCP Servers

Related MCP servers

  • MCP KQL Server — MCP KQL Server is an MCP server that connects AI assistants to Azure Data Explorer clusters using Azure CLI authentication.…
  • MCP LaTeX Server — MCP LaTeX Server is an MCP server that provides tools for creating, editing, validating, and compiling LaTeX documents directly through…
  • MCP JSON — MCP JSON is an MCP server collection that bundles tools for file system operations, Google search, browser-based web automation, and…
  • MCP Jupyter Complete — MCP Jupyter Complete is an MCP server that provides tools for manipulating Jupyter notebook files through position-based cell operations and…
  • MCP LSP Go — MCP LSP Go is an MCP server that connects AI assistants to the official Go Language Server Protocol implementation, gopls,…
  • MCP Manager — MCP Manager is an MCP server management tool that connects directly to your Claude Desktop environment, enabling users to discover,…

What is ZenML MCP server?

The ZenML MCP server is an open source bridge that implements the Model Context Protocol to connect AI assistants to the ZenML API. It allows AI clients to inspect pipelines, runs, step logs, stacks, and registered models, as well as trigger new runs using snapshots.

Which MCP clients work with ZenML?

The server works with standard MCP clients using stdio or Streamable HTTP transports, including Claude Desktop, Cursor, VS Code, Goose, and Claude Code. Experimental interactive MCP Apps specifically require Streamable HTTP support available in VS Code Insiders and Goose.

How do I install ZenML MCP server?

You can install it by configuring your client to run the local Python script via uv, pulling and running the official zenmldocker/mcp-zenml Docker image, or copying pre-configured connection snippets directly from the MCP Settings page inside your ZenML dashboard.

Is ZenML MCP server open source?

Yes, the ZenML MCP server is an open source project maintained on GitHub by ZenML. It can connect to both open source self-hosted ZenML deployments and managed ZenML Pro instances.

Can ZenML MCP server trigger new pipeline runs?

Yes, the server provides write functionality to trigger pipeline runs using the trigger_pipeline tool. It initiates runs using pre-configured frozen snapshots or legacy run templates.

  • AI Tools
  • Categories
  • Industries
  • CLI Coding Agents
  • MCP Servers
  • MCP Categories