Skip to content

add MCP Gateway #22935

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/css/components.css
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
}
}
.button {
@apply mt-1 inline-block rounded-sm bg-blue-500 p-1 px-3 text-blue-50 text-white hover:bg-blue-600 dark:bg-blue-500 hover:dark:bg-blue-400;
@apply my-2 mr-2 inline-block rounded-sm bg-blue-500 p-1 px-3 text-blue-50 text-white hover:bg-blue-600 dark:bg-blue-500 hover:dark:bg-blue-400;
}

.summary-bar {
Expand Down
5 changes: 5 additions & 0 deletions content/manuals/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ params:
description: Run containers programmatically in your preferred programming language.
icon: /icons/Testcontainers.svg
link: /testcontainers/
- title: MCP Gateway
description: Manage and secure your AI tools with a single gateway.
icon: /icons/toolkit.svg
link: /ai/mcp-gateway/

ai:
- title: Ask Gordon
description: Streamline your workflow and get the most out of the Docker ecosystem with your personal AI assistant.
Expand Down
6 changes: 5 additions & 1 deletion content/manuals/ai/mcp-catalog-and-toolkit/toolkit.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- /ai/gordon/mcp/gordon-mcp-server/
---

The Docker MCP Toolkit enables seamless setup, management, and execution of containerized MCP servers and their connections to AI agents. It removes the friction from tool usage by offering secure defaults, one-click setup, and support for a growing ecosystem of LLM-based clients. It is the fastest path from MCP tool discovery to local execution.
The Docker MCP Toolkit is a gateway that enables seamless setup, management, and execution of containerized MCP servers and their connections to AI agents. It removes the friction from tool usage by offering secure defaults, one-click setup, and support for a growing ecosystem of LLM-based clients. It is the fastest path from MCP tool discovery to local execution.

Check warning on line 10 in content/manuals/ai/mcp-catalog-and-toolkit/toolkit.md

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [Docker.RecommendedWords] Consider using 'select' instead of 'click' Raw Output: {"message": "[Docker.RecommendedWords] Consider using 'select' instead of 'click'", "location": {"path": "content/manuals/ai/mcp-catalog-and-toolkit/toolkit.md", "range": {"start": {"line": 10, "column": 230}}}, "severity": "INFO"}

## Key features

Expand Down Expand Up @@ -160,3 +160,7 @@
```text
Take a screenshot of docs.docker.com and then invert the colors
```

## Related pages

- [Open-source MCP Gateway](/manuals/ai/mcp-gateway/_index.md)
106 changes: 106 additions & 0 deletions content/manuals/ai/mcp-gateway/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
---
title: MCP Gateway
description: "Docker's MCP Gateway provides secure, centralized, and scalable orchestration of AI tools through containerized MCP servers—empowering developers, operators, and security teams."
keywords: MCP Gateway
params:
sidebar:
group: Open source
---

The MCP Gateway is Docker's open-source enterprise-ready solution for orchestrating and
managing [Model Context Protocol (MCP)](https://spec.modelcontextprotocol.io/) servers
securely across development and production environments.
It is designed to help organizations connect MCP servers from the [Docker MCP Catalog](https://hub.docker.com/mcp) to MCP Clients without compromising security, visibility, or control.

By unifying multiple MCP servers into a single, secure endpoint, the MCP Gateway offers
the following benefits:

- Secure by Default: MCP servers run in isolated Docker containers with restricted
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Secure by Default: MCP servers run in isolated Docker containers with restricted
- Secure by default: MCP servers run in isolated Docker containers with restricted

privileges, network access, and resource usage.
- Unified Management: One gateway endpoint centralizes configuration, credentials,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Unified Management: One gateway endpoint centralizes configuration, credentials,
- Unified management: One gateway endpoint centralizes configuration, credentials,

and access control for all MCP servers.
- Enterprise Observability: Built-in monitoring, logging, and filtering tools ensure
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Enterprise Observability: Built-in monitoring, logging, and filtering tools ensure
- Enterprise observability: Built-in monitoring, logging, and filtering tools ensure

full visibility and governance of AI tool activity.

## Who is the MCP Gateway designed for?

The MCP Gateway solves problems encountered by various groups:

- Developers: Deploy MCP servers locally and in production using Docker Compose,
with built-in support for protocol handling, credential management, and security policies.
- Security Teams: Achieve enterprise-grade isolation and visibility into AI tool
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Security Teams: Achieve enterprise-grade isolation and visibility into AI tool
- Security teams: Achieve enterprise-grade isolation and visibility into AI tool

behavior and access patterns.
- Operators: Scale effortlessly from local development environments to production
infrastructure with consistent, low-touch operations.

## Key features

- Server Management: List, inspect, and call MCP tools, resoures and prompts from multiple servers
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Server Management: List, inspect, and call MCP tools, resoures and prompts from multiple servers
- Server management: List, inspect, and call MCP tools, resources and prompts from multiple servers

- Container-based Servers: Run MCP servers as Docker containers with proper isolation
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Container-based Servers: Run MCP servers as Docker containers with proper isolation
- Container-based servers: Run MCP servers as Docker containers with proper isolation

- Secrets Management: Secure handling of API keys and credentials via Docker Desktop
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Secrets Management: Secure handling of API keys and credentials via Docker Desktop
- Secrets management: Secure handling of API keys and credentials via Docker Desktop

- Server Catalog: Manage and configure multiple MCP catalogs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Server Catalog: Manage and configure multiple MCP catalogs
- Server catalog: Manage and configure multiple MCP catalogs

- Dynamic Discovery and Reloading: Automatic tool, prompt, and resource discovery from running servers
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Dynamic Discovery and Reloading: Automatic tool, prompt, and resource discovery from running servers
- Dynamic discovery and reloading: Automatic tool, prompt, and resource discovery from running servers

- Monitoring: Built-in logging and call tracing capabilities

## Install the MCP Gateway

### Prerequisites

- [Docker Engine](/manuals/engine/_index.md)
- Go 1.24+ (for development)

### Install using a pre-built binary

> [!IMPORTANT]
> These instructions are mostly suitable for testing purposes.
> We otherwise recommend building from the sources. See the [readme](https://github.com/docker/mcp-gateway?tab=readme-ov-file#installation).

Check failure on line 56 in content/manuals/ai/mcp-gateway/_index.md

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [Vale.Spelling] Did you really mean 'readme'? Raw Output: {"message": "[Vale.Spelling] Did you really mean 'readme'?", "location": {"path": "content/manuals/ai/mcp-gateway/_index.md", "range": {"start": {"line": 56, "column": 62}}}, "severity": "ERROR"}

Check warning on line 56 in content/manuals/ai/mcp-gateway/_index.md

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [Docker.We] Avoid using first-person plural like 'We'. Raw Output: {"message": "[Docker.We] Avoid using first-person plural like 'We'.", "location": {"path": "content/manuals/ai/mcp-gateway/_index.md", "range": {"start": {"line": 56, "column": 3}}}, "severity": "WARNING"}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
> We otherwise recommend building from the sources. See the [readme](https://github.com/docker/mcp-gateway?tab=readme-ov-file#installation).
> We otherwise recommend building from the sources. See the [README](https://github.com/docker/mcp-gateway?tab=readme-ov-file#installation).


You can download the latest binary from the [GitHub releases page](https://github.com/docker/mcp-gateway/releases/latest).

Rename the relevant binary and copy it to the destination matching your OS:

| OS | Binary name | Destination folder |
|---------|---------------------|-------------------------------------|
| Linux | `docker-mcp` | `$HOME/.docker/cli-plugins` |
| macOS | `docker-mcp` | `$HOME/.docker/cli-plugins` |
| Windows | `docker-mcp.exe` | `%USERPROFILE%\.docker\cli-plugins` |

Or copy it into one of these folders for installing it system-wide.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Or copy it into one of these folders for installing it system-wide.
Or copy it into one of these folders for installing it system-wide:



{{< tabs group="" >}}
{{< tab name="On Unix environments">}}


* `/usr/local/lib/docker/cli-plugins` OR `/usr/local/libexec/docker/cli-plugins`

Check warning on line 75 in content/manuals/ai/mcp-gateway/_index.md

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [Docker.Acronyms] 'OR' has no definition. Raw Output: {"message": "[Docker.Acronyms] 'OR' has no definition.", "location": {"path": "content/manuals/ai/mcp-gateway/_index.md", "range": {"start": {"line": 75, "column": 39}}}, "severity": "WARNING"}
* `/usr/lib/docker/cli-plugins` OR `/usr/libexec/docker/cli-plugins`

Check warning on line 76 in content/manuals/ai/mcp-gateway/_index.md

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [Docker.Acronyms] 'OR' has no definition. Raw Output: {"message": "[Docker.Acronyms] 'OR' has no definition.", "location": {"path": "content/manuals/ai/mcp-gateway/_index.md", "range": {"start": {"line": 76, "column": 33}}}, "severity": "WARNING"}

> [!NOTE]
> You may have to make the binaries executable with `chmod +x`:

> ```bash
> $ chmod +x ~/.docker/cli-plugins/docker-mcp
> ```

{{< /tab >}}
{{< tab name="On Windows">}}

* `C:\ProgramData\Docker\cli-plugins`
* `C:\Program Files\Docker\cli-plugins`

{{< /tab >}}
{{</tabs >}}

You can now use the `mcp` command:

```bash
docker mcp --help
```

## Use the MCP Gateway

To view all the commands and configuration options, go to the [mcp-gateway repository](https://github.com/docker/mcp-gateway).

## Related pages

- [Docker MCP toolkit and catalog](/manuals/ai/mcp-catalog-and-toolkit/_index.md)