Skip to content
MCP-BridgeMCP-Bridge
AI & MLAPI KeyOfficial MCPScore: 78Verified by owner

OpenAI API MCP Server

Generate text, images, and embeddings. Integrate GPT models and DALL-E into your AI agent.

Quick Answer

  1. 1. The OpenAI API MCP server lets Claude, Cursor, and VS Code interact with the OpenAI API API through natural language.
  2. 2. Setup: Add the config to claude_desktop_config.json, set your API Key variables, and restart.
  3. 3. 3 operations available including Create chat completion, Generate image, Create embeddings.
  4. 4. Quality score: 78/99good source quality and documentation coverage.

Overview

Category: AI & ML

Auth: API Key

Endpoints: 3

Transport: STDIO

Command: npx -y @modelcontextprotocol/server-openai

Spec: v1.0.0

Setup time: ~2 min (auth required)

Environment Variables

OPENAI_API_KEY

Example: sk-...

One-Click Install

Copy the snippet for your MCP client and paste it in — zero editing required.

Claude Desktop

Add to claude_desktop_config.json

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

Cursor

Settings → MCP Servers → Add

{
  "mcpServers": {
    "openai": {
      "url": "https://mcpbridge.org/config/openai.json"
    }
  }
}

Saves as .cursor/mcp.json in the download. Move it to your project root.

Deep link install →

VS Code

Use with MCP extension

{
  "mcpServers": {
    "openai": {
      "url": "https://mcpbridge.org/config/openai.json"
    }
  }
}

MCP Server Configuration

Add this to your claude_desktop_config.json or Cursor MCP settings.

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

What You Can Build

With the OpenAI API MCP server, your AI assistant can:

  • Access 3 API operations through natural language
  • Read, create, and modify ai & ml resources without writing HTTP requests
  • Chain multiple operations in a single conversation for complex workflows
  • Combine with other MCP servers for cross-tool automation

Endpoints

POST/v1/chat/completions

Create chat completion

POST/v1/images/generations

Generate image

POST/v1/embeddings

Create embeddings

Authentication

This API requires API Key authentication.

Set the required environment variables in your MCP client before using this server. Refer to the OpenAI API API documentation to obtain credentials.

Required environment variables:

  • OPENAI_API_KEY

Spec Version

Version: 1.0.0

Spec version published with the OpenAPI document. Config auto-updates when the spec changes.

Page last updated: June 13, 2026

Quality Score

78/99Good
  • +Official source (+30)
  • +Has documentation (+12)
  • +GitHub repo (+12)
  • +Auth type defined (+8)
  • +OpenAPI spec available (+8)
  • +3 endpoints (+8)

Build with OpenAI API

Get everything you need in one bundle: MCP config, cursor rules, and framework integration for OpenAI API.

View OpenAI + Python AI Stack

Read the Guide

Step-by-step walkthrough for setting up and using the OpenAI API MCP server.

OpenAI APIMCP Setup Guide →

This listing is verified by the API owner.