OrbStack MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@OrbStack MCP Server list all my running docker containers and linux machines"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
OrbStack MCP Server
通过 MCP(Model Context Protocol)协议控制 OrbStack,让 AI 助手直接管理你的 Docker 容器、Linux 虚拟机和 Kubernetes 集群。
前置要求
macOS(OrbStack 仅支持 macOS)
OrbStack 已安装
Python >= 3.10
orb和docker命令在 PATH 中可用
Related MCP server: Docker & Kubernetes MCP Server
安装
# 克隆或下载项目
cd orbstack-mcp
# 安装依赖
pip install -e .使用方式
在 Claude Desktop 中配置
编辑 ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"orbstack": {
"command": "python",
"args": ["-m", "orbstack_mcp.server"],
"cwd": "/path/to/orbstack-mcp/src"
}
}
}或者使用安装后的命令:
{
"mcpServers": {
"orbstack": {
"command": "orbstack-mcp"
}
}
}在 Claude Code 中配置
claude mcp add orbstack -- python -m orbstack_mcp.server可用工具
系统管理
工具 | 说明 |
| 查看 OrbStack 运行状态 |
| 获取版本信息 |
| 启动 OrbStack |
| 停止 OrbStack |
Linux 机器管理
工具 | 说明 |
| 列出所有 Linux 机器 |
| 创建新的 Linux 机器 |
| 启动 Linux 机器 |
| 停止 Linux 机器 |
| 删除 Linux 机器 |
| 查看机器详细信息 |
| 在机器中执行命令 |
| 推送文件到机器 |
| 从机器拉取文件 |
Docker 容器管理
工具 | 说明 |
| 列出容器 |
| 运行新容器 |
| 停止容器 |
| 删除容器 |
| 重启容器 |
| 查看容器日志 |
| 在容器中执行命令 |
| 列出本地镜像 |
| 拉取镜像 |
| 查看容器详情 |
Docker Compose
工具 | 说明 |
| 启动 Compose 项目 |
| 停止 Compose 项目 |
| 查看 Compose 服务状态 |
Kubernetes
工具 | 说明 |
| 启动 K8s 集群 |
| 停止 K8s 集群 |
| 查看 K8s 状态 |
架构说明
本 MCP 服务器通过封装 orb / orbctl / docker CLI 命令实现对 OrbStack 的控制。
使用 stdio 传输方式,适合本地集成场景。
许可证
MIT
Available Tools
29 toolsorbstack_compose_downCIdempotent
使用 Docker Compose 停止并移除服务。
Args: params: 包含项目目录
Returns: str: 停止结果
Inputs: params (required). Returns: result
orbstack_compose_psARead-onlyIdempotent
查看 Docker Compose 项目中各服务的运行状态。
Args: params: 包含项目目录
Returns: str: 服务状态列表
Inputs: params (required). Returns: result
orbstack_compose_upA
使用 Docker Compose 启动服务。
在指定目录中执行 docker compose up -d。
Args: params: 包含项目目录和可选的服务名
Returns: str: 启动结果
Inputs: params (required). Returns: result
orbstack_docker_execC
在运行中的 Docker 容器中执行命令。
Args: params: 包含容器标识和要执行的命令
Returns: str: 命令输出
Inputs: params (required). Returns: result
orbstack_docker_imagesBRead-onlyIdempotent
列出本地所有 Docker 镜像。
Returns: str: 镜像列表(格式化表格)
Inputs: no named parameters. Returns: result
orbstack_docker_inspectBRead-onlyIdempotent
查看 Docker 容器的详细配置和状态信息。
返回 JSON 格式的完整容器信息,包括网络、挂载、环境变量等。
Args: params: 包含容器 ID 或名称
Returns: str: 容器详细信息(JSON)
Inputs: params (required). Returns: result
orbstack_docker_logsCRead-onlyIdempotent
获取 Docker 容器的日志输出。
Args: params: 包含容器标识和日志行数
Returns: str: 容器日志
Inputs: params (required). Returns: result
orbstack_docker_psARead-onlyIdempotent
列出 Docker 容器。
默认只显示运行中的容器,设置 all=True 显示全部。
Args: params: 包含是否显示所有容器的选项
Returns: str: 容器列表(格式化表格)
Inputs: params (required). Returns: result
orbstack_docker_pullCIdempotent
从镜像仓库拉取 Docker 镜像。
Args: params: 包含镜像名称
Returns: str: 拉取结果
Inputs: params (required). Returns: result
orbstack_docker_restartCIdempotent
重启 Docker 容器。
Args: params: 包含容器 ID 或名称
Returns: str: 重启结果
Inputs: params (required). Returns: result
orbstack_docker_rmADestructive
删除 Docker 容器。
容器必须已停止才能删除。如需强制删除运行中的容器请先停止。
Args: params: 包含容器 ID 或名称
Returns: str: 删除结果
Inputs: params (required). Returns: result
orbstack_docker_runB
创建并运行一个新的 Docker 容器。
支持端口映射、卷挂载、环境变量等配置。
Args: params: 容器运行参数
Returns: str: 容器 ID 或运行输出
Inputs: params (required). Returns: result
orbstack_docker_stopAIdempotent
停止运行中的 Docker 容器。
Args: params: 包含容器 ID 或名称
Returns: str: 停止结果
Inputs: params (required). Returns: result
orbstack_k8s_startAIdempotent
启动 OrbStack 内置的 Kubernetes 集群。
OrbStack 提供轻量级的单节点 K8s 集群。
Returns: str: 启动结果
Inputs: no named parameters. Returns: result
orbstack_k8s_statusARead-onlyIdempotent
查看 OrbStack Kubernetes 集群的状态。
Returns: str: K8s 集群状态
Inputs: no named parameters. Returns: result
orbstack_k8s_stopBIdempotent
停止 OrbStack 的 Kubernetes 集群。
Returns: str: 停止结果
Inputs: no named parameters. Returns: result
orbstack_machine_createA
创建一个新的 Linux 虚拟机。
支持 ubuntu, debian, fedora, arch, alpine 等多种发行版。 在 Apple Silicon 上可通过 arch 参数指定 amd64 来运行 Intel 架构。
Args: params: 创建参数,包括发行版名称、可选的机器名和架构
Returns: str: 创建结果
Inputs: params (required). Returns: result
orbstack_machine_deleteADestructive
删除指定的 Linux 机器。
警告: 此操作不可撤销,机器中的所有数据将被永久删除。
Args: params: 包含机器名称
Returns: str: 删除结果
Inputs: params (required). Returns: result
orbstack_machine_infoBRead-onlyIdempotent
获取指定 Linux 机器的详细信息。
包括发行版、架构、状态、IP 地址等。
Args: params: 包含机器名称
Returns: str: 机器详细信息
Inputs: params (required). Returns: result
orbstack_machine_listARead-onlyIdempotent
列出所有 OrbStack Linux 机器及其状态。
显示机器名称、发行版、架构和运行状态。
Returns: str: 机器列表信息
Inputs: no named parameters. Returns: result
orbstack_machine_pullC
从 Linux 机器拉取文件到 macOS。
Args: params: 包含源文件路径、可选的目标路径和机器名
Returns: str: 传输结果
Inputs: params (required). Returns: result
orbstack_machine_pushC
将文件从 macOS 推送到 Linux 机器。
Args: params: 包含源文件路径、可选的目标路径和机器名
Returns: str: 传输结果
Inputs: params (required). Returns: result
orbstack_machine_runA
在 Linux 机器中执行命令并返回输出。
可以指定目标机器和执行用户。不指定机器时使用默认机器。
Args: params: 包含要执行的命令、可选的机器名和用户
Returns: str: 命令执行输出
Inputs: params (required). Returns: result
orbstack_machine_startCIdempotent
启动指定的 Linux 机器。
Args: params: 包含机器名称
Returns: str: 启动结果
Inputs: params (required). Returns: result
orbstack_machine_stopBIdempotent
停止指定的 Linux 机器。
Args: params: 包含机器名称
Returns: str: 停止结果
Inputs: params (required). Returns: result
orbstack_startAIdempotent
启动 OrbStack 服务。
如果 OrbStack 已在运行,此操作无副作用。
Returns: str: 启动结果
Inputs: no named parameters. Returns: result
orbstack_statusARead-onlyIdempotent
获取 OrbStack 的运行状态信息。
返回 OrbStack 是否正在运行、版本等基本状态。
Returns: str: OrbStack 状态信息
Inputs: no named parameters. Returns: result
orbstack_stopAIdempotent
停止 OrbStack 服务。
这将停止所有运行中的容器和 Linux 机器。
Returns: str: 停止结果
Inputs: no named parameters. Returns: result
orbstack_versionARead-onlyIdempotent
获取 OrbStack 版本号。
Returns: str: OrbStack 版本信息
Inputs: no named parameters. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 29 tools
Each tool has a clearly distinct purpose with no ambiguity. The tools are organized into logical groups (Docker, Compose, Kubernetes, Linux machines, and core OrbStack operations) with each tool performing a specific, well-defined action on a specific resource. For example, orbstack_docker_stop, orbstack_docker_restart, and orbstack_docker_rm are clearly differentiated in their lifecycle management functions.
All tools follow a perfectly consistent naming pattern: 'orbstack_' prefix + resource category (docker/compose/k8s/machine) + action verb (in snake_case). This creates a predictable hierarchy (e.g., orbstack_docker_ps, orbstack_docker_run, orbstack_machine_list, orbstack_machine_start) that makes the tool set immediately understandable and navigable.
With 29 tools, the count feels heavy for a single server, though it covers multiple domains (Docker, Compose, Kubernetes, VM management, and core operations). While each tool appears useful, the high number could overwhelm agents and suggests potential for consolidation (e.g., some Docker operations might be combined with parameters). It's borderline excessive but justified by the broad scope.
The tool set provides complete CRUD/lifecycle coverage for all supported domains. For Docker: full container/image management (run, stop, restart, rm, ps, images, inspect, logs, exec, pull). For Linux machines: create, delete, start, stop, list, info, run commands, push/pull files. For Compose/Kubernetes: up/down/ps and start/stop/status respectively. Core OrbStack operations (start/stop/status/version) round out the surface with no apparent gaps.
Maintenance
Related MCP Connectors
Read-only Linux server and Docker monitoring for AI assistants: CPU, memory, disk, network.
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Inspect and control your Northflank projects, services, jobs, and builds from your AI assistant.
Operate GitHub from your AI assistant: repos, PRs, issues, Actions. Previews and read-only mode.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Docker containers, images, networks, volumes, and Compose services through the Model Context Protocol. It supports system operations, command execution within containers, and integration with Docker Hub and GitHub Container Registry.94 npm2MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to manage Docker containers and Kubernetes resources through natural language, supporting operations like container management, image building, and pod/deployment/service management.9MIT
- AlicenseCqualityDmaintenanceEnables AI assistants to manage Docker containers, images, networks, volumes, and Docker Compose services through the Model Context Protocol.27MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Docker containers and images, including starting, stopping, listing, and building operations.2-