Back to MCP Servers

OpenAI Server

Access OpenAI APIs for completions, embeddings, image generation, and model management

openaiaillmembeddingsgptcommunity

Installation

npm install -g @openai/mcp-server

Configuration

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

How to use

  1. Run the installation command above (if needed)
  2. Open your Claude Code settings file (~/.claude/settings.json)
  3. Add the configuration to the mcpServers section
  4. Restart Claude Code to apply changes
View source on GitHub