Skip to content
MCP-Bridge
AI & ML

OpenAI API MCP Config

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

Config URL

Use this URL in any MCP-compatible client to fetch the config automatically.

https://mcp-bridge.pages.dev/config/openai.json

Configuration JSON

Use curl https://mcp-bridge.pages.dev/config/openai.json to fetch programmatically.

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

How to Use

Claude Desktop

Paste the config JSON into your claude_desktop_config.json.

Full instructions →

Cursor

Go to Cursor Settings → MCP Servers → Add with the JSON above.

CLI / curl

Fetch the config programmatically:

curl https://mcp-bridge.pages.dev/config/openai.json

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