Using OpenAI Models in Claude Desktop | MCP Integration Setup

AI Chat Article Summarypowered by Claude

People searching for "openai claude desktop" generally have one of two goals. The first is an integration need: they want to call OpenAI's GPT-series models from within Claude Desktop's chat interface. The second is a comparison need: they want to know whether to use the desktop product released by OpenAI or Claude Desktop as their daily driver. This article focuses primarily on the concrete setup steps for the former, while also covering the competitive landscape for the latter, based on official and primary sources.

結論powered by Claude

Claude Desktop can call OpenAI models through MCP (Model Context Protocol). Simply add the community-built mcp-openai server to your configuration file, and you can use GPT-4o and o1-series models directly from Claude Desktop's chat interface.

Just add one mcpServers block to your configuration file (claude_desktop_config.json) and specify your OpenAI API key — that's all it takes to complete the integration. A hybrid workflow where Claude serves as the primary tool while delegating specific tasks to GPT becomes possible within a single window.

For readers searching with a comparison intent, we also cover the current landscape where OpenAI and Google are catching up to Claude's desktop-resident position. With Anthropic opening up MCP, cross-vendor integration has advanced, making a hybrid setup — using Claude Desktop as the hub while incorporating other vendors' models — a genuinely practical option.

目次 (9)

There is a reason this keyword looks like a mixed brand. Claude Desktop supports an extension standard called Model Context Protocol (MCP), which allows external tools and models to be connected as "servers." Using this mechanism, it is technically possible to call OpenAI models from within Claude Desktop. The top search results feature MCP server repositories that do exactly this.

The other intent is competitive comparison. Entering 2026, OpenAI and Google successively reinforced their desktop products, mounting a challenge to the "desktop-resident" position that Claude had held. The following sections address both types of readers.

How OpenAI Models Connect to Claude Desktop (MCP)

MCP is the protocol that allows Claude Desktop to communicate with external processes in a standardized way. The connecting endpoints are called "MCP servers," and each server provides Claude with its own set of "tools" — file operations, search, database queries, and more.

For using OpenAI models, the representative option is a community-built server called mcp-openai. It wraps OpenAI's chat completion API as an MCP tool, making it callable from Claude Desktop's chat as the openai_chat tool. In practice, when you ask Claude to "check this part with GPT-4o," the OpenAI API is called in the background and the result is returned to the conversation. The source is the official repository at github.com/mzxrai/mcp-openai.

Setting Up mcp-openai

Setup is completed simply by editing the configuration file. Follow these steps in order.

  1. Meet the prerequisites: You need Node.js 18 or later, the Claude Desktop app (Mac / Windows), and an OpenAI API key (issued at platform.openai.com/api-keys).
  2. Open the configuration file: On macOS, open ~/Library/Application Support/Claude/claude_desktop_config.json. Create the file if it does not exist.
  3. Add the server definition: Write the mcpServers block below and replace OPENAI_API_KEY with your own key.
  4. Restart Claude Desktop: A full restart is required for the configuration to take effect. Once started, if mcp-openai appears in the tools list, the setup is successful.
  5. Verify it works: In the chat, instruct Claude to "ask GPT-4o about X" and confirm that a response from the OpenAI side is returned.

The content to write in the configuration file is as follows.

{
  "mcpServers": {
    "mcp-openai": {
      "command": "npx",
      "args": ["-y", "@mzxrai/mcp-openai@latest"],
      "env": {
        "OPENAI_API_KEY": "your-api-key-here"
      }
    }
  }
}

Because npx is used, no prior installation is necessary — the @mzxrai/mcp-openai package is automatically fetched on first launch.

Supported Models and Capabilities

The models currently supported by mcp-openai are gpt-4o (the default), gpt-4o-mini, o1-preview, and o1-mini. The openai_chat tool accepts messages (required) and model (optional) as parameters; if no model is specified, gpt-4o is used.

