Back to MCP Catalog

OpenAI Integration MCP Server

Developer ToolsTypeScript
Access OpenAI models directly from Claude Desktop
Available Tools

openai_chat

Sends messages to OpenAI's chat completion API. Supports models like gpt-4o, gpt-4o-mini, o1-preview, and o1-mini.

messagesmodel

This integration allows you to seamlessly use OpenAI's powerful language models directly within Claude Desktop. With support for multiple models including GPT-4o, GPT-4o-mini, o1-preview, and o1-mini, you can leverage OpenAI's capabilities without leaving your Claude environment. The integration provides a simple message passing interface that makes it easy to switch between Claude and OpenAI models during your conversations.

Overview

The OpenAI Integration allows you to access OpenAI's language models directly from within Claude Desktop. This enables you to leverage the unique strengths of different AI models in a single interface, creating a more versatile and powerful AI assistant experience.

Prerequisites

Before installing this integration, you'll need:

Installation

To install the OpenAI Integration:

  1. Make sure you have the Claude Desktop application installed

  2. Obtain an OpenAI API key from the OpenAI platform

  3. Locate your Claude Desktop configuration file:

    • On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Create the file if it doesn't exist
  4. Add the following configuration to your claude_desktop_config.json file:

{
  "mcpServers": {
    "mcp-openai": {
      "command": "npx",
      "args": ["-y", "@mzxrai/mcp-openai@latest"],
      "env": {
        "OPENAI_API_KEY": "your-api-key-here"
      }
    }
  }
}
  1. Replace "your-api-key-here" with your actual OpenAI API key
  2. Save the file and restart Claude Desktop

Usage

Once installed, you can use OpenAI models by simply asking Claude to use them in your conversation. For example:

  • "Can you ask o1 what it thinks about this problem?"
  • "What does gpt-4o think about this?"

The integration currently supports the following OpenAI models:

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

Troubleshooting

If you encounter any issues:

  1. Check that your OpenAI API key is valid and has sufficient credits
  2. Verify that your configuration file is correctly formatted
  3. Check Claude Desktop's MCP logs:
    tail -n 20 -f ~/Library/Logs/Claude/mcp*.log
    
  4. Ensure you have Node.js 18 or higher installed

Limitations

  • This is alpha software and may have bugs
  • Currently verified only on macOS
  • API usage will count against your OpenAI account credits

Related MCPs

Apple Shortcuts
Developer ToolsJavaScript

Control Apple Shortcuts automations from AI assistants

Clojars Dependency Lookup
Developer ToolsJavaScript

Fetch dependency information from Clojars, the Clojure community's artifact repository

Simple Timeserver
Developer ToolsPython

Provides Claude with current time and timezone information

About Model Context Protocol

Model Context Protocol (MCP) allows AI models to access external tools and services, extending their capabilities beyond their training data.

Generate Cursor Documentation

Save time on coding by generating custom documentation and prompts for Cursor IDE.