drio
Open app

OpenAI MCP Server

Source

mcp-server-openai with o3-mini support

Catalog onlyCatalog onlySTDIO

Overview

OpenAI MCP Server allows users to query OpenAI models directly from Claude using the MCP protocol. It's designed to facilitate interaction with OpenAI's capabilities in an efficient manner.

To use the MCP Server, you need to add its configuration to your claude_desktop_config.json, and ensure that your environment is properly set up with the necessary API key and Python configuration.

  • Direct querying of OpenAI models through the MCP protocol. - Easy setup with a configuration file. - Ability to run and test the integration using Python code.
  1. Integrating AI functionalities directly into applications using Claude.
  2. Automating tasks that require natural language processing capabilities from OpenAI.
  3. Developing and testing AI model interactions in a controlled environment.

Add to your AI client

Use these steps to connect OpenAI MCP 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-server-openai-thadius83": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-openai-thadius83"
      ]
    }
  }
}

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-server-openai-thadius83": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-openai-thadius83"
      ]
    }
  }
}

Claude Code

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

.mcp.json (project root)

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

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-server-openai-thadius83": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-openai-thadius83"
      ]
    }
  }
}

Windsurf

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

~/.codeium/windsurf/mcp_config.json

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

Cline

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

Cline MCP Settings (via UI)

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

FAQ

What programming language do I need to use?

Python is required to set up and run the MCP Server.

Is there a specific environment setup needed?

Yes, you will need to configure your `claude_desktop_config.json` and set up the necessary environment variables.

Can I modify the server code?

Yes, the project is open-source and licensed under the MIT License, allowing modifications.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":90,"uuid":"331c0046-8dd1-4937-9ac7-a72b009a3a8f","name":"mcp-server-openai","title":"OpenAI MCP Server","description":"mcp-server-openai with o3-mini support","avatar_url":"https://avatars.githubusercontent.com/u/59833021?v=4","created_at":"2024-12-13T09:00:38.953Z","updated_at":"2024-12-13T09:34:49.786Z","status":"created","author_name":"thadius83","author_avatar_url":"https://avatars.githubusercontent.com/u/59833021?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/thadius83/mcp-server-openai","target":"_self","content":"$29","summary":"$2a","img_url":"https://camo.githubusercontent.com/9549171c6a27dbeb4983786482cae3f359f9b9341a0555aefa3606b6dbf3e1bc/68747470733a2f2f736d6974686572792e61692f62616467652f407468616469757338332f6d63702d7365727665722d6f70656e6169","type":null,"metadata":null,"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"}]]}]