Docker Manager MCP server

Enables natural language-driven Docker container management, including operations, log monitoring, and command execution.
Back to servers
Provider
toowiredd
Release date
Feb 14, 2025
Language
TypeScript
Stats
9 stars

This MCP server enables Docker container management through natural language using the Model Context Protocol (MCP). It provides a customized interface for managing Docker operations through your ChatGPT conversations.

Installation Options

Installing via Smithery

The easiest way to install ChatGPT MCP Server is through Smithery:

npx -y @smithery/cli install @Toowiredd/chatgpt-mcp-server --client claude

Manual Installation

If you prefer to install manually, follow these steps:

  1. Clone the repository:

    git clone https://github.com/toowiredd/chatgpt-mcp-server.git
    cd chatgpt-mcp-server
    
  2. Install dependencies:

    npm install
    
  3. Create and configure your environment file:

    cp env.example .env
    # Edit .env with your configuration
    
  4. Build the project:

    npm run build
    

Running the Server

Using Docker (Recommended)

The simplest way to run the server is using Docker:

  1. Build the container:

    npm run docker:build
    
  2. Run the container:

    npm run docker:run
    

Alternatively, you can run the Docker container manually with:

docker run -d \
  -p 3001:3001 \
  --env-file .env \
  -v /var/run/docker.sock:/var/run/docker.sock \
  chatgpt-mcp-server

Configuration

Environment Variables

Configure your server by setting these environment variables in your .env file:

  • API_KEY - API authentication key (required for security)
  • HTTP_PORT - Server port (defaults to 3001)
  • RATE_LIMIT_REQUESTS - Maximum requests per window
  • RATE_LIMIT_WINDOW - Window size in milliseconds

Key Features

The server provides several capabilities:

  • Docker Management: Control Docker containers through natural language
  • Authentication: API key-based security
  • Rate Limiting: Protect against excessive usage
  • Resource Management: Handles connections, requests, and shutdowns properly

Resource Management

The server implements robust handling of system resources:

  • Graceful shutdown when receiving system signals
  • Connection tracking to prevent resource leaks
  • Request timeout management
  • Automatic detection of port conflicts
  • Proper management of keep-alive connections

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later