Skip to main content
Glama

MCP OpenAI Server

by mzxrai

MCP OpenAI 服务器

模型上下文协议 (MCP) 服务器让您可以直接从 Claude 无缝使用 OpenAI 的模型。

特征

  • 与 OpenAI 的聊天模型直接集成
  • 支持多种模型,包括:
    • GPT-4O
    • GPT-4O-迷你
    • o1-预览
    • o1-迷你
  • 简单的消息传递接口
  • 基本错误处理

先决条件

安装

首先,确保您已经安装了Claude Desktop 应用程序并且已经请求了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)

问题

本软件为 Alpha 版本,因此可能存在 bug。如有任何疑问,请查看 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
  • Linux

执照

麻省理工学院

作者

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.

模型上下文协议 (MCP) 服务器让您可以直接从 Claude 无缝使用 OpenAI 的模型。

  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