ai-ml

OpenAI Chat

by mzxrai

Chat with OpenAI to generate text using advanced language models. Try qchat gpt and explore chat openai features now!

Generate text using OpenAI's language models.

github stars

71

Supports latest OpenAI models including o1-previewWorks directly within Claude conversationsNo additional setup beyond API key

best for

  • / Comparing responses between Claude and OpenAI models
  • / Accessing OpenAI's specialized reasoning models
  • / Getting second opinions from different AI models

capabilities

  • / Generate text with GPT-4o and GPT-4o-mini models
  • / Access OpenAI's o1-preview and o1-mini reasoning models
  • / Send multi-message conversations to OpenAI models
  • / Switch between different OpenAI models in one conversation

what it does

Lets you generate text using OpenAI's language models (GPT-4o, o1-preview, etc.) directly from within Claude conversations.

about

OpenAI Chat is a community-built MCP server published by mzxrai that provides AI assistants with tools and capabilities via the Model Context Protocol. Chat with OpenAI to generate text using advanced language models. Try qchat gpt and explore chat openai features now! It is categorized under ai ml.

how to install

You can install OpenAI Chat in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

license

MIT

OpenAI Chat is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

readme

MCP OpenAI Server

A Model Context Protocol (MCP) server that lets you seamlessly use OpenAI's models right from Claude.

Features

  • Direct integration with OpenAI's chat models
  • Support for multiple models including:
    • gpt-4o
    • gpt-4o-mini
    • o1-preview
    • o1-mini
  • Simple message passing interface
  • Basic error handling

Prerequisites

Installation

First, make sure you've got the Claude Desktop app installed and you've requested an OpenAI API key.

Add this entry to your claude_desktop_config.json (on Mac, you'll find it at ~/Library/Application\ Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "mcp-openai": {
      "command": "npx",
      "args": ["-y", "@mzxrai/mcp-openai@latest"],
      "env": {
        "OPENAI_API_KEY": "your-api-key-here (get one from https://platform.openai.com/api-keys)"
      }
    }
  }
}

This config lets Claude Desktop fire up the OpenAI MCP server whenever you need it.

Usage

Just start chatting with Claude and when you want to use OpenAI's models, ask Claude to use them.

For example, you can say,

Can you ask o1 what it thinks about this problem?

or,

What does gpt-4o think about this?

The server currently supports these models:

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

Tools

  1. openai_chat
    • Sends messages to OpenAI's chat completion API
    • Arguments:
      • messages: Array of messages (required)
      • model: Which model to use (optional, defaults to gpt-4o)

Problems

This is alpha software, so may have bugs. If you have an issue, check Claude Desktop's MCP logs:

tail -n 20 -f ~/Library/Logs/Claude/mcp*.log

Development

# Install dependencies
pnpm install

# Build the project
pnpm build

# Watch for changes
pnpm watch

# Run in development mode
pnpm dev

Requirements

  • Node.js >= 18
  • OpenAI API key

Verified Platforms

  • macOS
  • Linux

License

MIT

Author

mzxrai