The value of this server lies in its ability to delegate specific tasks to a different vendor's model while maintaining Claude's conversational context. For example, you could use Claude for requirements gathering and preliminary research, then hand off only the final text generation to OpenAI's o1-series for a reasoning comparison — all within a single window. Note that the official repository explicitly marks this as alpha status and confirms it works on macOS and Linux. Keep this in mind before incorporating it into critical production workflows. Supported models may change as the server is updated, so newer OpenAI models may not yet be supported. Check the README of the official repository for the latest compatibility list.

OpenAI and Google's Desktop Offensive and Claude's "Moat"

Background for readers with a comparison intent. Tech media outlet The New Stack reported that "Google and OpenAI are making a run at Claude's desktop moat, and Anthropic is making it easy" (source: thenewstack.io).

The "moat" referred to here is the desktop-resident experience of completing chat, coding, and browsing in a single window while maintaining context across tasks. Google has launched a native Mac app, and OpenAI has introduced a super-app with integrated features, both emphasizing the ability to keep working without switching between applications. The irony is that Anthropic's own decision to open up MCP has also made it easier for competitors — such as connecting OpenAI's models to Claude — to benefit from cross-vendor integration.

OpenAI Codex Desktop Control vs. Claude Code

Separate from integration, OpenAI has also been moving to compete with Claude Code. According to a report by techbuzz (April 16, 2026, source: techbuzz.ai), OpenAI Codex has gained the ability to operate desktop apps on your computer.

Key features include processing that runs in the background without interfering with other apps, and the ability to run multiple tasks in parallel. For instance, one agent can verify frontend changes in a browser while another checks API responses in the terminal. The same update also added persistent memory that retains past context and image generation capabilities, positioning it directly alongside Claude Code's strengths in "computer use." The rollout is beginning with the Codex desktop app for macOS.

How to Choose Between the Two

Here are guidelines organized by use case.

  1. Want to use Claude as the primary tool with OpenAI as a supplement: The Claude Desktop + mcp-openai setup is the fastest path. Use Claude by default and offload specific tasks to GPT-4o or o1 as needed.
  2. Prioritizing a desktop-resident experience that stays within a single window: OpenAI / Google super-apps are also options, but Claude Desktop's ability to expand functionality via MCP is not to be overlooked.
  3. Want to compare automated coding capabilities: Evaluate Claude Code and OpenAI Codex's desktop control features based on each one's parallel processing and memory specifications before deciding.

Integration and switching are not mutually exclusive. Thanks to MCP, the hybrid approach of "using Claude Desktop as the hub while calling other vendors' models only when needed" has become a genuinely practical option.

Pitfalls and Things to Watch Out For During Setup

Finally, here are the points where things tend to go wrong.

  1. API key billing is separate: Calls made through mcp-openai incur usage-based charges on the OpenAI side. Be aware that costs arise separately from your Claude plan fees.
  2. Watch the JSON syntax in the configuration file: Missing commas or unclosed brackets will prevent Claude Desktop from loading the server. Verify the syntax before saving.
  3. Don't forget to restart: Configuration changes only take effect after a full app restart. If the tool doesn't appear in the list, the first thing to try is a restart.
  4. It's an alpha release: Community-built servers may be subject to spec changes or bugs. Before handling sensitive data, verify the behavior in your own environment first.

Summary

There are two answers to the "openai claude desktop" search. For those who want integration: simply add the MCP server mcp-openai to claude_desktop_config.json, and you can call GPT-4o and o1-series models from Claude Desktop. For those who want a comparison: while OpenAI and Google are catching up to Claude in the desktop-resident experience, Anthropic's decision to open up MCP has simultaneously advanced cross-vendor integration. For either camp, the hybrid approach of using Claude Desktop as the hub while incorporating other vendors' models as needed is currently the most flexible option available.

参考になったら ♡
Clauder Navi 編集部
@clauder_navi

Anthropic の Claude / Claude Code を中心に、日本のエンジニア向けに最新動向と実務 を毎日発信。 運営方針 は メディアについて をご覧ください。