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.
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
Setup
Installing via Smithery
To install ChatGPT MCP Server for Claude Desktop automatically via Smithery:
Manual Installation
- Clone the repository
- Install dependencies
- Create environment file
- Build the project
Running with Docker
- Build the container
- Run the container
Or manually:
Development
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
You must be authenticated.
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Tools
A Model Context Protocol server that enables Docker container management through natural language interactions using a custom GPT interface.
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA powerful Model Context Protocol (MCP) server for Docker operations, enabling seamless container and compose stack management through Claude AI.Last updated -4160PythonMIT License
- -securityFlicense-qualityProvides a scalable, containerized infrastructure for deploying and managing Model Context Protocol servers with monitoring, high availability, and secure configurations.Last updated -
- -securityFlicense-qualityA Model Context Protocol server that enables Claude to manage software development projects with complete context awareness and code execution through Docker environments.Last updated -1Python
- -securityAlicense-qualityAn MCP server that allows managing Docker containers through natural language, enabling users to compose, introspect, and debug containers without running commands themselves.Last updated -440PythonGPL 3.0