Portainer MCP Server

Official MCP server for Portainer, generated from the Portainer OpenAPI spec via [FastMCP](https://github.com/PrefectHQ/fastmcp).

Remote serverstreamable-http

What is the Portainer MCP MCP server?

Official MCP server for Portainer, generated from the Portainer OpenAPI spec via FastMCP. That is what the portainer mcp mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

The short version

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.

What it needs from you

Configuration is passed through the environment: PORTAINER_URL, PORTAINER_API_KEY, PORTAINER_MCP_AUTH_TOKEN, PORTAINER_MCP_TLS_KEY. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Getting it running

Because this one is hosted, setup is mostly authentication — you point your client at the endpoint and approve access. Nothing runs on your machine, so there is no runtime to keep patched.

How it compares

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. It is maintained by portainer; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Things to watch

  • Your data travels to the provider's service, so the usual questions apply about what you send and what they retain.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Configuration

VariableDescriptionRequired
PORTAINER_URLEndpoint or connection string the server talks to.Yes
PORTAINER_API_KEYCredential the server authenticates with.Yes
PORTAINER_MCP_AUTH_TOKENCredential the server authenticates with.Yes
PORTAINER_MCP_TLS_KEYCredential the server authenticates with.Yes

Frequently asked questions

It connects Portainer MCP to MCP-compatible AI assistants such as Claude and Cursor. Instead of copying data back and forth by hand, the assistant works with Portainer MCP directly.