Docker MCP Gateway 是官方的吗?
是的。它由 Docker 在 docker/mcp-gateway 仓库中开发,并为 MCP Toolkit 提供支持。
@docker
基本信息
版本
v0.44.1
许可证
MIT
传输方式
stdio, sse, streamable-http
认证方式
none
作者
docker
Docker 官方 MCP Gateway 与 docker mcp CLI 插件:将 Docker MCP Catalog 中的服务器作为隔离容器运行,并通过同一个端点提供给任意 MCP 客户端。
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"MCP_DOCKER": {
"command": "docker",
"args": [
"mcp",
"gateway",
"run"
]
}
}
}Search for MCP servers in the catalog by name or description
Add a new MCP server to the current session
Configure settings for an MCP server
Remove an MCP server from the session
Execute a tool by name that exists in the current session
Create a JavaScript-enabled tool that combines multiple MCP server tools (experimental)
Docker MCP Toolkit & Gateway (Official) 是 Docker 官方的 docker mcp 方案:由 docker mcp CLI 插件和 MCP Gateway 组成,把 Docker MCP Catalog 中的 MCP 服务器作为隔离容器运行,并通过同一个端点提供给 Claude、Cursor、VS Code 等客户端。
开源仓库 docker/mcp-gateway(MIT 许可)包含支撑 MCP Toolkit 的 CLI 插件。MCP Catalog(hub.docker.com/mcp,OCI 镜像 mcp/docker-mcp-catalog)列出容器化的服务器,MCP Gateway 负责运行它们并路由调用,MCP Toolkit 则是构建在两者之上的 Docker Desktop 界面。
前提条件:已启用 MCP Toolkit 的 Docker Desktop(Settings → Beta features → Enable Docker MCP Toolkit → Apply)。Docker 文档描述的是 Docker Desktop 4.62 及以上版本的界面和 docker mcp 命令。
在 Docker CE、WSL2 或容器中,README 要求先运行:
export DOCKER_MCP_IN_CONTAINER=1
docker mcp feature enable profiles
1. 从目录中挑选服务器
docker mcp catalog pull mcp/docker-mcp-catalog
docker mcp catalog server ls mcp/docker-mcp-catalog
输出的名称(如 github-official)就是 catalog:// 引用中使用的 ID。
2. 创建 profile(客户端所连接的一组具名服务器):
docker mcp profile create --name web-dev
docker mcp profile server add web-dev \
--server catalog://mcp/docker-mcp-catalog/github-official \
--server catalog://mcp/docker-mcp-catalog/playwright
3. 运行网关
docker mcp gateway run --profile web-dev
不带 --profile 时使用名为 default 的 profile。通常由客户端通过 stdio 自行启动该命令。
4. 连接客户端。 docker mcp client connect 支持的名称包括 claude-code、claude-desktop、cursor、vscode、codex、gemini、zed、cline、continue、goose、kiro、lmstudio 和 opencode。
docker mcp client ls
docker mcp client connect <client> --profile web-dev
docker mcp client connect claude-code --profile web-dev --global
之后运行 claude mcp list,应能看到 MCP_DOCKER 显示为已连接。
在 Docker Desktop 中打开 MCP Toolkit → Clients,点击 Claude Desktop 旁的 Connect,然后重启 Claude Desktop。Docker 文档给出的手动配置:
{
"mcpServers": {
"MCP_DOCKER": {
"command": "docker",
"args": ["mcp", "gateway", "run", "--profile", "web-dev"]
}
}
}
docker mcp client connect cursor --profile web-dev
在 Cursor Settings → Tools & MCP 中确认出现 MCP_DOCKER。
在项目目录中运行(会生成一个用户专属的 .vscode/mcp.json):
docker mcp client connect vscode --profile web-dev
echo ".vscode/mcp.json" >> .gitignore
docker mcp client connect codex --profile web-dev
codex mcp list
MCP_DOCKER 应显示为 “enabled” 状态。
mcp/ 下的镜像由 Docker 构建并签名,附带 SBOM,默认进行签名校验sse 和 streaming HTTP 传输docker/mcp-gateway 镜像,可用于 Docker Compose 和 CI网关会暴露 profile 中每个服务器的工具。在此之上,Dynamic MCP(标注为实验性)还增加了几个管理工具:
mcp-find 按名称或描述搜索目录。mcp-add 和 mcp-remove 为当前会话添加或移除服务器,mcp-config-set 用于配置服务器。以这种方式添加的服务器不会保存到 profile。mcp-exec 按名称运行工具,code-mode 将多个服务器的工具组合成一个 JavaScript 工具;Docker 表示 code mode 目前还不适合常规使用。如果需要固定的工具列表,可用 docker mcp feature disable dynamic-tools 关闭这些工具。要精简 profile 内的工具,使用白名单:
docker mcp profile tools web-dev --disable-all github-official
docker mcp profile tools web-dev --enable github-official.list_issues
npx 或 uvx 运行。--servers 为智能体提供网关,无需 Docker Desktop。docker mcp gateway run --catalog <oci-reference>。“docker mcp” 这个说法也包括用来管理 Docker 本身的服务器,这是另一类用途。mcp-server-docker(ckreiling,社区项目)用自然语言管理 Docker:编排容器、调试运行中的容器以及管理数据卷;docker-mcp(QuantGeekDev,社区项目)可以创建容器、部署 Compose 栈并读取容器日志。想要控制 Docker,请用这些服务器;想要为客户端运行并保护大量 MCP 服务器,请用官方的 Docker MCP Toolkit。完整步骤见我们的 Docker MCP Gateway 配置指南。
docker mcp gateway run --verbose --dry-run。它会打印已启用的服务器、已拉取的镜像和工具数量,可发现服务器名称错误、配置或密钥缺失等问题。docker mcp tools call <tool-name> [arguments...] 并加上 --verbose。export DOCKER_MCP_IN_CONTAINER=1(适用于 WSL2、Docker CE、容器环境)。是的。它由 Docker 在 docker/mcp-gateway 仓库中开发,并为 MCP Toolkit 提供支持。
网关和 CLI 插件以 MIT 许可开源。它随 Docker Desktop 提供,也可以脱离 Docker Desktop 运行。
Catalog 列出容器化的 MCP 服务器,Gateway 运行它们并路由客户端调用,Toolkit 是管理两者的 Docker Desktop 界面。
不必。Docker 文档以 Docker Desktop 4.62+ 为准,但 README 说明了如何在 Docker CE、WSL2 或容器中使用 CLI,而 `docker/mcp-gateway` 镜像也可以用 Docker Compose 运行。
支持。`docker mcp client connect` 支持 `claude-code`、`cursor`、`vscode`、`claude-desktop`、`codex` 等,任何 stdio 客户端都可以运行 `docker mcp gateway run`。
使用 Docker Desktop 中该服务器的 Configuration 标签页,或使用 CLI,例如 `echo my-secret-password | docker mcp secret set postgres_password`。密钥名称由各服务器自行定义。
可以:`docker mcp gateway run --port 8080 --transport streaming`。HTTP 传输需要 bearer token,取自 `MCP_GATEWAY_AUTH_TOKEN`(或由网关生成)。
它能降低风险:容器不继承宿主机环境变量,CPU 和内存受限,`mcp/` 镜像经过签名,工具调用还会做密钥扫描。但启用哪些服务器和工具仍由你决定,请像审查其他依赖一样审查它们。
The video infra for AI agents: compose motion-graphics video from one JSON document (open Clipkit Protocol), validate before it costs anything, preview stills in-chat, and render deterministic MP4s on a GPU runtime.
Console, Backend and CLI to manage Capgo Instant update and Native build for Capacitor apps Build and upload to app store your mobile app
NetFoundry LLM Gateway is an OpenAI-compatible API proxy that routes requests across multiple LLM providers using zero-trust networking. Zero trust LLM gateway. OpenAI-compatible proxy with semantic routing and load bala

Hosted Google Search / SERP MCP server from HasData, no Google Cloud project. Organic results, AI Overview, People Also Ask, AI Mode, news and shopping for Claude, Cursor and any MCP client.
Read public Instagram profiles and post feeds by handle in Claude, Cursor, and other MCP clients. Get follower counts, captions, hashtags, mentions, and engagement counts as structured JSON.
评论