MCP.so
Sign In

MCP OpenAI Server

@mzxrai

About MCP OpenAI Server

Chat with OpenAI models from Claude Desktop

Basic information

Category

AI & Agents

License

MIT

Runtime

node

Transports

stdio

Publisher

mzxrai

Config

Add this server to your MCP-compatible client using the configuration below.

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

Tools

1

`messages`: Array of messages (required)

Overview

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

FAQ from MCP OpenAI Server

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.

Where is the configuration file located?

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

Which platforms are verified?

macOS is verified; Linux is not yet supported.

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).

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.

Comments

More AI & Agents MCP servers