Skip to main content
Glama
ChatGPT MCP Server

ChatGPT MCP Server

by Toowiredd

ChatGPT MCP サーバー

鍛冶屋のバッジ

カスタム GPT インターフェースを通じて Docker 管理機能を提供するモデル コンテキスト プロトコル (MCP) サーバー。

特徴

  • 自然言語による Docker コンテナ管理

  • モデルコンテキストプロトコル(MCP)に基づいて構築

  • TypeScript実装

  • コンテナ化されたデプロイメント

  • 堅牢なエラー処理と正常なシャットダウン

  • リソース管理とポート処理

  • レート制限とAPIキー認証

Related MCP server: MCP Development Server

設定

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. リソースが適切に解放される

エラー処理

  • ポートの競合が検出され報告される

  • 処理されない拒否と例外がキャッチされる

  • ネットワークエラーは適切に処理されます

  • 適切な処理によりリソースの漏洩を防止

  • タイムアウトにより、シャットダウン中にサーバーがハングアップしないようにします

ライセンス

マサチューセッツ工科大学

Available Tools

7 tools
container_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

    A3.5/5.0

    Scored across 7 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness5/5

    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

    ActivityNo data
    ResponsivenessSyncing

    Related MCP Connectors

    Related MCP Servers