-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
Merged
Merged
add MCP Gateway #22935
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
--- | ||
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 | ||
privileges, network access, and resource usage. | ||
- 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 | ||
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 | ||
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, resources and prompts from multiple servers | ||
- Container-based servers: Run MCP servers as Docker containers with proper isolation | ||
- Secrets management: Secure handling of API keys and credentials via Docker Desktop | ||
- 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 Desktop with the [MCP Toolkit feature enabled](../mcp-catalog-and-toolkit/toolkit.md#enable-docker-mcp-toolkit). | ||
- 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 warning on line 55 in content/manuals/ai/mcp-gateway/_index.md
|
||
|
||
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: | ||
|
||
|
||
{{< tabs group="" >}} | ||
{{< tab name="On Unix environments">}} | ||
|
||
|
||
* `/usr/local/lib/docker/cli-plugins` OR `/usr/local/libexec/docker/cli-plugins` | ||
Check warning on line 74 in content/manuals/ai/mcp-gateway/_index.md
|
||
* `/usr/lib/docker/cli-plugins` OR `/usr/libexec/docker/cli-plugins` | ||
Check warning on line 75 in content/manuals/ai/mcp-gateway/_index.md
|
||
|
||
> [!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 | ||
|
||
Run: | ||
|
||
```bash | ||
docker mcp gateway run | ||
``` | ||
|
||
To view all the commands and configuration options, go to the [mcp-gateway repository](https://github.com/docker/mcp-gateway?tab=readme-ov-file#usage). | ||
|
||
## Related pages | ||
|
||
- [Docker MCP toolkit and catalog](/manuals/ai/mcp-catalog-and-toolkit/_index.md) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.