portainer-mcp-server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PORTAINER_PAT | Yes | Portainer API token (Personal Access Token) | |
| PORTAINER_URL | No | Portainer base URL | http://localhost:9000 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_environmentsA | List all Portainer environments/endpoints |
| list_containersA | List containers in a Portainer environment |
| inspect_containerC | Get detailed info about a container |
| get_container_logsC | Get logs from a container |
| start_containerB | Start a stopped container |
| stop_containerB | Stop a running container |
| restart_containerC | Restart a container |
| pull_imageB | Pull a Docker image from a registry |
| delete_imageC | Delete a Docker image |
| recreate_containerA | Recreate a container with an updated image (stops old container, pulls new image, starts new container) |
| list_stacksA | List all stacks in Portainer |
| inspect_stackC | Get details of a specific stack |
| get_stack_fileA | Get the docker-compose file content of a stack |
| list_imagesB | List Docker images in an environment |
| list_networksB | List Docker networks in an environment |
| list_volumesB | List Docker volumes in an environment |
| portainer_list_unused_imagesA | List Docker images not used by any container (dangling images) |
| portainer_cleanup_unused_imagesB | Delete all unused Docker images with optional force flag |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/hlavrencic/portainer-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server