Arcane Docker MCP Server
Provides tools for managing Docker environments, including containers, images, volumes, networks, and Docker Compose stacks.
Click on "Install 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., "@Arcane Docker MCP Serverlist containers in dev environment"
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.
Arcane Docker MCP Server
A Model Context Protocol (MCP) server for managing Docker environments through Arcane, deployed on Cloudflare Workers.
This MCP server provides Claude Desktop and other MCP clients with tools to manage Docker containers, images, volumes, networks, and Docker Compose stacks via Arcane's REST API.
What This Project Is
Arcane is a Docker management platform that provides a unified API for managing multiple Docker environments. This MCP server exposes Arcane's functionality as MCP tools, allowing you to interact with your Docker infrastructure through natural language conversations with Claude.
Built on Cloudflare Workers using the official Cloudflare agents package, this server provides a scalable, globally distributed way to manage your Docker resources.
Related MCP server: mcp-server-docker
Available Tools
Tool Name | Description | Required Inputs |
| List all Docker environments managed by Arcane |
|
| Get details of a specific environment |
|
| Create a new Docker environment |
|
| Update an existing environment |
|
| Delete a Docker environment |
|
| List Docker Compose stacks in an environment |
|
| Get details of a specific stack |
|
| Deploy a new Docker Compose stack |
|
| Update an existing stack |
|
| Start a Docker Compose stack |
|
| Stop a Docker Compose stack |
|
| Restart a Docker Compose stack |
|
| Pull images for a stack |
|
| Delete a Docker Compose stack |
|
| List all containers in an environment |
|
| Get details of a specific container |
|
| Start a container |
|
| Stop a container |
|
| Restart a container |
|
| Force kill a container |
|
| List all Docker images in an environment |
|
| Pull a Docker image |
|
| Remove a Docker image |
|
| Remove unused Docker images |
|
| List all Docker volumes in an environment |
|
| Get details of a specific volume |
|
| Remove a Docker volume |
|
| Remove unused Docker volumes |
|
| List all Docker networks in an environment |
|
| Get details of a specific network |
|
| Remove a Docker network |
|
| Remove unused Docker networks |
|
| List all Docker Compose templates |
|
| Get details of a specific template |
|
| Create a new template |
|
| Update an existing template |
|
| Delete a template |
|
| Get the Arcane server version | - |
Note: For tools that accept both *Id and *Name parameters (e.g., environmentId vs environmentName), you only need to provide one. The server will automatically resolve names to IDs via API calls.
Local Development Setup
Prerequisites
Bun runtime
An Arcane instance running on port 3552 (or any accessible port)
An Arcane API key
Setup Steps
Clone the repository
git clone https://github.com/your-username/arcane-mcp-server.git
cd arcane-mcp-serverInstall dependencies
bun installConfigure local secrets
Copy the example environment file and fill in your values:
cp .dev.vars.example .dev.varsEdit .dev.vars with your Arcane API key:
ARCANE_API_KEY=your-api-key-hereStart the dev server
bun run devThe server will start on http://localhost:8788.
Connect with MCP Inspector
In a second terminal:
bunx @modelcontextprotocol/inspector@latestConnect the inspector to http://localhost:8788/mcp to verify:
All tools appear under List Tools
arcane_environment_listreturns real data from your Arcane instancearcane_stack_listwithenvironmentName(not ID) works via name resolutionarcane_container_logsreturns log contentInvalid tool inputs return proper error responses
Connecting Claude Desktop via mcp-remote
To use this MCP server with Claude Desktop, configure it in your Claude Desktop settings:
Install the
mcp-remoteclient if you haven't already:
bunx @modelcontextprotocol/inspector@latestAdd the following to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"arcane": {
"command": "bunx",
"args": ["mcp-remote", "https://arcane-mcp-server.<account>.workers.dev/mcp"]
}
}
}Replace <account> with your Cloudflare account identifier.
Connecting OpenCode
To use this MCP server with OpenCode, configure it in your OpenCode settings:
Open OpenCode Settings → MCP Servers
Add a new MCP server with the following configuration:
{
"name": "Arcane",
"url": "https://arcane-mcp-server.<account>.workers.dev/mcp",
"transport": "sse"
}Replace <account> with your Cloudflare account identifier.
OpenCode Usage Examples
Once connected, you can interact with your Arcane Docker infrastructure through natural language conversations in OpenCode:
Example 1: List environments
User: Show me all my Docker environments
OpenCode: [Calls arcane_environment_list]
Here are your Docker environments:
- production (connected)
- staging (connected)
- dev (connected)Example 2: Deploy a stack using a template
User: Deploy a WordPress stack to my production environment
OpenCode: [Calls arcane_template_list, then arcane_stack_deploy]
Deploying WordPress to production...
Stack 'wordpress' deployed successfully in environment 'production'Example 3: Start/stop containers
User: Stop the database container in staging
OpenCode: [Calls arcane_environment_list, arcane_container_list, then arcane_container_stop]
Container 'db' stopped successfully in environment 'staging'Example 4: Pull and prune images
User: Pull the latest nginx image and clean up unused images
OpenCode: [Calls arcane_image_pull, then arcane_image_prune]
Pulled nginx:latest...
Pruned 3 unused images, reclaimed 1.2GBExample 5: Inspect a volume
User: Show me details of the data volume
OpenCode: [Calls arcane_volume_inspect]
Volume 'data' details:
- Driver: local
- Mountpoint: /var/lib/docker/volumes/data
- Created: 2024-01-15T10:30:00Z
- Size: 5.2GBSecrets Setup
Secrets are managed through the Cloudflare Dashboard:
Navigate to Cloudflare Dashboard → Workers & Pages
Select your
arcane-mcp-serverworkerGo to Settings → Variables and Secrets
Add the following secret (type: Secret):
Name | Description |
| Your Arcane API key |
The Arcane host and port are configured via the Cloudflare VPC service binding (service_id in wrangler.jsonc) and do not need to be set here.
Deployment via Cloudflare Workers Builds
This project uses Cloudflare Workers Builds for continuous deployment from Git.
Initial Setup
Connect your repository
Cloudflare Dashboard → Workers & Pages → Create application → Import a repository → select your GitHub repo.
Configure build settings
Build command:
bun run type-checkDeploy command:
bunx wrangler deploy
Set secrets
Follow the Secrets Setup instructions above.
Verify Worker name
The
nameinwrangler.jsoncmust exactly match the Worker name in the Cloudflare dashboard. If there's a mismatch, the build will fail.
Deploying
Simply push to your main branch:
git push origin mainMonitor the build: Dashboard → Workers & Pages → your worker → Builds → View build history.
Running Tests
Run the test suite:
bun testRun tests in watch mode:
bun run test:watchAll tests must pass before pushing to the repository.
Architecture
This project follows the Cloudflare agents package pattern:
ArcaneAgent (Durable Object): Manages MCP sessions using WebSocket hibernation
ArcaneClient: Typed HTTP client for the Arcane REST API
Tool Registrations: MCP tools organized by domain (environments, stacks, containers, etc.)
Name Resolution: Automatic resolution of resource names to IDs for user-friendly interactions
The Durable Object pattern is required by the agents package and handles:
WebSocket session management
Session state persistence
Both SSE and Streamable HTTP transports automatically
Cold starts and reconnections seamlessly
License
See LICENSE file for details.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cougz/arcane-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server