MCP Catalogs
首页

podman-mcp-server

by manusa·73·综合分 46

一个管理 Podman 和 Docker 容器的文档完善的 MCP 服务器,工具覆盖全面。

ops-infradeveloper-toolsother
17
Forks
12
活跃 Issue
1 个月前
最近提交
2 天前
收录于

概述

podman-mcp-server 提供了容器运行时的 MCP 协议接口,支持 Podman 和 Docker。它实现了多种传输模式,包括 STDIO(默认)和带有流式 HTTP 和 SSE 端点的 HTTP 模式。服务器支持两种 Podman 实现后端:通过 Unix 套接字的直接 REST API(首选)和 CLI 包装器(备用),具有自动检测功能。使用 Go 编写,提供全面的容器管理工具,包括检查、列出、日志、移除、运行和停止操作,以及镜像和网络管理。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:AI 助手通过自然语言命令管理 Docker/Podman 容器
:使用 MCP 通过容器运行时操作进行自动化部署工作流
:AI 需要与本地容器交互的开发环境
:支持哪些 Podman 实现?
:提供哪些传输模式?

什么时候选它

如果您使用 Podman 或 Docker 容器并希望通过 AI 助手或 MCP 启动的应用程序管理它们,请选择此工具。

什么时候不要选它

如果您使用 Podman/Docker 以外的容器运行时,或需要可用工具未涵盖的高级编排功能,请不要选择此工具。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • container_inspectcontainer_inspect(name)

    Displays the low-level information and configuration of a Docker or Podman container with the specified container ID or name

  • container_list

    Prints out information about the running Docker or Podman containers

  • container_logscontainer_logs(name)

    Displays the logs of a Docker or Podman container with the specified container ID or name

  • container_removecontainer_remove(name)

    Removes a Docker or Podman container with the specified container ID or name (rm)

  • container_runcontainer_run(imageName, environment?, ports?)

    Runs a Docker or Podman container with the specified image name

  • container_stopcontainer_stop(name)

    Stops a Docker or Podman running container with the specified container ID or name

  • image_buildimage_build(containerFile, imageName?)

    Build a Docker or Podman image from a Dockerfile, Podmanfile, or Containerfile

  • image_list

    List the Docker or Podman images on the local machine

  • image_pullimage_pull(imageName)

    Copies (pulls) a Docker or Podman container image from a registry onto the local machine storage

  • image_pushimage_push(imageName)

    Pushes a Docker or Podman container image, manifest list or image index from local machine storage to a registry

  • image_removeimage_remove(imageName)

    Removes a Docker or Podman image from the local machine storage

  • network_list

    List all the available Docker or Podman networks

可对比工具

docker-mcp-serverkubernetes-mcpshell-mcp

安装

Claude Desktop

添加到您的 claude_desktop_config.json 文件中:

{
  "mcpServers": {
    "podman": {
      "command": "npx",
      "args": [
        "-y",
        "podman-mcp-server@latest"
      ]
    }
  }
}

VS Code

直接在 VS Code 中安装 MCP 服务器,或使用命令:

code --add-mcp '{"name":"podman","command":"npx","args":["-y","podman-mcp-server@latest"]}'

Goose CLI

添加到您的 config.yaml 文件中:

extensions:
  podman:
    command: npx
    args:
      - -y
      - podman-mcp-server@latest

FAQ

支持哪些 Podman 实现?
服务器支持两种实现:'api'(通过 Unix 套接字的 Podman REST API,首选)和 'cli'(Podman/Docker CLI 包装器,备用)。默认情况下,它会自动检测最佳可用实现。
提供哪些传输模式?
服务器支持 STDIO 模式(默认)、带有流式 HTTP 和 SSE 端点的 HTTP 模式,以及遗留的仅 SSE 模式(已弃用)。

podman-mcp-server 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。