mcpField
M
Mcp Server Docker

Mcp Server Docker

Local
github.com/hirotoe0112Cloud & Infra0Updated 82w ago

About Mcp Server Docker

Sample for creating MCP server with Docker

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"docker-hirotoe0112": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"compose"
]
}
}
}
Run commanddocker run -i --rm compose

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
ocicompose

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

Sample mcp.json

{
  "mcpServers": {
    "test-server": {
      "command": "docker",
      "args": [
        "compose",
        "-f",
        "C:\\your-docker-directory\\docker-compose.yml",
        "exec",
        "-i",
        "mcp-server",
        "node",
        "build/index.js"
      ]
    }
  }
}

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.