Fire in da houseTop Tip:Most people pay up to $340 per month for Perplexity, MidJourney, Runway, ChatGPT, and more - but you can get them all your AI tools for $15 with Galaxy. It's free to test!Fire in da houseCheck it out

chatgpt-mcp-server

MCP.Pizza Chef: Toowiredd

chatgpt-mcp-server is a Model Context Protocol server that facilitates Docker container management through natural language commands using a custom GPT interface. It is implemented in TypeScript, supports containerized deployment, and includes features like robust error handling, resource and port management, rate limiting, and API key authentication for secure and efficient operation.

Use This MCP server To

Manage Docker containers using natural language commands Automate Docker container lifecycle operations via GPT interface Integrate Docker management into AI-enhanced workflows Secure Docker control with API key authentication Deploy and manage containerized MCP servers easily Handle resource allocation and port management for Docker Implement rate limiting for controlled Docker API access

README

ChatGPT MCP Server

smithery badge

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:

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

Manual Installation

  1. Clone the repository
git clone https://github.com/toowiredd/chatgpt-mcp-server.git
cd chatgpt-mcp-server
  1. Install dependencies
npm install
  1. Create environment file
cp env.example .env
# Edit .env with your configuration
  1. Build the project
npm run build

Running with Docker

  1. Build the container
npm run docker:build
  1. Run the container
npm run docker:run

Or manually:

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

Development

  • npm run build - Build the TypeScript code
  • npm run watch - Watch for changes and rebuild
  • npm run inspector - Run the MCP inspector tool

Environment Variables

  • API_KEY - API authentication key
  • HTTP_PORT - Server port (default: 3001)
  • RATE_LIMIT_REQUESTS - Maximum requests per window
  • RATE_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

  1. The server initiates graceful shutdown on process signals
  2. New connections are rejected
  3. Active requests are allowed to complete (with timeout)
  4. Keep-alive connections are closed
  5. Server ports are properly released
  6. 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

chatgpt-mcp-server FAQ

How do I install chatgpt-mcp-server?
You can install it automatically via Smithery CLI or manually by cloning the GitHub repo and installing dependencies.
What programming language is chatgpt-mcp-server written in?
It is implemented in TypeScript for robust and maintainable code.
How does chatgpt-mcp-server secure Docker management?
It uses API key authentication and rate limiting to ensure secure and controlled access.
Can chatgpt-mcp-server handle errors gracefully?
Yes, it includes robust error handling and supports graceful shutdown procedures.
Is chatgpt-mcp-server containerized?
Yes, it supports containerized deployment for easy setup and scalability.
What kind of Docker operations can I perform?
You can manage container lifecycle operations such as start, stop, restart, and status checks via natural language.
How does chatgpt-mcp-server manage resources?
It includes resource management and port handling to optimize Docker container usage.
Can chatgpt-mcp-server be integrated with different LLM providers?
Yes, it is built on MCP and can work with models like OpenAI GPT, Anthropic Claude, and Google Gemini.