ChatGPT MCP Server
The ChatGPT MCP Server enables Docker container management through a natural language interface. You can:
List containers: View all Docker containers (including stopped ones if specified)
Create containers: Create and start new containers with customizable image, name, environment variables, and port mappings
Stop containers: Halt running containers by ID or name
Start containers: Launch stopped containers by ID or name
Remove containers: Delete containers (with option to force removal of running ones)
View logs: Retrieve container logs with configurable line count
Execute commands: Run commands inside running containers
Allows managing Docker containers through natural language commands, including operations such as creating, starting, stopping, and monitoring containers.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ChatGPT MCP Server list all running containers"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ChatGPT MCP Server
A Model Context Protocol (MCP) server that provides Docker management capabilities through a custom GPT interface.
Features
Docker container management through natural language
Built on the Model Context Protocol (MCP)
TypeScript implementation
Containerized deployment
Robust error handling and graceful shutdown
Resource management and port handling
Rate limiting and API key authentication
Related MCP server: MCP Development Server
Setup
Installing via Smithery
To install ChatGPT MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @Toowiredd/chatgpt-mcp-server --client claudeManual Installation
Clone the repository
git clone https://github.com/toowiredd/chatgpt-mcp-server.git
cd chatgpt-mcp-serverInstall dependencies
npm installCreate environment file
cp env.example .env
# Edit .env with your configurationBuild the project
npm run buildRunning with Docker
Build the container
npm run docker:buildRun the container
npm run docker:runOr manually:
docker run -d \
-p 3001:3001 \
--env-file .env \
-v /var/run/docker.sock:/var/run/docker.sock \
chatgpt-mcp-serverDevelopment
npm run build- Build the TypeScript codenpm run watch- Watch for changes and rebuildnpm run inspector- Run the MCP inspector tool
Environment Variables
API_KEY- API authentication keyHTTP_PORT- Server port (default: 3001)RATE_LIMIT_REQUESTS- Maximum requests per windowRATE_LIMIT_WINDOW- Window size in milliseconds
Resource Management
The server implements robust resource management:
Graceful shutdown on process signals (SIGINT, SIGTERM, SIGQUIT)
Connection tracking and management
Request timeout handling
Port conflict detection
Keep-alive connection management
Active request tracking and graceful completion
Shutdown Process
The server initiates graceful shutdown on process signals
New connections are rejected
Active requests are allowed to complete (with timeout)
Keep-alive connections are closed
Server ports are properly released
Resources are properly released
Error Handling
Port conflicts are detected and reported
Unhandled rejections and exceptions are caught
Network errors are properly handled
Resource leaks are prevented through proper handling
Timeouts ensure the server doesn't hang during shutdown
License
MIT
Available Tools
7 toolscontainer_createC
Create and start a new Docker container
Inputs: image (required), name, ports, env.
container_execC
Execute a command in a running container
Inputs: container (required), command (required).
container_logsC
Get container logs
Inputs: container (required), tail.
container_removeC
Remove a container
Inputs: container (required), force.
containers_listC
List all Docker containers
Inputs: all.
container_startC
Start a stopped container
Inputs: container (required).
container_stopC
Stop a running container
Inputs: container (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a clearly distinct purpose targeting specific Docker container operations: create, execute, logs, remove, list, start, and stop. There is no overlap or ambiguity between these functions, making tool selection straightforward for an agent.
All tools follow a consistent 'container_verb' or 'containers_verb' pattern with snake_case, except for 'containers_list' which uses plural 'containers' for listing multiple items. This minor deviation is logical and maintains overall naming predictability across the set.
With 7 tools, this server is well-scoped for Docker container management, covering essential lifecycle operations without being overly sparse or bloated. Each tool serves a clear and necessary function in the domain.
The tool set provides complete CRUD/lifecycle coverage for Docker containers: create, start, stop, execute commands, view logs, list, and remove. There are no obvious gaps, enabling agents to handle typical container workflows without dead ends.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
The Mercado Pago MCP Server implements the Model Context Protocol to provide AI agents and LLMs with access to Mercado Pago's APIs and tools within compatible development environments. It acts as an intermediary that translates Mercado Pago resources into executable functions (tools) that AI applications can invoke to perform actions and automate flows. The server simplifies integration, enables using documentation to implement or improve code, and optimizes operations through natural language interactions without manual implementations.
MCP server for AI dialogue using various LLM models via AceDataCloud
Related MCP Servers
- AlicenseBqualityDmaintenanceA powerful Model Context Protocol (MCP) server for Docker operations, enabling seamless container and compose stack management through Claude AI.4504MIT
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables Claude to manage software development projects with complete context awareness and code execution through Docker environments.4-
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that enables LLMs to run ANY code safely in isolated Docker containers.125MIT
- FlicenseNot gradedqualityDmaintenanceA TypeScript server that fully implements the Model Context Protocol (MCP) standard, providing API access to Docker CLI operations like build, run, stop, and image management through compatible AI clients.-