Skip to main content
Glama
hlavrencic

portainer-mcp-server

by hlavrencic

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTAINER_PATYesPortainer API token (Personal Access Token)
PORTAINER_URLNoPortainer base URLhttp://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

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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