Skip to main content
Glama

ChatGPT MCP Server

ChatGPT MCP 服务器

通过自定义 GPT 接口提供 Docker 管理功能的模型上下文协议 (MCP) 服务器。

特征

  • 通过自然语言管理 Docker 容器
  • 基于模型上下文协议(MCP)
  • TypeScript 实现
  • 容器化部署
  • 强大的错误处理和正常关机
  • 资源管理和端口处理
  • 速率限制和 API 密钥认证

设置

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装 ChatGPT MCP 服务器:

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

手动安装

  1. 克隆存储库
git clone https://github.com/toowiredd/chatgpt-mcp-server.git cd chatgpt-mcp-server
  1. 安装依赖项
npm install
  1. 创建环境文件
cp env.example .env # Edit .env with your configuration
  1. 构建项目
npm run build

使用 Docker 运行

  1. 构建容器
npm run docker:build
  1. 运行容器
npm run docker:run

或者手动:

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

发展

  • 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)正常关闭
  • 连接跟踪和管理
  • 请求超时处理
  • 端口冲突检测
  • 保持连接管理
  • 主动请求跟踪和优雅完成

关机流程

  1. 服务器根据进程信号启动正常关闭
  2. 新连接被拒绝
  3. 允许活动请求完成(有超时)
  4. 保持连接已关闭
  5. 服务器端口已正确释放
  6. 资源得到适当释放

错误处理

  • 检测并报告端口冲突
  • 捕获未处理的拒绝和异常
  • 网络错误得到妥善处理
  • 通过适当的处理可以防止资源泄漏
  • 超时确保服务器在关闭期间不会挂起

执照

麻省理工学院

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

模型上下文协议服务器,使用自定义 GPT 接口通过自然语言交互实现 Docker 容器管理。

  1. 特征
    1. 设置
      1. 通过 Smithery 安装
      2. 手动安装
    2. 使用 Docker 运行
      1. 发展
        1. 环境变量
          1. 资源管理
            1. 关机流程
            2. 错误处理
          2. 执照

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              A powerful Model Context Protocol (MCP) server for Docker operations, enabling seamless container and compose stack management through Claude AI.
              Last updated -
              4
              160
              Python
              MIT License
              • Apple
            • -
              security
              F
              license
              -
              quality
              Provides a scalable, containerized infrastructure for deploying and managing Model Context Protocol servers with monitoring, high availability, and secure configurations.
              Last updated -
            • -
              security
              F
              license
              -
              quality
              A Model Context Protocol server that enables Claude to manage software development projects with complete context awareness and code execution through Docker environments.
              Last updated -
              1
              Python
              • Apple
            • -
              security
              A
              license
              -
              quality
              An MCP server that allows managing Docker containers through natural language, enabling users to compose, introspect, and debug containers without running commands themselves.
              Last updated -
              440
              Python
              GPL 3.0
              • Apple

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/Toowiredd/chatgpt-mcp-server'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server