# MCP Zenml

> MCP Zenml is an open-source MCP server for developer tools. Query and manage ZenML pipelines, runs, stacks and models from an MCP client. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/zenml-io/mcp-zenml
- **MCP Registry name:** io.github.zenml-io/mcp-zenml
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-11-23

## About

This server gives an assistant live access to a ZenML server's resources: users, stacks and components, pipelines, runs, steps, schedules, artifact metadata, snapshots, deployments, models and versions, projects, tags and builds. Version 2.x defaults to a compact profile of 16 tools, seven of them generic for describing, listing, getting, creating, updating, deleting and acting on resources.

The other nine cover setup diagnostics, active user and project, triggering pipelines, step logs and code, deployment logs and two dashboard views. A legacy profile restores the older entity-specific tool names, 57 in read-write mode, for clients still migrating. Setting ZENML_MCP_WRITE_POLICY to read_only removes the mutation tools and the pipeline trigger from discovery and dispatch.

It runs over stdio, from an OCI image, and needs ZENML_STORE_URL and an API key, ideally from a service account. Mutations are never retried after they may have reached ZenML, and results are marked completed, accepted or unknown. Secret values, ZenML Cloud administration and credential administration are excluded.

## Features

- **Compact generic tools:** Seven resource tools describe, list, get, create, update, delete and act.
- **Read-only mode:** A write policy setting removes all mutation tools and pipeline triggering.
- **Pipeline triggering:** Run pipelines from snapshots.
- **Logs and code access:** Step logs, step code and deployment logs are returned for debugging.
- **Legacy profile:** Older entity-specific tool names remain for migration.
- **Honest mutation results:** Outcomes are marked completed, accepted or unknown and are never retried.

## Good for

