
mcp-openai
Chat with OpenAI models from Claude Desktop
3 years
Works with Finder
2
Github Watches
15
Github Forks
39
Github Stars
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
-
Node.js >= 18 (includes
npm
andnpx
) - Claude Desktop app
- OpenAI API key
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
-
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
相关推荐
I find academic articles and books for research and literature reviews.
Converts Figma frames into front-end code for various mobile frameworks.
Confidential guide on numerology and astrology, based of GG33 Public information
Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.
Delivers concise Python code and interprets non-English comments
Advanced software engineer GPT that excels through nailing the basics.
💬 MaxKB is a ready-to-use AI chatbot that integrates Retrieval-Augmented Generation (RAG) pipelines, supports robust workflows, and provides advanced MCP tool-use capabilities.
MCP server to provide Figma layout information to AI coding agents like Cursor
Micropython I2C-based manipulation of the MCP series GPIO expander, derived from Adafruit_MCP230xx
The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, No-code agent builder, MCP compatibility, and more.
AI Agents & MCPs & AI Workflow Automation • (280+ MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
Reviews

user_6nOR7Lzv
I'm a huge fan of the mcp-openai application! This tool, crafted by mzxrai, is incredibly efficient and user-friendly. The versatile language support makes it accessible for developers globally. The product link provided (https://github.com/mzxrai/mcp-openai) leads directly to the repository, making it easy to start. The welcome information is warm and inviting, ensuring a smooth onboarding experience. Highly recommended for anyone looking to integrate AI seamlessly!