io.github.manusa/podman-mcp-server
平台与服务by manusa
面向容器运行时的 MCP 服务器,支持 Podman 与 Docker,方便 AI 助手执行、管理和查询容器环境。
什么是 io.github.manusa/podman-mcp-server?
面向容器运行时的 MCP 服务器,支持 Podman 与 Docker,方便 AI 助手执行、管理和查询容器环境。
README
Podman MCP Server
✨ Features | 🚀 Getting Started | 📚 Documentation | 🎥 Demos | ⚙️ Configuration | 🛠️ Tools | 🧑💻 Development
✨ Features <a id="features"></a>
A powerful and flexible MCP server for container runtimes supporting Podman and Docker.
🚀 Getting Started <a id="getting-started"></a>
Claude Desktop
Using npx
If you have npm installed, this is the fastest way to get started with podman-mcp-server on Claude Desktop.
Open your claude_desktop_config.json and add the mcp server to the list of mcpServers:
{
"mcpServers": {
"podman": {
"command": "npx",
"args": [
"-y",
"podman-mcp-server@latest"
]
}
}
}
VS Code / VS Code Insiders
Install the Podman MCP server by clicking one of the following links:
<img src="https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Server&color=0098FF" alt="Install in VS Code"> <img alt="Install in VS Code Insiders" src="https://img.shields.io/badge/VS_Code_Insiders-VS_Code_Insiders?style=flat-square&label=Install%20Server&color=24bfa5">
Alternatively, you can install the extension manually by running the following command:
# For VS Code
code --add-mcp '{"name":"podman","command":"npx","args":["-y","podman-mcp-server@latest"]}'
# For VS Code Insiders
code-insiders --add-mcp '{"name":"podman","command":"npx","args":["-y","podman-mcp-server@latest"]}'
Goose CLI
Goose CLI is the easiest (and cheapest) way to get rolling with artificial intelligence (AI) agents.
Using npm
If you have npm installed, this is the fastest way to get started with podman-mcp-server.
Open your goose config.yaml and add the mcp server to the list of mcpServers:
extensions:
podman:
command: npx
args:
- -y
- podman-mcp-server@latest
📚 Documentation <a id="documentation"></a>
For detailed setup guides, configuration reference, and feature specifications, see the Documentation.
🎥 Demos <a id="demos"></a>
⚙️ Configuration <a id="configuration"></a>
The Podman MCP server can be configured using command line (CLI) arguments.
You can run the CLI executable either by using npx or by downloading the latest release binary.
# Run the Podman MCP server using npx (in case you have npm installed)
npx podman-mcp-server@latest --help
# Run the Podman MCP server using the latest release binary
./podman-mcp-server --help
Configuration Options
| Option | Description |
|---|---|
--port, -p | Starts the MCP server in HTTP mode with Streamable HTTP at /mcp and SSE at /sse endpoints. |
--output-format, -o | Output format for list commands: text (default, human-readable table) or json. |
--podman-impl | Podman implementation to use. Auto-detects if not specified. |
--sse-port | Deprecated. Use --port instead. Starts the MCP server in SSE-only mode. |
--sse-base-url | Deprecated. SSE public base URL to use when sending the endpoint message. |
Transport Modes
The server supports multiple transport modes:
- STDIO mode (default) - Communicates via standard input/output
- HTTP mode (
--port) - Modern HTTP transport with both Streamable HTTP and SSE endpoints - SSE-only mode (
--sse-port) - Legacy Server-Sent Events transport (deprecated)
# Start HTTP server on port 8080 (Streamable HTTP at /mcp and SSE at /sse)
podman-mcp-server --port 8080
# Legacy SSE-only server on port 8080 (deprecated, use --port instead)
podman-mcp-server --sse-port 8080
Podman Implementations
The server supports multiple Podman backend implementations:
| Implementation | Description | Priority |
|---|---|---|
api | Podman REST API via Unix socket | 100 (preferred) |
cli | Podman/Docker CLI wrapper | 50 (fallback) |
By default, the server auto-detects the best available implementation.
The api implementation is preferred when a Podman socket is available, otherwise the cli implementation is used as a fallback.
Use the --podman-impl flag to force a specific implementation:
# Force CLI implementation
podman-mcp-server --podman-impl=cli
# Force API implementation (requires Podman socket)
podman-mcp-server --podman-impl=api
The api implementation communicates directly with the Podman REST API via Unix socket, while the cli implementation shells out to the podman or docker binary.
🛠️ Tools <a id="tools"></a>
<!-- AVAILABLE-TOOLS-START --> <details> <summary>Container</summary>-
container_inspect - Displays the low-level information and configuration of a Docker or Podman container with the specified container ID or name
name(string) (required) - Docker or Podman container ID or name to display the information
-
container_list - Prints out information about the running Docker or Podman containers
-
container_logs - Displays the logs of a Docker or Podman container with the specified container ID or name
name(string) (required) - Docker or Podman container ID or name to display the logs
-
container_remove - Removes a Docker or Podman container with the specified container ID or name (rm)
name(string) (required) - Docker or Podman container ID or name to remove
-
container_run - Runs a Docker or Podman container with the specified image name
environment(array) - Environment variables to set in the container. Format: <key>=<value>. Example: FOO=bar. (Optional, add only to set environment variables)imageName(string) (required) - Docker or Podman container image name to runports(array) - Port mappings to expose on the host. Format: <hostPort>:<containerPort>. Example: 8080:80. (Optional, add only to expose ports)
-
container_stop - Stops a Docker or Podman running container with the specified container ID or name
name(string) (required) - Docker or Podman container ID or name to stop
-
image_build - Build a Docker or Podman image from a Dockerfile, Podmanfile, or Containerfile
containerFile(string) (required) - The absolute path to the Dockerfile, Podmanfile, or Containerfile to build the image fromimageName(string) - Specifies the name which is assigned to the resulting image if the build process completes successfully (--tag, -t)
-
image_list - List the Docker or Podman images on the local machine
-
image_pull - Copies (pulls) a Docker or Podman container image from a registry onto the local machine storage
imageName(string) (required) - Docker or Podman container image name to pull
-
image_push - Pushes a Docker or Podman container image, manifest list or image index from local machine storage to a registry
imageName(string) (required) - Docker or Podman container image name to push
-
image_remove - Removes a Docker or Podman image from the local machine storage
imageName(string) (required) - Docker or Podman container image name to remove
- network_list - List all the available Docker or Podman networks
- volume_list - List all the available Docker or Podman volumes
🧑💻 Development <a id="development"></a>
Running with mcp-inspector
Compile the project and run the Podman MCP server with mcp-inspector to inspect the MCP server.
# Compile the project
make build
# Run the Podman MCP server with mcp-inspector
npx @modelcontextprotocol/inspector@latest $(pwd)/podman-mcp-server
mcp-name: io.github.manusa/podman-mcp-server
常见问题
io.github.manusa/podman-mcp-server 是什么?
面向容器运行时的 MCP 服务器,支持 Podman 与 Docker,方便 AI 助手执行、管理和查询容器环境。
相关 Skills
MCP构建
by anthropics
聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。
✎ 想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。
Slack动图
by anthropics
面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。
✎ 帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。
MCP服务构建器
by alirezarezvani
从 OpenAPI 一键生成 Python/TypeScript MCP server 脚手架,并校验 tool schema、命名规范与版本兼容性,适合把现有 REST API 快速发布成可生产演进的 MCP 服务。
✎ 帮你快速搭建 MCP 服务与后端 API,脚手架完善、扩展顺手,尤其适合想高效验证服务能力的开发者。
相关 MCP Server
Slack 消息
编辑精选by Anthropic
Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。
✎ 这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。
by netdata
io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。
✎ 这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。
by d4vinci
Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。
✎ 这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。