MCP OpenAI Server
@mzxrai
About MCP OpenAI Server
Chat with OpenAI models from Claude Desktop
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
1Use 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.
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.
Frequently asked questions
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.
Basic information
More AI & Agents MCP servers
Mcp Agent
lastmile-aiBuild effective agents using Model Context Protocol and simple workflow patterns

Nero AI Image Processing
nero-comWe provide AI-powered tools for image enhancement, upscaling, background removal, photo restoration, colorization, denoising, and compression. All features are available through our API documentation.

Plainpaper
PlainpaperThe AI marketing canvas for Claude and MCP agents. Your agent drafts campaigns as cards on a shared board, briefed by your brand rules, approved by you.
XDC AI
XDC AI is a remote MCP server available at https://xdcai.tech.
早起鸟儿喊真人验真
shenshaoyin早起鸟儿喊真人验真 is a remote MCP server available at http://121.40.18.232.
Comments