
OpenAI MCP Server
By pierrebrunelle
GitHub
Query OpenAI models directly from Claude using MCP protocol.
Overview
what is OpenAI MCP Server?
OpenAI MCP Server allows users to query OpenAI models directly from Claude using the MCP protocol.
how to use OpenAI MCP Server?
To use the OpenAI MCP Server, you need to add the server configuration to your claude_desktop_config.json
file and set up the necessary environment variables, including your OpenAI API key.
key features of OpenAI MCP Server?
- Direct querying of OpenAI models from Claude.
- Easy setup with configuration in JSON format.
- Supports Python for development and testing.
use cases of OpenAI MCP Server?
- Integrating OpenAI's language models into desktop applications.
- Automating responses in chat applications using OpenAI's capabilities.
- Testing and developing new features with OpenAI's API.
FAQ from OpenAI MCP Server?
- What is the MCP protocol?
The MCP protocol is a method for communicating with OpenAI models, allowing for efficient queries and responses.
- Is there a license for using OpenAI MCP Server?
Yes, it is licensed under the MIT License, allowing for free use and modification.
- How do I run tests for the OpenAI MCP Server?
You can run tests using pytest by executing
pytest -v test_openai.py -s
from the project root.
Content
OpenAI MCP Server
Query OpenAI models directly from Claude using MCP protocol.
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
No tools information available.
No content found.