Manage dev container environments via MCP (Docker, DevPod, Codespaces).
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Devcontainer MCP.
auth_statusCheck auth for a provider β returns handles, accounts, scopes
auth_loginInitiate login or refresh scopes β browser + device code flow
auth_selectSwitch the active account for a provider
auth_logoutRevoke credentials for an account
devpod_upCreate and start a workspace from a git URL, local path, or image
devpod_stopStop a running workspace
Give your AI agent its own dev environment β not yours.
devcontainer-mcp is an MCP server that lets AI coding agents create, manage, and work inside dev containers across three backends: local Docker, DevPod, and GitHub Codespaces. The agent builds, tests, and ships code in an isolated container β your laptop stays clean.
Works with GitHub Copilot, Claude, Cursor, opencode, and any MCP-compatible client.
When AI agents write code, they need to run it somewhere. Today that means your host machine:
The devcontainer spec already defines reproducible, container-based dev environments. Every major project ships a .devcontainer/devcontainer.json. But AI agents can't use them β until now.
devcontainer-mcp exposes 45 MCP tools that let any AI agent:
How it works: The binary runs inside WSL; MCP clients on Windows launch it via
wsl ~/.local/bin/devcontainer-mcp serve. The stdio transport works transparently across the WSL boundary. WSL 2 is required β install it withwsl --installif you haven't already.
Backend CLIs (devpod, devcontainer, gh) are detected at runtime β if one is missing, the MCP server returns a helpful error with install instructions.
Binaries available for linux-x64, linux-arm64, darwin-x64, and darwin-arm64.
The installer configures two agent hooks (Claude Code & GitHub Copilot CLI) that activate only in a directory containing .devcontainer/devcontainer.json:
devcontainer-guard (PreToolUse) β blocks shell/command execution on the host so the agent routes builds, tests, and runs through the MCP tools instead. Host-safe commands (git, gh) are allowlisted, and both hooks fail open β if jq is missing or a payload can't be parsed, commands are allowed rather than blocked.devcontainer-skill-loader (SessionStart) β injects the SKILL.md usage guide as context.Sometimes a project ships a stale or unmaintained .devcontainer that you don't actually want to route work through. To disable both hooks for that repo, drop a marker file at the repo root:
When .devcontainer-mcp-disable is present, the guard allows host commands through and the skill-loader skips context injection β the agent works locally as if no devcontainer were declared. Commit it (or add it to .gitignore for a local-only opt-out).
One-off bypass: to run a single host command without disabling the guard, include USER_CONFIRMED_HOST_OPERATION=1 anywhere in the command.
| Backend | Best for | Requires | Auth needed? |
|---|---|---|---|
devcontainer CLI (devcontainer_*) | Local Docker β fast, simple | @devcontainers/cli + Docker | No |
DevPod (devpod_*) | Multi-cloud: Docker, K8s, AWS, Azure, GCP | DevPod CLI | Optional (cloud providers) |
Codespaces (codespaces_*) | GitHub-hosted cloud environments | gh CLI | Yes (auth handle) |
The agent never sees raw tokens. Instead:
auth_status(provider) β list available accounts and scopesauth_login(provider, scopes?) β initiate login, opens browser, handles device codesauth_select(id) β switch the active accountauth_logout(id) β revoke credentialsCodespaces tools require an auth handle (e.g. "github-aniongithub"). The MCP server resolves it to the real token on each call via the CLI's native keyring.
Supported providers: GitHub, AWS, Azure, GCP, Kubernetes
| Tool | Description |
|---|---|
auth_status | Check auth for a provider β returns handles, accounts, scopes |
auth_login | Initiate login or refresh scopes β browser + device code flow |
auth_select | Switch the active account for a provider |
auth_logout | Revoke credentials for an account |
| Tool | Description |
|---|---|
devpod_up | Create and start a workspace from a git URL, local path, or image |
devpod_stop | Stop a running workspace |
devpod_delete | Delete a workspace and its resources |
devpod_build | Build a workspace image without starting it |
devpod_status | Get workspace state (Running, Stopped, Busy, NotFound) |
devpod_list | List all workspaces with IDs, sources, providers, and status |
devpod_ssh | Execute a command inside a workspace via SSH |
devpod_logs | Get workspace logs |
devpod_provider_list | List all configured providers |
devpod_provider_add | Add a new provider |
devpod_provider_delete | Remove a provider |
devpod_context_list | List all contexts |
devpod_context_use | Switch to a different context |
devpod_container_inspect | Docker inspect β labels, ports, mounts, state |
devpod_container_logs | Stream container logs via Docker API |
devpod_file_read | Read file content with optional line range |
devpod_file_write | Create or overwrite a file (auto-creates parent dirs) |
devpod_file_edit | Surgical string replacement β old_str β new_str |
devpod_file_list | List directory contents (non-hidden, 2 levels deep) |
| Tool | Description |
|---|---|
devcontainer_up | Create and start a local dev container |
devcontainer_exec | Execute a command inside a running dev container |
devcontainer_build | Build a dev container image |
devcontainer_read_config | Read merged devcontainer configuration as JSON |
devcontainer_list_configs | Discover all devcontainer.json files in a workspace (single + multi-container) |
devcontainer_stop | Stop a dev container (via Docker API) |
devcontainer_remove | Remove a dev container and its resources |
devcontainer_status | Get dev container state by workspace folder |
devcontainer_file_read | Read file content with optional line range |
devcontainer_file_write | Create or overwrite a file (auto-creates parent dirs) |
devcontainer_file_edit | Surgical string replacement β old_str β new_str |
devcontainer_file_list | List directory contents (non-hidden, 2 levels deep) |
auth handleFactual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/devcontainer-mcp)<a href="https://allmcps.com/mcp/devcontainer-mcp"><img src="https://allmcps.com/api/badge/devcontainer-mcp?style=directory" alt="Devcontainer MCP on AllMCPs" /></a>