Portainer MCP
@portainer
关于 Portainer MCP
Official Portainer MCP server
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"portainer-mcp": {
"command": "docker",
"args": [
"run",
"-d",
"--name",
"portainer-mcp",
"-p",
"17717:17717",
"\\"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is Portainer MCP?
Portainer MCP is the official MCP server for Portainer, generated from the Portainer OpenAPI spec via FastMCP. It exposes the Portainer REST API as MCP tools to list and inspect environments, manage GitOps workflows, and troubleshoot Docker and Kubernetes resources, and also supports proxying requests to the underlying Docker and K8s APIs of each environment.
How to use Portainer MCP?
Portainer MCP can be deployed locally via uvx (stdio), installed as a self-contained MCP bundle, or deployed as a container for team use. You need a Portainer URL and an API key (generated under My Account → Access tokens). For a local test, register with Claude Code using claude mcp add portainer -e PORTAINER_URL=... -e PORTAINER_API_KEY=... -- uvx --from "mcp-portainer~=2.43.0" mcp-portainer. The container deployment requires a shared gate token (PORTAINER_MCP_AUTH_TOKEN) and each user forwards their own Portainer API key.
Key features of Portainer MCP
- Exposes Portainer REST API as MCP tools
- List, inspect, and manage environments
- Manage GitOps workflows
- Troubleshoot Docker and Kubernetes resources
- Proxy to underlying Docker and K8s APIs
- Multiple deployment modes: local, bundle, container
- Supports capability profiles to restrict or expand tools
- Environment variable redaction enabled by default
- Gate token authentication for team container deployment
- Version must match Portainer instance minor version
Use cases of Portainer MCP
- Inspect and manage Portainer environments from an AI assistant
- Automate GitOps workflows on Portainer-managed Docker/K8s clusters
- Troubleshoot containerized and Kubernetes workloads via MCP tools
- Proxy AI-driven requests to the Docker or K8s API of a specific environment
FAQ from Portainer MCP
What version of Portainer is compatible with Portainer MCP?
The MCP server’s minor version must match your Portainer instance’s minor version. For example, MCP server 2.43.x works with Portainer 2.43.x.
How do I obtain an API key for Portainer MCP?
Generate an API key in Portainer under My Account → Access tokens before using either the local or container deployment.
Can I restrict which tools are available in Portainer MCP?
Yes. Portainer MCP supports capability profiles to enable only a subset of tools, such as read-only mode or disabling proxy capabilities. See docs/profiles.md for details.
What transport and authentication options does the container deployment support?
The container supports BYO TLS certificates, TLS-terminated reverse proxy, or plaintext HTTP (not recommended for production). It uses a shared gate token (PORTAINER_MCP_AUTH_TOKEN) for admission and each user forwards their own Portainer API key for authorization.
Is it safe to expose Portainer MCP on the public internet?
No. It is not recommended to expose this MCP server on the public internet; host it inside your private infrastructure, even behind a TLS proxy.
其他 分类下的更多 MCP 服务器
Maestro
mobile-dev-incPainless E2E Automation for Mobile and Web
Production-ready MCP integrations for AI applications
Klavis-AIKlavis AI: MCP integration platforms that let AI agents use tools reliably at any scale
🚀 Model Context Protocol (MCP) Curriculum for Beginners
microsoftThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
ghidraMCP
LaurieWiredMCP Server for Ghidra
IDA Pro MCP
mrexodiaAI-powered reverse engineering assistant that bridges IDA Pro with language models through MCP.
评论