https://github.com/rrbarrero/mcp-docker-manager
Model Context Protocol that allows a LLM talk with your Docker
https://github.com/rrbarrero/mcp-docker-manager
docker llm mcp
Last synced: 2 months ago
JSON representation
Model Context Protocol that allows a LLM talk with your Docker
- Host: GitHub
- URL: https://github.com/rrbarrero/mcp-docker-manager
- Owner: rrbarrero
- Created: 2025-05-30T10:47:02.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-12T08:19:34.000Z (about 1 year ago)
- Last Synced: 2025-09-04T05:07:56.666Z (9 months ago)
- Topics: docker, llm, mcp
- Language: Python
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MCP Project with Docker Server
This project uses a custom server managed through the `"mcp"` configuration for integration with [MCP](https://marketplace.visualstudio.com/items?itemName=Microsoft.mcp) in Visual Studio Code.
> [!TIP]
> Example: "*launches an http-echo container mapping port 5678*"
## Configuration
Add the following to your MCP configuration (for example, in `.vscode/settings.json` or `.mcp/config.json`):
```json
"mcp": {
"servers": {
"docker-manager": {
"env": {
"DOCKER_SOCKET_PATH": "/path/to/your/docker.sock"
},
"type": "stdio",
"command": "uv",
"args": [
"run",
"--directory",
"/path/to/mcp-docker-manager/src/",
"-m",
"server"
]
}
}
}
```
### Key Parameters
- **DOCKER_SOCKET_PATH**: Path to your Docker socket (e.g. `/var/run/docker.sock`).
- **command**: Set to `uv` to run your Python module.
- **args**:
- `run --directory /path/to/the/project -m src.server`: Runs the `src.server` module from the specified directory.