Mcp Server Docker

by hirotoe0112

313 downloads
Not rated
GitHub

About

This document provides a sample configuration (mcp.json) that demonstrates how to run an MCP server inside a Docker container using Docker Compose. It is intended for developers who want to launch a Node.js MCP server via the docker compose exec command.

Details

Author
hirotoe0112
Downloads
313
Categories
Cloud Service

- Sample configuration for running an MCP server in Docker
- Uses Docker Compose to manage container lifecycle

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Mcp Server Docker
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

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

McpServers

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

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"
      ]
    }
  }
}
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.