Community MCP server for managing Docker containers.
Automated score · from 3 of 5 checks · v1.1-github-security · today
npx -y @mcp-community/server-docker
{
"mcpServers": {
"docker": {
"args": [
"-y",
"@mcp-community/server-docker"
],
"command": "npx"
}
}
}[](https://agentforge.community/server/docker?ref=badge)
<a href="https://agentforge.community/server/docker?ref=badge"><img src="https://agentforge.community/api/badge/docker" alt="Elenkat fuq AgentForge" /></a>
Get logs from a container
{
"type": "object",
"required": [
"container_id"
],
"properties": {
"tail": {
"type": "integer"
},
"container_id": {
"type": "string"
}
}
}// Input
{
"tail": 50,
"container_id": "abc"
}// Output
{
"logs": "2026-03-10 Starting nginx..."
}Create a new container from image
{
"type": "object",
"required": [
"image"
],
"properties": {
"name": {
"type": "string"
},
"image": {
"type": "string"
}
}
}// Input
{
"name": "web",
"image": "nginx:latest"
}// Output
{
"id": "abc123"
}Community MCP server for managing Docker containers.
Docker provides 4 tools including container_logs, create_container, exec_command, and 1 more.
Yes, Docker is completely free to use with no usage limits on the free tier.
You can install Docker using the following command: npx -y @mcp-community/server-docker. After installation, add the provided config snippet to your Claude Desktop or Cursor configuration.
Execute command inside a container
{
"type": "object",
"required": [
"container_id",
"command"
],
"properties": {
"command": {
"type": "array"
},
"container_id": {
"type": "string"
}
}
}// Input
{
"command": [
"ls",
"-la"
],
"container_id": "abc"
}// Output
{
"output": "total 8\ndrwxr-xr-x...",
"exit_code": 0
}List Docker containers
{
"type": "object",
"properties": {
"all": {
"type": "boolean"
}
}
}// Input
{
"all": true
}// Output
{
"containers": [
{
"id": "abc",
"name": "web",
"status": "running"
}
]
}Docker is listed under the Development Tools category in the AgentForge MCP registry.
To connect Docker, click the "Connect Agent" button on this page to get the configuration snippet. Add it to your MCP client (Claude Desktop, Cursor, or any MCP-compatible tool). Your AI agent will then have access to all of Docker's tools via the Model Context Protocol.