Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AIFire in da houseCheck it out free

mcp-server-openai

MCP.Pizza Chef: pierrebrunelle

The mcp-server-openai is an MCP server that facilitates direct querying of OpenAI language models from the Claude environment using the Model Context Protocol (MCP). It acts as a bridge allowing seamless integration and communication between Claude and OpenAI's API, enabling real-time, structured interactions with OpenAI models. This server supports easy setup and development, with configuration through JSON and Python-based implementation, making it ideal for developers looking to leverage OpenAI's capabilities within the MCP ecosystem.

Use This MCP server To

Integrate OpenAI models into Claude via MCP Enable real-time querying of OpenAI APIs from Claude Bridge Claude with OpenAI for enhanced AI workflows Test and develop OpenAI interactions using MCP protocol Configure OpenAI API access within MCP environments

README

OpenAI MCP Server

Query OpenAI models directly from Claude using MCP protocol.

preview

Setup

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "openai-server": {
      "command": "python",
      "args": ["-m", "src.mcp_server_openai.server"],
      "env": {
        "PYTHONPATH": "C:/path/to/your/mcp-server-openai",
        "OPENAI_API_KEY": "your-key-here"
      }
    }
  }
}

Development

git clone https://github.com/pierrebrunelle/mcp-server-openai
cd mcp-server-openai
pip install -e .

Testing

# Run tests from project root
pytest -v test_openai.py -s

# Sample test output:
Testing OpenAI API call...
OpenAI Response: Hello! I'm doing well, thank you for asking...
PASSED

License

MIT License

mcp-server-openai FAQ

How do I configure the mcp-server-openai for use with Claude?
Add the server configuration to your claude_desktop_config.json with the command, arguments, and environment variables including your OPENAI_API_KEY.
What programming language is used to run the mcp-server-openai?
The server runs using Python, which can be started with a command like 'python -m src.mcp_server_openai.server'.
Can I test the mcp-server-openai locally?
Yes, you can run tests using pytest with the provided test_openai.py script to verify OpenAI API calls.
Is the mcp-server-openai open source?
Yes, it is licensed under the MIT License and available on GitHub for cloning and development.
What environment variables are required to run the mcp-server-openai?
You need to set the OPENAI_API_KEY environment variable to authenticate with OpenAI's API.
Does the mcp-server-openai support other LLM providers besides OpenAI?
This server specifically targets OpenAI models, but MCP supports other providers like Claude and Gemini through different servers.
How do I install the mcp-server-openai for development?
Clone the GitHub repository and install dependencies using 'pip install -e .' from the project root.
Can the mcp-server-openai be integrated with other MCP clients?
Yes, as an MCP server, it can be integrated with any MCP-compliant client that supports the protocol.