OpenAI模型查询服务

通过MCP协议直接从Claude查询OpenAI模型的服务,适用于需要集成OpenAI模型的开发场景。

  • by akash-founderdash
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 akash-founderdash/openai-mcp-server

使用说明

OpenAI MCP服务器

使用MCP协议直接从Claude查询OpenAI模型。

设置

增添 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"
      }
    }
  }
}

发展

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

测试

# 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

许可证

MIT许可证