OpenAI MCP Server
A Model Context Protocol (MCP) server for interacting with OpenAI's API. This server allows Claude and other MCP-compatible AI assistants to use OpenAI's models.
Installation
npm install -g openai-mcp-server
Or use it directly with npx:
npx openai-mcp-server YOUR_OPENAI_API_KEY
Usage
Command Line
Run the server with your OpenAI API key:
openai-mcp-server YOUR_OPENAI_API_KEY
With Claude Desktop
Add the following to your Claude Desktop configuration file (located at ~/Library/Application Support/Claude/claude_desktop_config.json
):
{
"mcpServers": {
"openai": {
"command": "npx",
"args": [
"openai-mcp-server",
"YOUR_OPENAI_API_KEY"
]
}
}
}
Replace YOUR_OPENAI_API_KEY
with your actual OpenAI API key.
Features
- Allows Claude to use OpenAI's models through the Model Context Protocol
- Simple setup and configuration
- Supports passing prompts to OpenAI and receiving responses
License
MIT