DM

docker/mcp-gateway

Developer tools公式

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

1616 stars 288 forks 品質 82 トレンド 45MIT

Docker mcp CLI プラグイン / MCP ゲートウェイ

概要

Docker Desktop内のMCPツールキットは、開発者がDocker MCPカタログからMCPサーバーを設定・利用できるようにします。 その下では、Toolkitはdocker CLIプラグインdocker-mcpによって動作しています。このリポジトリはこのCLIプラグインのコードです。Docker Desktopでも独立して動作することも可能です。 このCLIの主な機能は、MCPサーバーの簡単かつ安全な実行と展開を可能にすることです。すべての機能一覧は「特徴」を参照してください。 モデルコンテキストプロトコル(MCP)は、AIアプリケーションが外部のデータソースやツールに接続する方法を標準化するオープンプロトコルです。これは、言語モデルがさまざまなサービス、データベース、APIにアクセスし、相互作用するための安全かつ制御された方法を提供します。 開発者は、モデルコンテキストプロトコル(MCP)ツールを本番ワークフローに統合する際に重要な障壁に直面します: - カタログ内の各ローカルMCPサーバーは、隔離されたDockerコンテナ上で動作します。NPXおよびUVXサーバーは最小限のホスト権限が付与されます。

概要(AI 翻訳)

Docker DesktopのMCPツールキットは、 開発者がDocker MCPカタログからMCPサーバーを構成・利用するために利用します。

その下では、Toolkitはdocker CLIプラグイン[docker-mcpによって動作しています。このリポジトリはこのCLIプラグインのコードです。Docker Desktopでも独立して動作することも可能です。

このCLIの主な機能はDocker MCP Gatewayで、これによりMCPサーバーの簡単かつ安全な運用と展開が可能です。すべての機能一覧は「機能」をご覧ください。

MCPとは何か?

モデルコンテキストプロトコル(MCP)は、AIアプリケーションが外部のデータソースやツールに接続する方法を標準化するオープンプロトコルです。これは、言語モデルがさまざまなサービス、データベース、APIにアクセスし、相互作用するための安全かつ制御された方法を提供します。

概要

開発者は、モデルコンテキストプロトコル(MCP)ツールを本番ワークフローに統合する際に重要な障壁に直面します:

  • MCPサーバーライフサイクルの管理カタログ内の各ローカルMCPサーバーは、隔離されたDockerコンテナ上で動作します。NPXおよびUVXサーバーは最小限のホスト権限が与えられます。
  • 統一インターフェースの提供 AIモデルは単一のゲートウェイを通じてMCPサーバーにアクセスします。

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Docker MCP Plugin and Docker MCP Gateway

The MCP Toolkit, in Docker Desktop, allows developers to configure and consume MCP servers from the Docker MCP Catalog.

Underneath, the Toolkit is powered by a docker CLI plugin: docker-mcp. This repository is the code of this CLI plugin. It can work in Docker Desktop or independently.

The main feature of this CLI is the Docker MCP Gateway which allows easy and secure running and deployment of MCP servers. See Features for a list of all the features.

What is MCP?

The Model Context Protocol (MCP) is an open protocol that standardizes how AI applications connect to external data sources and tools. It provides a secure, controlled way for language models to access and interact with various services, databases, and APIs.

Overview

Developers face criticial barriers when integrating Model Context Protocol (MCP) tools into production workflows:

  • Managing MCP server lifecycle Each local MCP sever in the catalog runs in an isolated Docker container. npx and uvx servers are granted minimal host privileges.
  • Providing a unified interface AI models access MCP servers through a single Gateway.
  • Handling authentication and security Keep secrets out of environment variables using Docker Desktop’s secrets management.
  • Supports dynamic tool discovery and configuration. Each MCP client (eg VS Code, Cursor, Claude Desktop, etc.) connects to the same Gateway configuration, ensuring consistency across different clients.
  • Enables OAuth flows for MCPs that require OAuth access token service connections.

Features

  • 🐳 Container-based Servers: Run MCP servers as Docker containers with proper isolation.
  • 🔧 Server Management: List, inspect, and call MCP tools, resources and prompts from multiple servers.
  • 🔐 Secrets Management: Secure handling of API keys and credentials via Docker Desktop.
  • 🌐 OAuth Integration: Built-in OAuth flows for service authentication.
  • 📋 Server Catalog: Manage and configure multiple MCP catalogs.
  • 🔍 Dynamic Discovery: Automatic tool, prompt, and resource discovery from running servers.
  • 📊 Monitoring: Built-in logging and call tracing capabilities.

Installation

Prerequisites

  • Docker Desktop 4.59+ (with MCP Toolkit feature enabled)

  • Go 1.24+ (for development)

Install as Docker CLI Plugin

The MCP cli will already be installed on recent versions of Docker Desktop but you can build and install the latest version by following these steps:

# Clone the repository
git clone https://github.com/docker/mcp-gateway.git
cd mcp-gateway
mkdir -p "$HOME/.docker/cli-plugins/"
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →