# pierrebrunelle/mcp-server-openai [Health: Active]

**Category:** 🛠️ Other Tools and Integrations  
**Repository:** https://github.com/pierrebrunelle/mcp-server-openai  
**GitHub Stars:** 84  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/pierrebrunelle-mcp-server-openai

## Description
Query OpenAI models directly from Claude using MCP protocol

## Claude Desktop Quick Installation
Heuristic fallback — verify the package name and runner against the repository README before running it. Uses `npx` (confidence: low):

```json
"mcpServers": {
  "mcp-server-openai": {
    "command": "npx",
    "args": ["-y","pierrebrunelle-mcp-server-openai"],
    "env": {
      "OPENAI_API_KEY": "",
      "PYTHONPATH": ""
    }
  }
}
```

**Requires environment variables:** `OPENAI_API_KEY`, `PYTHONPATH` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation & README

# OpenAI MCP Server

Query OpenAI models directly from Claude using MCP protocol.

![preview](https://raw.githubusercontent.com/pierrebrunelle/mcp-server-openai/HEAD/preview.png)

## Setup

Add to `claude_desktop_config.json`:

```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
```bash
git clone https://github.com/pierrebrunelle/mcp-server-openai
cd mcp-server-openai
pip install -e .
```

## Testing
```python
# 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

