ChatGPT MCP 服务器
通过自定义 GPT 接口提供 Docker 管理功能的模型上下文协议 (MCP) 服务器。
特征
通过自然语言管理 Docker 容器
基于模型上下文协议(MCP)
TypeScript 实现
容器化部署
强大的错误处理和正常关机
资源管理和端口处理
速率限制和 API 密钥认证
设置
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 ChatGPT MCP 服务器:
手动安装
克隆存储库
安装依赖项
创建环境文件
构建项目
使用 Docker 运行
构建容器
运行容器
或者手动:
发展
npm run build
构建 TypeScript 代码npm run watch
- 观察变化并重建npm run inspector
- 运行 MCP 检查器工具
环境变量
API_KEY
- API 认证密钥HTTP_PORT
- 服务器端口(默认值:3001)RATE_LIMIT_REQUESTS
- 每个窗口的最大请求数RATE_LIMIT_WINDOW
- 窗口大小(以毫秒为单位)
资源管理
服务器实现了强大的资源管理:
进程信号(SIGINT、SIGTERM、SIGQUIT)正常关闭
连接跟踪和管理
请求超时处理
端口冲突检测
保持连接管理
主动请求跟踪和优雅完成
关机流程
服务器根据进程信号启动正常关闭
新连接被拒绝
允许活动请求完成(有超时)
保持连接已关闭
服务器端口已正确释放
资源得到适当释放
错误处理
检测并报告端口冲突
捕获未处理的拒绝和异常
网络错误得到妥善处理
通过适当的处理可以防止资源泄漏
超时确保服务器在关闭期间不会挂起
执照
麻省理工学院
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
模型上下文协议服务器,使用自定义 GPT 接口通过自然语言交互实现 Docker 容器管理。
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 -4390MIT License
- -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 -03
- -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 -611GPL 3.0
- -securityAlicense-qualityA Model Context Protocol server that provides tools for interacting with Docker images, containers, and registries, enabling AI assistants to search, analyze, and manage Docker resources through a standardized interface.Last updated -MIT License