MCP.so
登录

MCP OpenAI Server

@mzxrai

基本信息

分类

AI 与智能体

许可证

MIT

传输方式

stdio

作者

mzxrai

关于 MCP OpenAI Server

Chat with OpenAI models from Claude Desktop

MCP OpenAI Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "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)"
      }
    }
  }
}

MCP OpenAI Server 工具

1

Use this tool when a user specifically requests to use one of OpenAI's models (gpt-4o, gpt-4o-mini, o1-preview, o1-mini). This tool sends messages to OpenAI's chat completion API using the specified model.

概览

What is MCP OpenAI Server?

MCP OpenAI Server is a Model Context Protocol (MCP) server that integrates OpenAI’s chat models directly into Claude. It is built for users of Claude Desktop who want to tap into OpenAI’s models (gpt-4o, gpt-4o-mini, o1-preview, o1-mini) from within the same interface.

How to use MCP OpenAI Server?

Install the Claude Desktop app, obtain an OpenAI API key, then add the provided JSON entry to your claude_desktop_config.json file. Once configured, simply ask Claude to query an OpenAI model—for example, “Can you ask o1 what it thinks about this problem?”—and the server handles the rest.

Key features of MCP OpenAI Server

  • Direct integration with OpenAI’s chat completion API
  • Supports gpt-4o, gpt-4o-mini, o1-preview, and o1-mini
  • Simple message‑passing interface from Claude
  • Single tool (openai_chat) with required messages and optional model
  • Basic error handling

Use cases of MCP OpenAI Server

  • Get an OpenAI model’s response without leaving Claude Desktop
  • Compare answers from different models side by side
  • Use o1‑preview or o1‑mini for reasoning‑heavy tasks
  • Prototype multi‑model workflows inside Claude

常见问题

1

What dependencies does MCP OpenAI Server need?

Node.js 18 or higher and an OpenAI API key are required. The server also depends on the Claude Desktop app for runtime configuration.

2

Where is the configuration file located?

On macOS, the JSON configuration lives at `~/Library/Application\ Support/Claude/claude_desktop_config.json`.

3

Which platforms are verified?

macOS is verified; Linux is not yet supported.

4

What tools does it expose?

It exposes one tool, `openai_chat`, which accepts a required `messages` array and an optional `model` parameter (defaults to gpt-4o).

5

Is authentication handled?

The server expects your OpenAI API key to be set in the environment variable `OPENAI_API_KEY` inside the MCP server configuration.

评论

AI 与智能体 分类下的更多 MCP 服务器