Labsco
portainer logo

Portainer MCP

โ˜… 192

from portainer

Manage Portainer resources and execute Docker or Kubernetes commands through an AI assistant.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup

Portainer MCP

Official MCP server for Portainer, generated from the Portainer OpenAPI spec via FastMCP.

Overview

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.43.x with Portainer 2.43.x. See Version compatibility for details.

Restricting and expanding the MCP server capabilities

The MCP server comes with the following capabilities enabled by default:

  • Basic Portainer operation support (settings, version, environments...)
  • Docker operation support
  • Kubernetes operation support
  • Docker and Kubernetes proxy support
  • Redacting environment variables values (enabled by default)

For restricting or expanding this set of capabilities, see docs/profiles.md.

Version compatibility

Match the MCP server's minor to your Portainer minor. The major+minor tracks the Portainer API version the embedded spec targets.

Server versionPortainer (CE / EE)
2.43.x2.43.x
2.42.x2.42.x
2.41.x2.41.x

For more information about the versioning policy, see docs/versioning.md.