MCP OpenAI Server

hybrid server

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

Integrations

  • Provides seamless access to OpenAI's models (gpt-4o, gpt-4o-mini, o1-preview, o1-mini) directly from Claude, allowing users to send messages to OpenAI's chat completion API with the specified model.

MCP OpenAIサーバー

Claude から OpenAI のモデルをシームレスに使用できるようにするモデル コンテキスト プロトコル (MCP) サーバー。

特徴

  • OpenAIのチャットモデルとの直接統合
  • 以下を含む複数のモデルのサポート:
    • gpt-4o
    • gpt-4o-ミニ
    • o1プレビュー
    • o1-ミニ
  • シンプルなメッセージパッシングインターフェース
  • 基本的なエラー処理

前提条件

インストール

まず、 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-ミニ

ツール

  1. openai_chat
    • OpenAIのチャット完了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
  • [ ] リナックス

ライセンス

マサチューセッツ工科大学

著者

mzxrai

-
security - not tested
A
license - permissive license
-
quality - not tested

Claude から OpenAI のモデルをシームレスに使用できるようにするモデル コンテキスト プロトコル (MCP) サーバー。

  1. Features
    1. Prerequisites
      1. Installation
        1. Usage
          1. Tools
        2. Problems
          1. Development
            1. Requirements
              1. Verified Platforms
                1. License
                  1. Author
                    ID: riynwmasx9