Skip to main content
Glama

MCP OpenAI Server

by mzxrai

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

local-only server

The server can only run on the client's local machine because it depends on local resources.

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

  1. 特徴
    1. 前提条件
      1. インストール
        1. 使用法
          1. ツール
        2. 問題
          1. 発達
            1. 要件
              1. 検証済みプラットフォーム
                1. ライセンス
                  1. 著者

                    Related MCP Servers

                    • -
                      security
                      A
                      license
                      -
                      quality
                      A simple MCP server for interacting with OpenAI assistants. This server allows other tools (like Claude Desktop) to create and interact with OpenAI assistants through the Model Context Protocol.
                      Last updated -
                      26
                      Python
                      MIT License
                      • Apple
                    • -
                      security
                      A
                      license
                      -
                      quality
                      A Model Context Protocol (MCP) server implementation for the OpenLedger API. This server provides structured context to AI models according to the MCP specification.
                      Last updated -
                      8
                      TypeScript
                      Apache 2.0
                    • -
                      security
                      F
                      license
                      -
                      quality
                      A Model Context Protocol server implementation that enables connection between OpenAI APIs and MCP clients for coding assistance with features like CLI interaction, web API integration, and tool-based architecture.
                      Last updated -
                      28
                      Python
                      • Linux
                      • Apple
                    • -
                      security
                      A
                      license
                      -
                      quality
                      A lightweight bridge that wraps OpenAI's built-in tools (like web search and code interpreter) as Model Context Protocol servers, enabling their use with Claude and other MCP-compatible models.
                      Last updated -
                      8
                      Python
                      MIT License
                      • Apple

                    View all related MCP servers

                    MCP directory API

                    We provide all the information about MCP servers via our MCP API.

                    curl -X GET 'https://glama.ai/api/mcp/v1/servers/mzxrai/mcp-openai'

                    If you have feedback or need assistance with the MCP directory API, please join our Discord server