Portainer MCP Server
@BirajMainali
Portainer MCP Server について
A Model Context Protocol (MCP) server implementation for Portainer, enabling AI assistants to interact with Docker containers and services through Portainer's API.
基本情報
設定
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"poratiner-ce-mcp-server": {
"command": "deno",
"args": [
"compile",
"--allow-env",
"--allow-read",
"--allow-net",
"--env-file=.env",
"src/main.ts"
]
}
}
}ツール
ツールは検出されませんでした
ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。
概要
What is Portainer MCP Server?
Portainer MCP Server is a Model Context Protocol (MCP) server that enables AI assistants to interact with Docker containers and services through the Portainer API. It is intended for developers and operators who manage Docker environments via Portainer and want to automate or assist those tasks using AI.
How to use Portainer MCP Server?
Installation requires Deno and a running Portainer instance with API access. After cloning the repository, set the environment variables PORTAINER_URL, PORTAINER_API_KEY, and PORTAINER_ENV_ID. The server can be run with deno run or compiled into an executable. In an MCP client (e.g., Claude Desktop), configure the tool to use the compiled executable and pass the appropriate arguments.
Key features of Portainer MCP Server
- Docker container management (create, start, delete, fetch logs)
- Docker image management (fetch, delete unused, clear build cache)
- Docker network operations (inspect, fetch)
- Docker service management (fetch, logs)
- Resource limit management for containers
Use cases of Portainer MCP Server
- Automate container creation and cleanup via natural language commands
- Inspect Docker networks and service logs without manual API calls
- Clear unused images and build cache to free disk space
- Update container resource limits on the fly
FAQ from Portainer MCP Server
What dependencies are required to run Portainer MCP Server?
The server requires Deno, a running Portainer instance with API access, and Docker installed and running on the host.
How do I configure Portainer MCP Server?
Set the environment variables PORTAINER_URL (Portainer instance URL), PORTAINER_API_KEY (API key), and PORTAINER_ENV_ID (environment ID). These are read at startup.
What Docker operations can be performed via Portainer MCP Server?
The server provides tools for listing, creating, starting, and deleting containers; fetching container logs; updating container resource limits; listing and deleting unused images; clearing the image build cache; fetching networks and inspecting a specific network; and listing services and fetching service logs.
How does authentication work with Portainer MCP Server?
Authentication is handled via a Portainer API key provided in the PORTAINER_API_KEY environment variable. No additional transport or OAuth is used.
Does the server work with any Portainer environment?
It works with a single environment specified by PORTAINER_ENV_ID. The user must provide the correct environment ID for their Portainer setup.
「その他」の他のコンテンツ

Sequential Thinking
modelcontextprotocolModel Context Protocol Servers
Servers
modelcontextprotocolModel Context Protocol Servers
MCP Go 🚀
mark3labsA Go implementation of the Model Context Protocol (MCP), enabling seamless integration between LLM applications and external data sources and tools.
Codelf
unbugA search tool helps dev to solve the naming things problem.
Inbox Zero AI
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
コメント