MCP.so
登录

Portainer MCP Server

@BirajMainali

基本信息

分类

其他

传输方式

stdio

作者

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.

#portainer-ce#agentic-ai#mcp-server#mcp-server-deno#portainer-ce-mcp-server

Portainer MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "poratiner-ce-mcp-server": {
      "command": "deno",
      "args": [
        "compile",
        "--allow-env",
        "--allow-read",
        "--allow-net",
        "--env-file=.env",
        "src/main.ts"
      ]
    }
  }
}

Portainer MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 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

常见问题

1

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.

2

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.

3

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.

4

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.

5

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.

评论

其他 分类下的更多 MCP 服务器