Purpose: mcp-zenml implements a Model Context Protocol (MCP) server that lets MCP clients (such as Cursor, Claude Desktop, etc.) interact with ZenML's MLOps / LLMOps pipelines. MCP is an open protocol that standardizes how applications provide context to large models, using a client-server architecture.
Main capabilities: Through MCP tools, it reads core information from the ZenML server, including users and permissions, stacks and stack components, flavors, service connectors, pipeline definitions, pipeline run history and status, step details/code/logs, schedules, artifact metadata, snapshots, deployments, service endpoints, projects, tags, builds, models and model versions, etc. It can also trigger new pipeline runs using snapshots (recommended) or the deprecated template approach. The log tool get_step_logs returns up to 50,000 entries (oldest first), with a possibly_truncated flag, and tail can be used to get the latest entries.
Usage: It is recommended to use the MCP Settings page in the ZenML dashboard (Settings → MCP) to obtain preconfigured snippets for a specific server URL and credentials, one-click IDE deep-link installation, and configurations for VS Code, Claude Desktop, Cursor, etc. ZenML Pro users can generate a PAT with one click; OSS users must first create a service account token in Settings → Service Accounts. Note that ZENML_ACTIVE_PROJECT_ID is required, otherwise pipeline run tools will report an error. MCP Apps uses Streamable HTTP transport (not stdio), Docker runs should keep ports bound only to loopback, and an authenticated reverse proxy should be configured before remote access.
Limitations: The default compact configuration exposes 16 tools, while the legacy configuration is used for compatibility with clients using old entity names. ZENML_MCP_WRITE_POLICY=read_only removes all write tools; invalid values fail and fall back to read-only. Version 2.0.0 requires MCP Python SDK 2.2.0 and ZenML 0.96.4, and the compact configuration is a breaking discovery change for new clients. Excluded are ZenML Cloud control plane management, Resource Manager, user and credential management, secret value CRUD, connector login verification, raw webhook events, etc. get_deployment_logs defaults to 100 lines, with a maximum of 1,000 lines and a limit of 100KB, and requires the corresponding deployer integration to be installed. MCP Apps is still experimental, and as of late January 2026, Claude Desktop and Claude.ai do not yet render Apps.