Docker MCP
What it does
MCP server for managing Docker containers, images, networks, volumes, and registries
- Connects パソコンで動く
- Account or key No key needed
- Category 開発者ツール
インストール
使っているAIアプリを選んで、設定をコピーしてください。
チェック 1/3 合格 · あなたのパソコンで動きます · ✓ コマンド確認済み 2026年11月13日
まず:どの AI を使っていますか?
使っているアプリを選ぶと、下に手順が表示されます。
Claude につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
パソコン版 Claude アプリの設定ファイルを開く
SettingsDeveloperEdit Config
この設定を貼り付けて保存
{ "mcpServers": { "docker": { "command": "npx", "args": [ "-y", "@alisaitteke/docker-mcp" ] } } }Claude を終了してもう一度開く
試してみる
Docker MCP を使って、私に何ができるか教えて、1 つやってみせて✓ Claude が Docker MCP を使っていると言うか、回答に Docker MCP のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
ChatGPT はまだ Docker MCP につなげません
Docker MCP はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません
代わりにできること
A · Docker MCP につなげるアプリを使う
- 先にパソコンへ Node.js を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
- 先にパソコンへ Node.js を入れてください(1 回だけ)
- 先にパソコンへ Node.js を入れてください(1 回だけ)
- 先にパソコンへ Node.js を入れてください(1 回だけ)
B · 開発者ツール の中で ChatGPT につなげる別のサーバー
同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました
- Sentry✓ ChatGPT
- Compiler Explorer✓ ChatGPT
- GitDiagram✓ ChatGPT
Claude Code につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ)
ターミナルを開く
Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く
このコマンドを貼り付けて Enter
claude mcp add --scope user docker -- npx -y @alisaitteke/docker-mcpClaude Code で /mcp と入力
Docker MCP が一覧にあり、接続済みと表示されれば OK です
試してみる
Docker MCP を使って、私に何ができるか教えて、1 つやってみせて✓ Claude Code が Docker MCP を使っていると言うか、回答に Docker MCP のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Cursor につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ)
Cursor の AI チャットを Agent モードで開く
試してみる
Docker MCP を使って、私に何ができるか教えて、1 つやってみせて✓ Cursor が Docker MCP を使っていると言うか、回答に Docker MCP のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
VS Code につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ)
VS Code の AI チャットを Agent モードで開く
試してみる
Docker MCP を使って、私に何ができるか教えて、1 つやってみせて✓ VS Code が Docker MCP を使っていると言うか、回答に Docker MCP のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Windsurf、Zed、Gemini CLI など MCP を使える他のアプリは追加方法がそれぞれ違います。アプリ一覧で確認してください
JSON 設定は下の「開発者向け」にあります
開発者向け:ターミナルのコマンドと JSON 設定
パソコンにインストール
Claude Code
claude mcp add --scope user docker -- npx -y @alisaitteke/docker-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"docker": {
"command": "npx",
"args": [
"-y",
"@alisaitteke/docker-mcp"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"docker": {
"command": "npx",
"args": [
"-y",
"@alisaitteke/docker-mcp"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"docker": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@alisaitteke/docker-mcp"
]
}
}
}この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
ひと目でわかる
使えるアプリ
このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。
パソコン上で動かせるアプリ
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
できること
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
基本チェックi
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月14日にチェック
- ✓ 合格
作者とリポジトリが一致
レジストリ名は、リポジトリを所有するGitHubアカウント alisaitteke で確認済みです
- ! 注意
今もメンテナンスされている
コードの最終更新:10 か月前(6か月以上前)
- ✕ 不合格
ライセンスがある
リポジトリにライセンスファイルが見つかりません
- – 対象外
エンドポイントが応答する
これはパソコンで動くため、インターネット上のエンドポイントはありません
- – 対象外
OAuthでサインイン
パソコンで動き、代わりにローカルの設定を使います
- … 未チェック
ツールの説明に隠れた指示がない
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
話し合い
質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。
ユーザーレビュー
まだレビューはありません
開発者ツールのほかのサーバーとの比較i
- このカテゴリのほかの5866件のうち77%よりスターが多い
- このカテゴリのほかの5866件のうち2%より最近レジストリに公開
- 基本チェックの結果が、このカテゴリのほかの5866件のうち7%と同じかそれ以上
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
よくある質問
Docker MCPは安全ですか?
当てはまる基本チェック3項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
どんなキーやコードが必要ですか?
レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。
パソコンで動きますか、それともクラウドですか?
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
今もメンテナンスされていますか?
GitHubリポジトリの最終更新は10 か月前、最新バージョン(0.2.4)がレジストリに届いたのは10 か月前です。
どのアプリで使えますか?
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。
同じカテゴリのほかの候補
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Serena MCP: the IDE for your agent
A powerful toolkit for coding, providing semantic retrieval and editing capabilities.
作者のREADME
READMEを開く
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
Docker MCP Server
Powerful Docker management for AI assistants
A comprehensive Model Context Protocol (MCP) server that empowers AI assistants like Cursor, Claude Desktop, and other MCP-compatible clients to seamlessly manage Docker containers, images, networks, volumes, and registries through natural language interactions.
Why Docker MCP Server?
- Zero Configuration - Works out of the box with
npx, no installation needed - Safety First - Two-step confirmation for destructive operations
- Cross-Platform - Works on Windows, Linux, and macOS with automatic Docker socket detection
- Comprehensive - Full Docker API coverage including Compose, registries, and system operations
- AI-Native - Designed specifically for AI assistants with clear, structured responses
Features
Container Management
- Full lifecycle control: Create, start, stop, restart, kill, and remove containers
- Monitoring: Real-time logs, statistics, and container inspection
- Advanced operations: Pause/unpause, exec commands, and resource management
Image Management
- Registry operations: Pull, push, tag, and remove images
- Build support: Build images from Dockerfiles with full configuration
- Inspection: Detailed image history, layers, and metadata
Network Management
- Network operations: Create, remove, and inspect Docker networks
- Container connectivity: Connect/disconnect containers from networks
- Network discovery: List and filter networks with advanced options
Volume Management
- Volume operations: Create, remove, and inspect volumes
- Data persistence: Manage persistent storage for containers
- Volume inspection: Detailed volume information and mount points
System Operations
- System information: Docker daemon info, version, and capabilities
- Resource cleanup: Prune unused images, containers, volumes, and networks
- Event monitoring: Real-time Docker event stream
Container Execution
- Command execution: Run commands in running containers
- Interactive sessions: Create and manage exec instances
- Output streaming: Real-time command output and logs
Registry Integration
- Docker Hub: Search repositories, list tags, authenticate, pull/push images
- GitHub Container Registry (GHCR): Full authentication and image management
- Multi-registry support: Seamlessly work with multiple registries
Docker Compose Support
- Multi-container management: Start, stop, restart compose services
- Service monitoring: View logs and status of compose services
- Build operations: Build compose services with dependency management
- Configuration validation: Parse and validate docker-compose.yml files
Safety Features
- Two-step confirmation for all destructive operations
- Resource preview: See what will be deleted before confirmation
- Dual confirmation methods:
- Confirm parameter (default): Works everywhere, simple and reliable
- MCP Elicitation API (advanced): Interactive form-based confirmation for better UX
Installation
Via npx (Recommended)
npx @alisaitteke/docker-mcp
Local Installation
npm install -g @alisaitteke/docker-mcp
Or install locally in your project:
npm install @alisaitteke/docker-mcp
Quick Start
With Cursor
- Add to your Cursor MCP configuration (usually in
.cursor/mcp.jsonor similar):
{
"mcpServers": { "docker": { "command": "npx", "args": ["@alisaitteke/docker-mcp"] } } }
- Restart Cursor and start managing Docker with AI!
With Claude Desktop
- Add to your Claude Desktop configuration:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
{
"mcpServers": { "docker": { "command": "npx", "args": ["@alisaitteke/docker-mcp"] } } }
- Restart Claude Desktop and start managing Docker with AI!
Local Development and Testing
Prerequisites
- Node.js 18.0.0 or higher
- Docker daemon running
- npm or yarn
Setup
- Clone the repository:
git clone <repository-url>
cd docker-mcp
- Install dependencies:
npm install
- Build the project:
npm run build
Running Locally
Method 1: Using npm start (after build)
# Build first
npm run build
Run the server
npm start
Method 2: Using npm run dev (development mode with tsx)
npm run dev
This uses tsx to run TypeScript directly without building.
Method 3: Direct execution
# Build first
npm run build
Run directly with node
node dist/index.js
Method 4: Using the binary
# Build first
npm run build
Make sure the binary is executable
chmod +x bin/docker-mcp-server.js
Run the binary
./bin/docker-mcp-server.js
Development Workflow
- Make changes to source files in
src/ - Build the project:
npm run build
- Test the changes:
npm start
or
npm run dev
4. Check for TypeScript errors:
npm run typecheck
- Lint the code:
npm run lint
Troubleshooting
Docker connection issues:
- Ensure Docker daemon is running:
docker ps - Linux/macOS: Check Docker socket permissions:
ls -la /var/run/docker.sock - Windows: Ensure Docker Desktop is running and named pipe is accessible
- For remote Docker, set environment variables:
DOCKER_HOST,DOCKER_CERT_PATH, etc. - macOS: If
/var/run/docker.sockdoesn't exist, try~/.docker/run/docker.sock(Docker Desktop 4.0+)
Build errors:
- Clear node_modules and reinstall:
rm -rf node_modules && npm install - Check TypeScript version compatibility
- Ensure all dependencies are installed:
npm install
Runtime errors:
- Check that Docker is accessible:
docker version - Verify the build was successful:
ls -la dist/ - Check server logs (errors are written to stderr)
Configuration
The server automatically detects the operating system and uses the appropriate Docker socket path:
Platform-Specific Defaults
- Linux:
/var/run/docker.sock(Unix socket) - macOS:
/var/run/docker.sockor~/.docker/run/docker.sock(Docker Desktop 4.0+) - Windows:
//./pipe/docker_engine(Named pipe)
Connection Methods (in order of priority)
- Environment variables (highest priority):
DOCKER_HOST- Docker daemon host (e.g.,tcp://localhost:2376,npipe:////./pipe/docker_engine)DOCKER_PORT- Docker daemon portDOCKER_PROTOCOL- Protocol (httporhttps)DOCKER_SOCKET_PATH- Path to Docker socket (overrides platform default)DOCKER_CERT_PATH- Path to Docker certificates directoryDOCKER_TLS_VERIFY- Enable TLS verification (1or0)
- Platform-specific defaults (automatic detection):
- Linux:
/var/run/docker.sock - macOS:
/var/run/docker.sock(or~/.docker/run/docker.sockif available) - Windows:
//./pipe/docker_engine
Windows Configuration
On Windows, Docker Desktop uses named pipes. The server automatically detects Windows and uses the correct path. You can also explicitly set:
# Using environment variable
set DOCKER_SOCKET_PATH=//./pipe/docker_engine
Or using DOCKER_HOST
set DOCKER_HOST=npipe:////./pipe/docker_engine
Remote Docker Host
To connect to a remote Docker host:
# Linux/macOS
export DOCKER_HOST=tcp://192.168.1.100:2376 export DOCKER_TLS_VERIFY=1 export DOCKER_CERT_PATH=/path/to/certs
Windows
set DOCKER_HOST=tcp://192.168.1.100:2376 set DOCKER_TLS_VERIFY=1 set DOCKER_CERT_PATH=C:\path\to\certs
Available Tools
Container Tools
docker_list_containers- List all containersdocker_create_container- Create a new containerdocker_start_container- Start a containerdocker_stop_container- Stop a containerdocker_restart_container- Restart a containerdocker_kill_container- Kill a containerdocker_remove_container- Remove a containerdocker_inspect_container- Get container detailsdocker_container_logs- Get container logsdocker_container_stats- Get container statisticsdocker_pause_container- Pause a containerdocker_unpause_container- Unpause a container
Image Tools
docker_list_images- List all imagesdocker_pull_image- Pull an image from registrydocker_push_image- Push an image to registrydocker_tag_image- Tag an imagedocker_remove_image- Remove an imagedocker_inspect_image- Get image detailsdocker_image_history- Get image history
Network Tools
docker_list_networks- List all networksdocker_create_network- Create a networkdocker_remove_network- Remove a networkdocker_inspect_network- Get network detailsdocker_connect_container- Connect container to networkdocker_disconnect_container- Disconnect container from network
Volume Tools
docker_list_volumes- List all volumesdocker_create_volume- Create a volumedocker_remove_volume- Remove a volumedocker_inspect_volume- Get volume details
System Tools
docker_system_info- Get Docker system informationdocker_version- Get Docker versiondocker_prune_system- Prune all unused resourcesdocker_prune_images- Prune unused imagesdocker_prune_containers- Prune stopped containersdocker_prune_volumes- Prune unused volumesdocker_prune_networks- Prune unused networks
Exec Tools
docker_exec- Execute a command in a containerdocker_inspect_exec- Get exec instance details
Compose Tools
docker_compose_up- Start Docker Compose servicesdocker_compose_down- Stop and remove Docker Compose servicesdocker_compose_ps- List Docker Compose servicesdocker_compose_logs- View output from Docker Compose servicesdocker_compose_config- Parse and validate docker-compose.yml filedocker_compose_build- Build Docker Compose servicesdocker_compose_restart- Restart Docker Compose servicesdocker_compose_stop- Stop Docker Compose servicesdocker_compose_start- Start Docker Compose services
Registry Tools
dockerhub_search- Search Docker Hubdockerhub_get_tags- Get repository tags from Docker Hubdockerhub_authenticate- Authenticate with Docker Hubdockerhub_pull- Pull from Docker Hub