Skip to content
MCP-Bridge
AI & ML

OpenAI API Claude Desktop Config

Add the OpenAI API MCP server to Claude Desktop with this ready-to-use configuration.

Setup Instructions

  1. Open Claude Desktop
  2. Go to Settings → Developer → Edit Config → claude_desktop_config.json
  3. Paste the JSON below into the file
  4. Set your API Key in the env section
  5. Restart Claude Desktop

Configuration JSON

Copy the entire block into your claude_desktop_config.json

{
  "mcpServers": {
    "openai": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-openai"
      ],
      "env": {
        "OPENAI_API_KEY": "sk-..."
      }
    }
  }
}

Environment Variables

OPENAI_API_KEY

Replace sk-... with your actual openai api key

Endpoints

POST/v1/chat/completions

Create chat completion

POST/v1/images/generations

Generate image

POST/v1/embeddings

Create embeddings