mcp-server-openai

This project is an MCP protocol server that allows querying OpenAI models directly from Claude. It features easy setup and runs in a Python environment. It also includes testing capabilities, ensuring smooth integration with the OpenAI API.

GitHub Stars

66

User Rating

Not Rated

Forks

15

Issues

4

Views

1

Favorites

0

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

Author Information
Pierre Brunelle

Doing New Things. ex-founder @noteable-io (acq by @confluentinc ) | formerly Amazon, AWS, & Siemens … Decision Scientist & Structural Engineer

PixeltableSeattle

14

Followers

39

Repositories

1

Gists

3

Total Contributions

Top Contributors

Threads