OpenAI MCP Server

Python
MIT
26
A
security – no known vulnerabilities (report Issue)
A
license - permissive license (MIT)
A
quality - confirmed to work

Query OpenAI models directly from Claude using MCP protocol.

  1. Tools
  2. Prompts
  3. Resources
  4. Server Configuration
  5. README.md

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
ask-openaiAsk my assistant models a direct question

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PYTHONPATHYesThe path to your MCP server OpenAI directory
OPENAI_API_KEYYesYour OpenAI API key
README.md

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

GitHub Badge

Glama performs regular codebase and documentation scans to:

  • Confirm that the MCP server is working as expected.
  • Confirm that there are no obvious security issues with dependencies of the server.
  • Extract server characteristics such as tools, resources, prompts, and required parameters.

Our directory badge helps users to quickly asses that the MCP server is safe, server capabilities, and instructions for installing the server.

Copy the following code to your README.md file:

Alternative MCP servers

  • -
    security
    -
    license
    -
    quality
    Tools for executing JQL queries. Tools for creating, editing, and deleting Jira tickets. Tools for listing Jira projects and statuses
    • Apple
  • -
    security
    F
    license
    -
    quality
    A minimal server/client application implementation utilizing the Model Context Protocol (MCP) and Azure OpenAI.
  • -
    security
    -
    license
    -
    quality
    A Model Context Protocol (MCP) server for managing Microsoft 365 environments through Claude or other AI assistants. This server provides comprehensive management capabilities for users, groups, teams, SharePoint, and device management in Microsoft 365.
  • -
    security
    A
    license
    -
    quality
    A simple MCP server for interacting with OpenAI assistants. This server allows other tools (like Claude Desktop) to create and interact with OpenAI assistants through the Model Context Protocol.
    MIT
    • Apple