drio
Open app

MCP OpenAI Server

Source

Chat with OpenAI models from Claude Desktop

Catalog onlyCatalog onlySTDIO

Overview

MCP OpenAI Server is a Model Context Protocol server that allows users to chat with OpenAI's models directly from the Claude Desktop application.

To use the MCP OpenAI Server, install the Claude Desktop app and obtain an OpenAI API key. Integrate the server by configuring the claude_desktop_config.json file and start chatting with Claude to access OpenAI's models.

  • Direct integration with OpenAI's chat models like gpt-4o and o1-mini. - Simple message passing interface for easy communication. - Basic error handling capabilities.
  1. Engaging in chat conversations using advanced AI models.
  2. Experimenting with different OpenAI models for diverse responses.
  3. Integrating OpenAI functionalities within the Claude Desktop environment.

Add to your AI client

Use these steps to connect MCP OpenAI Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "mcp-openai-mzxrai": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-openai-mzxrai"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "mcp-openai-mzxrai": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-openai-mzxrai"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-openai-mzxrai": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-openai-mzxrai"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mcp-openai-mzxrai": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-openai-mzxrai"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-openai-mzxrai": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-openai-mzxrai"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-openai-mzxrai": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-openai-mzxrai"
      ]
    }
  }
}

FAQ

What models does the MCP OpenAI Server support?

It supports models including gpt-4o, gpt-4o-mini, o1-preview, and o1-mini.

Is MCP OpenAI Server free to use?

Yes, the server is free to use; however, an OpenAI API key is required, which may have usage costs based on your OpenAI subscription.

How do I troubleshoot issues with the server?

Check the MCP logs in Claude Desktop for debugging information.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":165,"uuid":"1580fb75-905b-4f4d-a8b7-a426219ef132","name":"mcp-openai","title":"MCP OpenAI Server","description":"Chat with OpenAI models from Claude Desktop","avatar_url":"https://avatars.githubusercontent.com/u/889362?v=4","created_at":"2024-12-13T09:12:13.176Z","updated_at":"2024-12-13T09:49:51.617Z","status":"created","author_name":"mzxrai","author_avatar_url":"https://avatars.githubusercontent.com/u/889362?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/mzxrai/mcp-openai","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"51\",\"license\":\"MIT license\",\"language\":\"JavaScript\",\"is_official\":false,\"latest_commit_time\":\"2024-12-06 12:13:56\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]