A Model Context Protocol (MCP) server that lets you seamlessly use OpenAI's models right from Claude. - Direct integration with OpenAI's chat models - Support for multiple models including: - gpt-4o-mini - o1-preview - Simple message passing interface - Basic error handling - Node.js >= 18 (includes npm and npx) - Claude Desktop app - OpenAI API key First, make sure you've got the Claude Desktop a
Add this skill
npx mdskills install mzxrai/mcp-openaiClean MCP server enabling Claude to query OpenAI models with straightforward setup and clear usage examples
1# MCP OpenAI Server23A Model Context Protocol (MCP) server that lets you seamlessly use OpenAI's models right from Claude.45## Features67- Direct integration with OpenAI's chat models8- Support for multiple models including:9 - gpt-4o10 - gpt-4o-mini11 - o1-preview12 - o1-mini13- Simple message passing interface14- Basic error handling1516## Prerequisites1718- [Node.js](https://nodejs.org/) >= 18 (includes `npm` and `npx`)19- [Claude Desktop app](https://claude.ai/download)20- [OpenAI API key](https://platform.openai.com/api-keys)2122## Installation2324First, make sure you've got the [Claude Desktop app](https://claude.ai/download) installed and you've requested an [OpenAI API key](https://platform.openai.com/api-keys).2526Add this entry to your `claude_desktop_config.json` (on Mac, you'll find it at `~/Library/Application\ Support/Claude/claude_desktop_config.json`):2728```json29{30 "mcpServers": {31 "mcp-openai": {32 "command": "npx",33 "args": ["-y", "@mzxrai/mcp-openai@latest"],34 "env": {35 "OPENAI_API_KEY": "your-api-key-here (get one from https://platform.openai.com/api-keys)"36 }37 }38 }39}40```4142This config lets Claude Desktop fire up the OpenAI MCP server whenever you need it.4344## Usage4546Just start chatting with Claude and when you want to use OpenAI's models, ask Claude to use them.4748For example, you can say,4950```plaintext51Can you ask o1 what it thinks about this problem?52```5354or,5556```plaintext57What does gpt-4o think about this?58```5960The server currently supports these models:6162- gpt-4o (default)63- gpt-4o-mini64- o1-preview65- o1-mini6667### Tools68691. `openai_chat`70 - Sends messages to OpenAI's chat completion API71 - Arguments:72 - `messages`: Array of messages (required)73 - `model`: Which model to use (optional, defaults to gpt-4o)7475## Problems7677This is alpha software, so may have bugs. If you have an issue, check Claude Desktop's MCP logs:7879```bash80tail -n 20 -f ~/Library/Logs/Claude/mcp*.log81```8283## Development8485```bash86# Install dependencies87pnpm install8889# Build the project90pnpm build9192# Watch for changes93pnpm watch9495# Run in development mode96pnpm dev97```9899## Requirements100101- Node.js >= 18102- OpenAI API key103104## Verified Platforms105106- [x] macOS107- [ ] Linux108109## License110111MIT112113## Author114115[mzxrai](https://github.com/mzxrai)
Full transparency — inspect the skill content before installing.