MCP Openai logo

MCP Openai

by mzxrai

Lets Claude Desktop send chat requests to supported OpenAI models through an MCP server.

Install MCP Openai

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mzxrai-mcp-openai": {
      "command": "npx",
      "args": [
        "-y",
        "@mzxrai/mcp-openai@latest"
      ],
      "env": {
        "OPENAI_API_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y @mzxrai/mcp-openai@latest

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked 1mo ago.

Overview

The mzxrai/mcp-openai MCP server lets Claude Desktop call OpenAI chat models through the Model Context Protocol. It exposes an `openai_chat` tool that accepts a message array and an optional model name, defaulting to `gpt-4o`. Use it when Claude needs a response from OpenAI models such as `gpt-4o`, `gpt-4o-mini`, `o1-preview`, or `o1-mini`. Running it requires Node.js 18 or newer, Claude Desktop, and an OpenAI API key.

Use cases

  • Ask o1 to evaluate a problem from Claude Desktop
  • Compare responses from gpt-4o and gpt-4o-mini
  • Send conversation messages to an OpenAI chat model
  • Use Claude as the interface for selected OpenAI models

Key features

  • OpenAI chat completion access
  • Support for four documented models
  • Single message-passing MCP tool
  • Optional model selection
  • Basic error handling

Tools2

What MCP Openai lets your agent do. Expand a tool for its parameters.

Self-reported~23 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 1d ago

Recent health check succeeded.

6/6 checks healthy over the last 43d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 8d ago via OSV.dev · @mzxrai/mcp-openai@latest (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars77Stargazers on the source repository.
npm downloads718Package downloads in the last 30 days.
Last commit1y agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed2Callable tools this server registers over MCP.
Directory activity8 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Openai works

What mzxrai/mcp-openai MCP server does

The mzxrai/mcp-openai MCP server connects Claude Desktop to OpenAI chat completion models. It gives Claude a single MCP tool for forwarding a conversation to OpenAI and receiving the model's response. The supported model list includes gpt-4o, gpt-4o-mini, o1-preview, and o1-mini; gpt-4o is used when no model is supplied.

This fits workflows where Claude should ask another OpenAI model for an opinion, comparison, or draft. For example, a user can ask Claude to send a problem to o1 or ask what gpt-4o thinks about a topic.

How it works

Claude Desktop starts the server as a local Node.js process using npx. The server reads the OpenAI credential from the OPENAI_API_KEY environment variable. When Claude selects the MCP tool, the server passes the supplied messages to OpenAI's chat completion API and returns the result.

The tool accepts a required messages array and an optional model argument. The model value selects one of the supported OpenAI models. Basic error handling is included, but the project is identified as alpha software, so applications should account for possible bugs.

Setup and configuration

Install Node.js 18 or newer, Claude Desktop, and an OpenAI API key. Add an mcp-openai entry to Claude Desktop's claude_desktop_config.json. On macOS, the README places this file under ~/Library/Application Support/Claude/.

The configuration runs npx -y @mzxrai/mcp-openai@latest and supplies the key through OPENAI_API_KEY. After restarting or reloading Claude Desktop as needed, ask Claude to use an OpenAI model.

The mzxrai/mcp-openai MCP server also includes development commands for installing dependencies with pnpm, building, watching for changes, and running in development mode. Those commands are for contributors rather than normal Claude Desktop installation.

Tools and capabilities

  • openai_chat: sends messages to OpenAI's chat completion API.
  • messages: required array of conversation messages.
  • model: optional model selector, defaulting to gpt-4o.
  • Supported models: gpt-4o, gpt-4o-mini, o1-preview, and o1-mini.

Limitations and notes

The README provides no tools for image generation, embeddings, file handling, or other OpenAI APIs. It documents Claude Desktop as the client and macOS as the verified platform.

For troubleshooting, inspect Claude Desktop's MCP logs. The README gives a macOS log command using tail and a wildcard under ~/Library/Logs/Claude/. The project is licensed under MIT.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Openai

Add an MCP server entry to Claude Desktop that runs `npx -y @mzxrai/mcp-openai@latest` and sets `OPENAI_API_KEY`.

Yes. Claude Desktop is the documented client, and the server is configured through its `claude_desktop_config.json` file.

The documented models are `gpt-4o`, `gpt-4o-mini`, `o1-preview`, and `o1-mini`. `gpt-4o` is the default.

It requires `OPENAI_API_KEY` containing an OpenAI API key.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Openai AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mzxrai-mcp-openai?style=directory)](https://allmcps.com/mcp/mzxrai-mcp-openai)
HTML Embed
<a href="https://allmcps.com/mcp/mzxrai-mcp-openai"><img src="https://allmcps.com/api/badge/mzxrai-mcp-openai?style=directory" alt="MCP Openai on AllMCPs" /></a>