Skip to main content
Glama
billster45

MCP ChatGPT Responses

by billster45

MCP ChatGPT Сервер

значок кузнеца

Этот сервер MCP позволяет вам получать доступ к API ChatGPT OpenAI непосредственно из Claude Desktop.

📝 Прочитайте о том, почему я создал этот проект : Я создал ИИ, который общается с другими ИИ: развеиваем миф о MCP

Функции

  • Вызов API ChatGPT с настраиваемыми параметрами

  • Акс Клод и ChatGPT пообщаются друг с другом в длительной дискуссии!

  • Настройте версии моделей, температуру и другие параметры

  • Используйте веб-поиск, чтобы получить актуальную информацию из Интернета

  • Использует API Responses OpenAI для автоматического управления состоянием разговора

  • Используйте свой собственный ключ API OpenAI

Related MCP server: OpenAI MCP Server

Инструкции по установке

Установка через Smithery

Чтобы автоматически установить ChatGPT Server для Claude Desktop через Smithery :

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. Теперь вы можете использовать API ChatGPT через Клода, задавая вопросы, в которых упоминается ChatGPT или на которые Клод, возможно, не сможет ответить.

Доступные инструменты

Сервер 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?

Попросите Клода поговорить с 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.

Обратите внимание, как в разговоре с поочередным принятием ответа идентификатор ответа позволяет 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

Как это работает

Этот инструмент использует API Responses OpenAI, который автоматически поддерживает состояние разговора на серверах OpenAI. Этот подход:

  1. Упрощает код, позволяя OpenAI обрабатывать историю разговоров

  2. Обеспечивает более надежное отслеживание контекста

  3. Улучшает пользовательский опыт, сохраняя контекст в сообщениях.

  4. Позволяет получить доступ к последней информации из Интернета с помощью инструмента веб-поиска.

Лицензия

Лицензия Массачусетского технологического института

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