Skip to main content
Glama
Lauredmarin

portainer-mcp

by Lauredmarin

portainer-mcp β€” npm wrapper for npx

Deploy portainer-mcp via npx β€” no manual download, no PM2, just works across platforms.

This package is also a wrapper that auto-downloads the correct binary for your platform (Linux, macOS, Windows) on install.


Option 1: Direct npx (no install)

npx @lauredmarin/portainer-mcp -server https://portainer.example.com -token YOUR_TOKEN

Option 2: MCP Client Config (like Claude, Cursor, etc.)

{
  "mcpServers": {
    "portainer": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "--package=@lauredmarin/portainer-mcp",
        "portainer-mcp",
        "-server", "https://portainer.example.com",
        "-token", "YOUR_TOKEN"
      ]
    }
  }
}

Option 3: Global install

npm install -g @lauredmarin/portainer-mcp
portainer-mcp -server https://portainer.example.com -token YOUR_TOKEN

Related MCP server: Docker MCP Server

🐳 Legacy: Server deployment via mcp-proxy + PM2

For exposing as HTTP endpoint on a VPS:

Requirements

  • Linux x86-64 (amd64)

  • curl, tar

  • Node.js + npm (for PM2)

  • uv (installed automatically by install.sh if missing)

Quick start

git clone https://github.com/Lauredmarin/portainer-mcp-amd64.git
cd portainer-mcp-amd64
bash install.sh
cp .env.example .env   # fill in your values
pm2 start ecosystem.config.js
pm2 save && pm2 startup

Configuration (.env)

Variable

Required

Default

Description

PORTAINER_SERVER

βœ…

β€”

Portainer URL (e.g. https://portainer.example.com)

PORTAINER_TOKEN

βœ…

β€”

Portainer API token

MCP_PORT

❌

8749

Port exposed by mcp-proxy

PORTAINER_MCP_BIN

❌

~/portainer-mcp/portainer-mcp

Path to binary

TOOLS_YAML

❌

β€”

Path to a tools.yaml to restrict tools

MCP endpoint (HTTP mode)

Once running, the server is available at:

http://<your-vps-ip>:<MCP_PORT>/mcp

MCP client config:

{
  "mcpServers": {
    "portainer": {
      "type": "http",
      "url": "http://<your-vps-ip>:8749/mcp"
    }
  }
}

πŸ“¦ Supported Platforms

Platform

Architecture

Status

Linux

amd64, arm64, arm

βœ…

macOS

amd64 (Intel), arm64 (Apple Silicon)

βœ…

Windows

amd64, arm64

βœ…


πŸ› οΈ Development

git clone https://github.com/Lauredmarin/portainer-mcp-amd64.git
cd portainer-mcp-amd64
npm install
npm run postinstall  # Downloads binary
node run.js -help


πŸ“„ License

MIT

F
license - not found
-
quality - not tested
D
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    D
    maintenance
    Enables natural language management of Docker containers, images, networks, and volumes with support for both local and remote Docker engines. Features automated container composition, debugging capabilities, and persistent data management through an intuitive conversational interface.
    Last updated
    GPL 3.0
  • A
    license
    -
    quality
    D
    maintenance
    Enables AI assistants to manage Docker containers, deploy stacks, and monitor services across multiple Docker hosts from one centralized location. Supports container lifecycle management, Docker Compose operations, and infrastructure orchestration through natural language commands.
    Last updated
    6
    MIT

View all related MCP servers

Related MCP Connectors

  • Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

  • Manage projects, tasks, time tracking, and team collaboration through natural language.

  • Create and manage AI agents that collaborate and solve problems through natural language interacti…

View all MCP Connectors

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/Lauredmarin/portainer-mcp-amd64'

If you have feedback or need assistance with the MCP directory API, please join our Discord server