SuperAPI AI Directory

mcp-openai

Chat with OpenAI models.

Open website

About this tool

Purpose

mcp-openai is a Model Context Protocol (MCP) server designed to let users seamlessly use OpenAI's models from Claude Desktop. Through this server, users can call OpenAI's chat models for conversations without leaving the Claude interface.

Main Capabilities

  • Direct integration with OpenAI chat models.
  • Supports multiple models, including: gpt-4o, gpt-4o-mini, o1-preview, o1-mini.
  • Provides a simple message-passing interface.
  • Includes basic error handling.

Usage

Prerequisites

  • Node.js >= 18 (including npm and npx).
  • Claude Desktop application.

Configuration Steps

  1. Make sure the Claude Desktop application is installed and that you have applied for an OpenAI API key.
  2. Add the corresponding entry in claude_desktop_config.json (on Mac, this file is located at ~/Library/Application Support/Claude/claude_desktop_config.json).
  3. This configuration lets Claude Desktop start the OpenAI MCP server when needed.
  4. Start chatting with Claude, and when you want to use OpenAI models, ask Claude to use them.

Available Tools

The server currently supports the following models:

  • gpt-4o (default)
  • gpt-4o-mini
  • o1-preview
  • o1-mini

The tool openai_chat is used to send messages to OpenAI's chat completion API. Parameters:

  • messages: message array (required).
  • model: which model to use (optional, defaults to gpt-4o).

Applicable Scenarios

Suitable for users who want to directly call OpenAI models for conversations within the Claude Desktop environment, such as scenarios where they need to compare outputs from different models or leverage the capabilities of specific OpenAI models.

Limitations

This software is currently in the alpha stage and may contain bugs. If you encounter problems, you can check Claude Desktop's MCP logs. Verified platform information is not yet available.