Official MCP server for Portainer, generated from the Portainer OpenAPI spec via FastMCP.
This MCP server exposes the Portainer REST API as MCP tools: list and inspect environments, manage GitOps workflows, troubleshoot Docker and Kubernetes resources. It also supports proxying requests to the underlying Docker and K8s APIs of each environment.
Match the MCP server's minor version to your Portainer instance's minor — e.g. MCP server 2.44.x with Portainer 2.44.x. See Version compatibility for details.
The MCP server supports different deployment scenarios:
- execute it locally via
uvx - install it as a MCP bundle
- deploy it as a container
Use the uvx approach or the MCP bundle to explore the MCP capabilities locally and deploy it inside your infrastructure as a container for a team based deployment setup.
Note
Before using the MCP, make sure to generate an API key in Portainer under My Account → Access tokens first as both paths need it.
The recommended way to test the MCP server locally. Your client must support MCP bundles:
- Fetch the self-contained
.mcpbbundle for your platform from the latest release - Double-click to install
- Enter your Portainer URL and API key.
The other way to test the MCP server locally. Runs as a stdio process on your machine and connects directly to the Portainer instance.
Note
uv must be installed and available on PATH.
See the uv install docs.
Set PORTAINER_TLS_VERIFY=0 if your Portainer instance uses self-signed TLS certificates.
Register with Claude Code: