MCP OpenAIサーバー
Claude から OpenAI のモデルをシームレスに使用できるようにするモデル コンテキスト プロトコル (MCP) サーバー。
特徴
OpenAIのチャットモデルとの直接統合
以下を含む複数のモデルのサポート:
gpt-4o
gpt-4o-ミニ
o1プレビュー
o1-ミニ
シンプルなメッセージパッシングインターフェース
基本的なエラー処理
Related MCP server: OpenAI MCP Server
前提条件
Node.js >= 18 (
npmとnpxを含む)
インストール
まず、 Claude デスクトップ アプリがインストールされていること、およびOpenAI API キーがリクエストされていることを確認します。
次のエントリをclaude_desktop_config.jsonに追加します (Mac では~/Library/Application\ Support/Claude/claude_desktop_config.jsonにあります)。
{
"mcpServers": {
"mcp-openai": {
"command": "npx",
"args": ["-y", "@mzxrai/mcp-openai@latest"],
"env": {
"OPENAI_API_KEY": "your-api-key-here (get one from https://platform.openai.com/api-keys)"
}
}
}
}この設定により、Claude Desktop は必要なときにいつでも OpenAI MCP サーバーを起動できます。
使用法
Claude とチャットを開始し、OpenAI のモデルを使用したい場合は、Claude に使用するように依頼してください。
例えば、
Can you ask o1 what it thinks about this problem?または、
What does gpt-4o think about this?サーバーは現在、次のモデルをサポートしています。
gpt-4o (デフォルト)
gpt-4o-ミニ
o1プレビュー
o1-ミニ
ツール
openai_chatOpenAIのチャット完了APIにメッセージを送信します
引数:
messages: メッセージの配列(必須)model: 使用するモデル(オプション、デフォルトは gpt-4o)
問題
これはアルファ版ソフトウェアのため、バグが含まれている可能性があります。問題が発生した場合は、Claude Desktop の MCP ログを確認してください。
tail -n 20 -f ~/Library/Logs/Claude/mcp*.log発達
# Install dependencies
pnpm install
# Build the project
pnpm build
# Watch for changes
pnpm watch
# Run in development mode
pnpm dev要件
Node.js >= 18
OpenAI APIキー
検証済みプラットフォーム
[x] macOS
[ ] リナックス
ライセンス
マサチューセッツ工科大学
著者
Resources
Looking for Admin?
Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to authenticate as an admin.