portainer-mcp
Enables managing Docker containers and Portainer resources through natural language, supporting stack deployment, container operations, and environment monitoring.
README
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.
🚀 Usage via npx (Recommended)
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
🐳 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 byinstall.shif 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
🔗 Links
- Original portainer-mcp: https://github.com/portainer/portainer-mcp
- NPM Package: https://www.npmjs.com/package/@lauredmarin/portainer-mcp (when published)
- Issues: https://github.com/Lauredmarin/portainer-mcp-amd64/issues
📄 License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.