Connections & Capabilities
Connects To
Capabilities
Quickstart
Install
brew install clocConfig
{
"mcpServers": {
"portainer": {
"command": "/path/to/portainer-mcp",
"args": [
"-server",
"[IP]:[PORT]",
"-token",
"[TOKEN]",
"-tools",
"/tmp/tools.yaml"
]
}
}
}Exposed MCP Tools (13)
ListEnvironmentsLists all available Portainer environments.
Read-only operation; no modifications.
UpdateEnvironmentTagsUpdates tags associated with a Portainer environment.
Modifies environment metadata, but not critical settings.
CreateEnvironmentGroupCreates a new environment group in Portainer.
Adds a new resource, but doesn't directly impact existing environments.
UpdateEnvironmentGroupNameUpdates the name of an environment group.
Modifies the name of a resource.
ListStacksLists all available stacks in Portainer.
Read-only operation; no modifications.
GetStackFileRetrieves the compose file for a specific stack.
Read-only operation; no modifications.
CreateStackCreates a new Docker stack in Portainer.
Creates a new stack based on a compose file.
UpdateStackUpdates an existing Docker stack in Portainer.
Modifies the configuration of an existing stack.
ListUsersLists all available users in Portainer.
Read-only operation; no modifications.
UpdateUserUpdates an existing user in Portainer.
Modifies user attributes, potentially affecting access control.
DockerProxyProxies arbitrary Docker API requests to the Portainer environment.
Allows execution of any Docker command, including potentially destructive ones.
KubernetesProxyProxies arbitrary Kubernetes API requests to the Portainer environment.
Allows execution of any Kubernetes command, including potentially destructive ones.
getKubernetesResourceStrippedProxies GET Kubernetes API requests and strips verbose metadata.
Read-only operation, retrieves data and removes verbose metadata.
Safety Assessment
Portainer MCP offers a read-only mode for safe exploration, but its ability to execute Docker and Kubernetes commands poses risks. Exercise caution when granting write access, especially in production environments.
- Read-only mode available to restrict operations.
- Version check helps ensure compatibility.
- Tool customization allows disabling risky tools.
- Uses API token for authentication.
- Can execute arbitrary Docker and Kubernetes commands.
- Requires an administrator API token.
- Disabling version check can lead to unexpected behavior.
- Write operations can modify Portainer resources.
