
billster45/mcp-chatgpt-responses
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
OpenAIのチャットGPT APIにアクセスするためのMCPサーバーと、会話管理用のレスポンスAPI
概要
このMCPサーバーでは、Claude DesktopからOpenAIのChatGPT APIを直接アクセスすることができます。 リリース : MCP Hype の解明 - カスタマイズ可能なパラメータでChatGPT APIを呼び出す - Aks ClaudeとChatGPTは、長期的に実行中の議論で互いに話します! - モデルのバージョン、温度、およびその他のパラメータの設定 - Web検索を使用して、インターネットから最新の情報を入手 - OpenAIの応答APIを使用して、自動会話状態管理 - 独自のOpenAI APIキーを使用する Smitheryによって自動的にClaudeデスクトップのためのChatGPTサーバーを取付けるため: - Python 3.10以上 - Claudeデスクトップアプリケーション - OpenAI APIキー - Pythonパッケージ管理用のuv 2。 仮想環境を設定し、uvを使用して依存関係をインストールします。 1. 指示に従ってこのMCPサーバーを使用するためにClaudeデスクトップの設定:MCPクイックスタートガイド 2。 Claudeデスクトップコンフィグファイルに次の設定を追加します(必要に応じてパスを調節します):
概要(AI 翻訳)
このMCPサーバーでは、Claude DesktopからOpenAIのChatGPT APIを直接アクセスすることができます。
リリースこのプロジェクトをビルドした理由について読む: 他のAIに話せるAIを構築:MCPハイプの解明
##特徴
- カスタマイズ可能なパラメータでChatGPT APIを呼び出す
- Aks ClaudeとChatGPTは、長期にわたるディスカッションでお互いに話そう!
- モデルのバージョン、温度、およびその他のパラメータの設定
- インターネットから最新の情報を入手するためにWeb検索を使用する
- OpenAIの応答APIを使用して、自動会話状態管理
- 独自のOpenAI APIキーを使用する
セットアップ手順
##Smitheryでインストールする
Smitheryによって自動的にClaudeデスクトップのためのChatGPTサーバーを取付けるため:
前提条件
- Python 3.10以上
- クロードデスクトップアプリケーション
- OpenAI API キー
- Pythonパッケージ管理のためのuv
インストール
- このリポジトリをクローンする:
2。 仮想環境を設定し、uvを使用して依存関係をインストールします。
##Claudeデスクトップでの使用
- 指示に従ってこのMCPサーバーを使用するためにClaudeデスクトップを構成して下さい: MCPクイックスタートガイド
2。 Claudeデスクトップコンフィグファイルに次の設定を追加します(必要に応じてパスを調節します):
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
MCP ChatGPT Server
This MCP server allows you to access OpenAI’s ChatGPT API directly from Claude Desktop.
📝 Read about why I built this project: I Built an AI That Talks to Other AIs: Demystifying the MCP Hype
Features
- Call the ChatGPT API with customisable parameters
- Aks Claude and ChatGPT to talk to each other in a long running discussion!
- Configure model versions, temperature, and other parameters
- Use web search to get up-to-date information from the internet
- Uses OpenAI’s Responses API for automatic conversation state management
- Use your own OpenAI API key
Setup Instructions
Installing via Smithery
To install ChatGPT Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @billster45/mcp-chatgpt-responses --client claude
Prerequisites
- Python 3.10 or higher
- Claude Desktop application
- OpenAI API key
- uv for Python package management
Installation
-
Clone this repository:
git clone https://github.com/billster45/mcp-chatgpt-responses.git cd mcp-chatgpt-responses -
Set up a virtual environment and install dependencies using uv:
uv venv.venv\\Scripts\\activateuv pip install -r requirements.txt
Using with Claude Desktop
-
Configure Claude Desktop to use this MCP server by following the instructions at: MCP Quickstart Guide
-
Add the following configuration to your Claude Desktop config file (adjust paths as needed):
{ "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" } } } } -
Restart Claude Desktop.
-
You can now use the ChatGPT API through Claude by asking questions that mention ChatGPT or that Claude might not be able to answer.
Available Tools
The MCP server provides the following tools:
インストール
npx -y @smithery/cli install @billster45/mcp-chatgpt-responses --client claude設定
{
"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"
}
}
}
}