Skip to main content
Glama
billster45

MCP ChatGPT Responses

by billster45

MCP ChatGPT サーバー

鍛冶屋のバッジ

この MCP サーバーを使用すると、Claude Desktop から直接 OpenAI の ChatGPT API にアクセスできます。

📝このプロジェクトを構築した理由について読んでください: 他の AI と対話する AI を構築しました: MCP の誇大宣伝を解明する

特徴

  • カスタマイズ可能なパラメータを使用してChatGPT APIを呼び出す

  • クロードさんと ChatGPT さんが長期にわたる議論でお互いに話し合うようにお願いします。

  • モデルのバージョン、温度、その他のパラメータを設定する

  • ウェブ検索を使用してインターネットから最新情報を入手する

  • 自動会話状態管理にOpenAIのResponses APIを使用する

  • 独自のOpenAI APIキーを使用する

Related MCP server: OpenAI MCP Server

セットアップ手順

Smithery経由でインストール

Smithery経由で Claude Desktop 用の ChatGPT サーバーを自動的にインストールするには:

npx -y @smithery/cli install @billster45/mcp-chatgpt-responses --client claude

前提条件

インストール

  1. このリポジトリをクローンします:

    git clone https://github.com/billster45/mcp-chatgpt-responses.git
    cd mcp-chatgpt-responses
  2. 仮想環境をセットアップし、uv を使用して依存関係をインストールします。

    uv venv
    .venv\\Scripts\\activate
    uv pip install -r requirements.txt

Claude Desktopでの使用

  1. Claude Desktop がこの MCP サーバーを使用するように設定するには、次の手順に従ってください: MCP クイックスタート ガイド

  2. Claude Desktop 構成ファイルに次の構成を追加します (必要に応じてパスを調整します)。

    {
      "mcpServers": {
        "chatgpt": {
          "command": "uv",
          "args": [
            "--directory",
            "\\path\\to\\mcp-chatgpt-responses",
            "run",
            "chatgpt_server.py"
          ],
          "env": {
            "OPENAI_API_KEY": "your-api-key-here",
            "DEFAULT_MODEL": "gpt-4o",
            "DEFAULT_TEMPERATURE": "0.7",
            "MAX_TOKENS": "1000"
          }
        }
      }
    }
  3. Claude Desktop を再起動します。

  4. ChatGPT について言及する質問や、Claude が答えられない質問をすることで、Claude を通じて ChatGPT API を使用できるようになりました。

利用可能なツール

MCP サーバーは次のツールを提供します。

  1. ask_chatgpt(prompt, model, temperature, max_output_tokens, response_id) - ChatGPTにプロンプトを送信し、応答を取得します。

  2. ask_chatgpt_with_web_search(prompt, model, temperature, max_output_tokens, response_id) - 最新情報を取得するために、Web検索を有効にしてChatGPTにプロンプトを送信します。

使用例

ChatGPTの基本的な使用方法:

Claude に ChatGPT に質問するように伝えてください。

Use the ask_chatgpt tool to answer: What is the best way to learn Python?

Claude に ChatGPT と会話するように伝えます。

Use the ask_chatgpt tool to have a two way conversation between you and ChatGPT about the topic that is most important to you.

ターンテイキングの会話では、レスポンスIDによってChatGPTが会話の履歴を保存できるため、単なるAPI呼び出しの連続ではなく、本物の会話として扱われます。これは会話状態と呼ばれます。

ウェブ検索の場合:

最新情報が役立つと思われる質問については、以下をご覧ください。

Use the ask_chatgpt_with_web_search tool to answer: What are the latest developments in quantum computing?

今すぐエージェント的な方法でウェブ検索を試し、天気に基づいて完璧な一日を計画しましょう。

Use the ask_chatgpt_with_web_search tool to find the weather tomorrow in New York, then based on that weather and what it returns, keep using the tool to build up a great day out for someone who loves food and parks

仕組み

このツールはOpenAIのResponses APIを利用しており、OpenAIのサーバー上で会話の状態を自動的に維持します。このアプローチは次のような効果をもたらします。

  1. OpenAIに会話履歴を処理させることでコードを簡素化

  2. より信頼性の高いコンテキストトラッキングを提供

  3. メッセージ間のコンテキストを維持することでユーザーエクスペリエンスを向上

  4. ウェブ検索ツールでウェブから最新情報にアクセスできます

ライセンス

MITライセンス

Related MCP Connectors

  • Zapier MCP connects AI tools like Claude, ChatGPT, and Cursor to over 8,000 apps and 30,000+ actions, enabling AI to perform real-world tasks such as sending messages, searching data, scheduling events, and updating records. It acts as a translator between AI tools and apps, handling authentication, rate limits, and retries automatically, transforming AI from a conversational tool into a functional extension of your business stack.

  • Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.

  • The Remote MCP server acts as a standardized bridge between LLM applications (like Claude, ChatGPT, and Cursor) and external services, enabling AI agents to access external tools and resources. Its primary capability is providing a centralized search tool to discover other MCP servers and their respective tools. Unlike local implementations, it runs remotely with OAuth authentication and permission controls for security.

  • Unified MCP Server is a remote MCP connector for AI agents and vertical AI products that provides access to 22,000+ authorized SaaS tools across 400+ integrations and 24 categories directly inside LLMs (Claude, GPT, Gemini, Cohere). Tools operate only on explicitly authorized customer connections, enabling agents to safely read and write against live third-party systems.

Related MCP Servers

  • A
    license
    C
    quality
    D
    maintenance
    Enables integration with OpenAI models through the MCP protocol, supporting concise and detailed responses for use with Claude Desktop.
    1
    3
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables advanced OpenAI GPT model integration with Claude through 5 specialized tools including GPT-5 reasoning, token optimization, context management, batch processing, and model comparison. Features intelligent fallback mechanisms and task-specific system prompts for enhanced AI capabilities.
    99 npm
    MIT
  • F
    license
    Not graded
    quality
    Not graded
    maintenance
    Enables Claude and other MCP-compatible tools to communicate with OpenAI's GPT models (GPT-5, GPT-5-mini, o3) with conversation history and session management. Features advanced controls like reasoning effort settings, token tracking, and parallel conversation sessions for efficient AI workflows.
    7 npm
    -
  • A
    license
    A
    quality
    C
    maintenance
    Provides access to OpenAI's ChatGPT API with web search capabilities for Claude and other MCP clients. Supports various GPT models with configurable parameters like reasoning effort, temperature, and streaming mode.
    1
    12 npm
    3
    MIT