MCP ChatGPT Responses

by billster45
Verified

hybrid server

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

Integrations

  • Provides access to OpenAI's ChatGPT API with customizable parameters, conversation state management through the Responses API, and web search capabilities for retrieving up-to-date information.

MCP ChatGPT 서버

이 MCP 서버를 사용하면 Claude Desktop에서 직접 OpenAI의 ChatGPT API에 액세스할 수 있습니다.

📝 이 프로젝트를 구축한 이유에 대해 읽어보세요 : 다른 AI와 대화하는 AI를 구축했습니다: MCP 과대광고의 진실

특징

  • 사용자 정의 가능한 매개변수로 ChatGPT API 호출
  • Aks Claude와 ChatGPT가 장시간 토론을 벌이며 서로 이야기를 나누었습니다!
  • 모델 버전, 온도 및 기타 매개변수 구성
  • 웹 검색을 사용하여 인터넷에서 최신 정보를 얻으세요
  • OpenAI의 Responses API를 사용하여 자동 대화 상태 관리를 수행합니다.
  • 자신의 OpenAI API 키를 사용하세요

설치 지침

Smithery를 통해 설치

Smithery 를 통해 Claude Desktop용 ChatGPT 서버를 자동으로 설치하려면:

지엑스피1

필수 조건

설치

  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. MCP 빠른 시작 가이드 의 지침에 따라 이 MCP 서버를 사용하도록 Claude Desktop을 구성하세요.
  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. 이제 Claude를 통해 ChatGPT API를 사용하여 ChatGPT를 언급하거나 Claude가 답변할 수 없는 질문을 할 수 있습니다.

사용 가능한 도구

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) - 웹 검색을 활성화하여 ChatGPT에 프롬프트를 보내 최신 정보를 얻습니다.

사용 예

기본 ChatGPT 사용법:

클로드에게 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 서버에서 대화 상태를 자동으로 관리하는 OpenAI의 Responses API를 활용합니다. 이 접근 방식은 다음과 같습니다.

  1. OpenAI가 대화 기록을 처리하도록 하여 코드를 간소화합니다.
  2. 더욱 안정적인 컨텍스트 추적을 제공합니다
  3. 메시지 전체에서 컨텍스트를 유지하여 사용자 경험을 향상시킵니다.
  4. 웹 검색 도구를 사용하여 웹에서 최신 정보에 액세스할 수 있습니다.

특허

MIT 라이센스

-
security - not tested
F
license - not found
-
quality - not tested

MCP ChatGPT Responses는 두 가지 필수 도구를 통해 Claude와 ChatGPT를 연결합니다. AI 간 대화를 위한 표준 쿼리와 최신 정보에 대한 웹 기반 요청입니다. OpenAI의 Responses API를 사용하여 대화 상태를 자동으로 유지합니다.

  1. Features
    1. Setup Instructions
      1. Installing via Smithery
      2. Prerequisites
      3. Installation
      4. Using with Claude Desktop
    2. Available Tools
      1. Example Usage
        1. Basic ChatGPT usage:
        2. With web search:
      2. How It Works
        1. License
          ID: fe168f4v0h