- Check why a pipeline run failed using step logs
- List recent completed runs for a project
- Trigger a pipeline from a snapshot
- Inspect stacks and service connectors
- Review model versions in the registry

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcp-zenml --env ZENML_STORE_URL='<ZENML_STORE_URL>' --env ZENML_STORE_API_KEY='<ZENML_STORE_API_KEY>' -- docker run -i --rm -e ZENML_STORE_URL -e ZENML_STORE_API_KEY docker.io/zenmldocker/mcp-zenml:2.1.1
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp-zenml": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "ZENML_STORE_URL",
        "-e",
        "ZENML_STORE_API_KEY",
        "docker.io/zenmldocker/mcp-zenml:2.1.1"
      ],
      "env": {
        "ZENML_STORE_URL": "<ZENML_STORE_URL>",
        "ZENML_STORE_API_KEY": "<ZENML_STORE_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-zenml": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "ZENML_STORE_URL",
        "-e",
        "ZENML_STORE_API_KEY",
        "docker.io/zenmldocker/mcp-zenml:2.1.1"
      ],
      "env": {
        "ZENML_STORE_URL": "<ZENML_STORE_URL>",
        "ZENML_STORE_API_KEY": "<ZENML_STORE_API_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp-zenml": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "ZENML_STORE_URL",
        "-e",
        "ZENML_STORE_API_KEY",
        "docker.io/zenmldocker/mcp-zenml:2.1.1"
      ],
      "env": {
        "ZENML_STORE_URL": "<ZENML_STORE_URL>",
        "ZENML_STORE_API_KEY": "<ZENML_STORE_API_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp-zenml": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "ZENML_STORE_URL",
        "-e",
        "ZENML_STORE_API_KEY",
        "docker.io/zenmldocker/mcp-zenml:2.1.1"
      ],
      "env": {
        "ZENML_STORE_URL": "<ZENML_STORE_URL>",
        "ZENML_STORE_API_KEY": "<ZENML_STORE_API_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp-zenml --env ZENML_STORE_URL='<ZENML_STORE_URL>' --env ZENML_STORE_API_KEY='<ZENML_STORE_API_KEY>' -- docker run -i --rm -e ZENML_STORE_URL -e ZENML_STORE_API_KEY docker.io/zenmldocker/mcp-zenml:2.1.1
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp-zenml]
command = "docker"
args = ["run", "-i", "--rm", "-e", "ZENML_STORE_URL", "-e", "ZENML_STORE_API_KEY", "docker.io/zenmldocker/mcp-zenml:2.1.1"]
env = { ZENML_STORE_URL = "<ZENML_STORE_URL>", ZENML_STORE_API_KEY = "<ZENML_STORE_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcp-zenml": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "ZENML_STORE_URL",
        "-e",
        "ZENML_STORE_API_KEY",
        "docker.io/zenmldocker/mcp-zenml:2.1.1"
      ],
      "env": {
        "ZENML_STORE_URL": "<ZENML_STORE_URL>",
        "ZENML_STORE_API_KEY": "<ZENML_STORE_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e ZENML_STORE_URL='<ZENML_STORE_URL>' -e ZENML_STORE_API_KEY='<ZENML_STORE_API_KEY>' mcp-zenml docker -- run -i --rm -e ZENML_STORE_URL -e ZENML_STORE_API_KEY docker.io/zenmldocker/mcp-zenml:2.1.1

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-zenml": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "ZENML_STORE_URL",
        "-e",
        "ZENML_STORE_API_KEY",
        "docker.io/zenmldocker/mcp-zenml:2.1.1"
      ],
      "env": {
        "ZENML_STORE_URL": "<ZENML_STORE_URL>",
        "ZENML_STORE_API_KEY": "<ZENML_STORE_API_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-zenml": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "ZENML_STORE_URL",
        "-e",
        "ZENML_STORE_API_KEY",
        "docker.io/zenmldocker/mcp-zenml:2.1.1"
      ],
      "env": {
        "ZENML_STORE_URL": "<ZENML_STORE_URL>",
        "ZENML_STORE_API_KEY": "<ZENML_STORE_API_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp-zenml": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "ZENML_STORE_URL",
        "-e",
        "ZENML_STORE_API_KEY",
        "docker.io/zenmldocker/mcp-zenml:2.1.1"
      ],
      "env": {
        "ZENML_STORE_URL": "<ZENML_STORE_URL>",
        "ZENML_STORE_API_KEY": "<ZENML_STORE_API_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp-zenml": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "ZENML_STORE_URL",
        "-e",
        "ZENML_STORE_API_KEY",
        "docker.io/zenmldocker/mcp-zenml:2.1.1"
      ],
      "env": {
        "ZENML_STORE_URL": "<ZENML_STORE_URL>",
        "ZENML_STORE_API_KEY": "<ZENML_STORE_API_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp-zenml": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "ZENML_STORE_URL",
        "-e",
        "ZENML_STORE_API_KEY",
        "docker.io/zenmldocker/mcp-zenml:2.1.1"
      ],
      "env": {
        "ZENML_STORE_URL": "<ZENML_STORE_URL>",
        "ZENML_STORE_API_KEY": "<ZENML_STORE_API_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp-zenml": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "ZENML_STORE_URL",
        "-e",
        "ZENML_STORE_API_KEY",
        "docker.io/zenmldocker/mcp-zenml:2.1.1"
      ],
      "env": {
        "ZENML_STORE_URL": "<ZENML_STORE_URL>",
        "ZENML_STORE_API_KEY": "<ZENML_STORE_API_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp-zenml": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "ZENML_STORE_URL",
        "-e",
        "ZENML_STORE_API_KEY",
        "docker.io/zenmldocker/mcp-zenml:2.1.1"
      ],
      "env": {
        "ZENML_STORE_URL": "<ZENML_STORE_URL>",
        "ZENML_STORE_API_KEY": "<ZENML_STORE_API_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp-zenml": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "ZENML_STORE_URL",
        "-e",
        "ZENML_STORE_API_KEY",
        "docker.io/zenmldocker/mcp-zenml:2.1.1"
      ],
      "env": {
        "ZENML_STORE_URL": "<ZENML_STORE_URL>",
        "ZENML_STORE_API_KEY": "<ZENML_STORE_API_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 16 tools deletes data and 4 change data; 3 names don't say. From the server's own tool labels and tool names; not verified by us.

- `zenml_describe_resources` (name suggests: reads): Discovers supported resource types and operation schemas.
- `zenml_list_resources` (name suggests: reads): Lists one resource type with filters and pagination.
- `zenml_get_resource` (name suggests: reads): Gets one resource.
- `zenml_create_resource` (name suggests: changes): Creates a supported resource from a typed payload.
- `zenml_update_resource` (name suggests: changes): Updates one resource by UUID.
- `zenml_delete_resource` (name suggests: deletes): Deletes or archives one resource by UUID.
- `zenml_action_resource`: Runs an allowlisted lifecycle or relation action.
- `diagnose_zenml_setup`: Diagnoses the ZenML setup.
- `get_active_user` (name suggests: reads): Returns the active user.
- `get_active_project` (name suggests: reads): Returns the active project.
- `trigger_pipeline`: Triggers a pipeline run from a snapshot.
- `get_step_logs` (name suggests: reads): Returns step logs, up to 50,000 entries.
- `get_step_code` (name suggests: reads): Returns a step's code.
- `get_deployment_logs` (name suggests: reads): Returns deployment logs.
- `open_pipeline_run_dashboard` (name suggests: changes): Opens a pipeline run dashboard view.
- `open_run_activity_chart` (name suggests: changes): Opens a run activity chart.

## FAQ

### How does MCP Zenml connect to ZenML?

It needs ZENML_STORE_URL and an API key, preferably from a service account.

### Can I stop MCP Zenml making changes?

Yes. Set ZENML_MCP_WRITE_POLICY to read_only.

### How many tools does MCP Zenml advertise?

The compact profile advertises 16, or 11 in read-only mode; the legacy profile 57 or 52.

### What does MCP Zenml not cover?

Cloud control-plane administration, user and credential administration, secret-value CRUD and raw webhook events.

### How is MCP Zenml run?

Over stdio, from a docker image published on Docker Hub.

### Is MCP Zenml free?

Yes. MCP Zenml is open source, so you can use and self-host it for free.

### How do I add MCP Zenml to Claude Code?

Run this command in your terminal: claude mcp add mcp-zenml --env ZENML_STORE_URL='<ZENML_STORE_URL>' --env ZENML_STORE_API_KEY='<ZENML_STORE_API_KEY>' -- docker run -i --rm -e ZENML_STORE_URL -e ZENML_STORE_API_KEY docker.io/zenmldocker/mcp-zenml:2.1.1

### What are the best alternatives to MCP Zenml?

The closest alternatives to MCP Zenml are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/mcp-zenml
