MCP OpenAI Server
@mzxrai
MCP OpenAI Server について
Chat with OpenAI models from Claude Desktop
基本情報
設定
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"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)"
}
}
}
}ツール
1`messages`: Array of messages (required)
概要
What is MCP OpenAI Server?
MCP OpenAI Server is a Model Context Protocol (MCP) server that integrates OpenAI’s chat models directly into Claude. It is built for users of Claude Desktop who want to tap into OpenAI’s models (gpt-4o, gpt-4o-mini, o1-preview, o1-mini) from within the same interface.
How to use MCP OpenAI Server?
Install the Claude Desktop app, obtain an OpenAI API key, then add the provided JSON entry to your claude_desktop_config.json file. Once configured, simply ask Claude to query an OpenAI model—for example, “Can you ask o1 what it thinks about this problem?”—and the server handles the rest.
Key features of MCP OpenAI Server
- Direct integration with OpenAI’s chat completion API
- Supports gpt-4o, gpt-4o-mini, o1-preview, and o1-mini
- Simple message‑passing interface from Claude
- Single tool (
openai_chat) with required messages and optional model - Basic error handling
Use cases of MCP OpenAI Server
- Get an OpenAI model’s response without leaving Claude Desktop
- Compare answers from different models side by side
- Use o1‑preview or o1‑mini for reasoning‑heavy tasks
- Prototype multi‑model workflows inside Claude
FAQ from MCP OpenAI Server
What dependencies does MCP OpenAI Server need?
Node.js 18 or higher and an OpenAI API key are required. The server also depends on the Claude Desktop app for runtime configuration.
Where is the configuration file located?
On macOS, the JSON configuration lives at ~/Library/Application\ Support/Claude/claude_desktop_config.json.
Which platforms are verified?
macOS is verified; Linux is not yet supported.
What tools does it expose?
It exposes one tool, openai_chat, which accepts a required messages array and an optional model parameter (defaults to gpt-4o).
Is authentication handled?
The server expects your OpenAI API key to be set in the environment variable OPENAI_API_KEY inside the MCP server configuration.
「AI とエージェント」の他のコンテンツ
MCP Claude Code
SDGLBLMCP implementation of Claude Code capabilities and more
Hass-MCP
voskaControl and query Home Assistant from Claude and other LLMs — a Model Context Protocol (MCP) server.
MCP-LLM Bridge
patruffBridge between Ollama and MCP servers, enabling local LLMs to use Model Context Protocol tools
meGPT - upload an author's content into an LLM
adriancoCode to process many kinds of content by an author into an MCP server
MCP Server - Remote MacOs Use
baryhuangThe only general AI agent that does NOT requires extra API key, giving you full control on your local and remote MacOs from Claude Desktop App
コメント