OpenAI MCP Server

OpenAI MCP Server

Bridge between Claude and OpenAI models using the MCP protocol.

77
Stars
19
Forks
77
Watchers
6
Issues
OpenAI MCP Server enables direct querying of OpenAI language models from Claude via the Model Context Protocol (MCP). It provides a configurable Python server that exposes OpenAI APIs as MCP endpoints. The server is designed for seamless integration, requiring simple configuration updates and environment variable setup. Automated testing is supported to verify connectivity and response from the OpenAI API.

Key Features

Direct querying of OpenAI models via MCP
Compatible with Claude through standardized MCP interface
Python-based server implementation
Simple JSON configuration for integration
Environment variable support for secure API key management
Support for automated testing with pytest
Readable console output for responses
MIT licensed for flexible use
Installation via pip in editable mode
Preview image for UI context

Use Cases

Integrating OpenAI models into Claude's workflow
Standardizing communication with AI models using MCP
Bridging proprietary and open-source AI tools
Programmatically querying OpenAI through custom interfaces
Automated testing of OpenAI API connections
Securing API access with environment variable controls
Rapid development of AI-powered features in Python
Simplifying multi-model orchestration in AI applications
Learning about MCP protocol implementations
Prototyping new AI tools leveraging OpenAI and Claude

README

OpenAI MCP Server

Query OpenAI models directly from Claude using MCP protocol.

preview

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

Star History

Star History Chart

Repository Owner

Repository Details

Language Python
Default Branch main
Size 178 KB
Contributors 1
License MIT License
MCP Verified Nov 12, 2025

Programming Languages

Python
100%

Tags

Join Our Newsletter

Stay updated with the latest AI tools, news, and offers by subscribing to our weekly newsletter.

We respect your privacy. Unsubscribe at any time.

Related MCPs

Discover similar Model Context Protocol servers

  • Perplexity MCP Server

    Perplexity MCP Server

    MCP Server integration for accessing the Perplexity API with context-aware chat completion.

    Perplexity MCP Server provides a Model Context Protocol (MCP) compliant server that interfaces with the Perplexity API, enabling chat completion with citations. Designed for seamless integration with clients such as Claude Desktop, it allows users to send queries and receive context-rich responses from Perplexity. Environment configuration for API key management is supported, and limitations with long-running requests are noted. Future updates are planned to enhance support for client progress reporting.

    • 85
    • MCP
    • tanigami/mcp-server-perplexity
  • any-chat-completions-mcp

    any-chat-completions-mcp

    Integrate multiple AI chat providers with OpenAI-compatible MCP server.

    any-chat-completions-mcp is a TypeScript-based server implementing the Model Context Protocol (MCP) to connect popular AI chat providers like OpenAI, Perplexity, Groq, xAI, and PyroPrompts via a unified interface. It relays chat/completion requests to any OpenAI SDK-compatible API, allowing users to easily access multiple AI services through the same standardized protocol. The server can be configured for different providers by setting environment variables and integrates with both Claude Desktop and LibreChat.

    • 143
    • MCP
    • pyroprompts/any-chat-completions-mcp
  • mcp-cli

    mcp-cli

    A command-line inspector and client for the Model Context Protocol

    mcp-cli is a command-line interface tool designed to interact with Model Context Protocol (MCP) servers. It allows users to run and connect to MCP servers from various sources, inspect available tools, resources, and prompts, and execute commands non-interactively or interactively. The tool supports OAuth for various server types, making integration and automation seamless for developers working with MCP-compliant servers.

    • 391
    • MCP
    • wong2/mcp-cli
  • FastMCP

    FastMCP

    The fast, Pythonic way to build MCP servers and clients.

    FastMCP is a production-ready framework for building Model Context Protocol (MCP) applications in Python. It streamlines the creation of MCP servers and clients, providing advanced features such as enterprise authentication, composable tools, OpenAPI/FastAPI generation, server proxying, deployment tools, and comprehensive client libraries. Designed for ease of use, it offers both standard protocol support and robust utilities for production deployments.

    • 20,201
    • MCP
    • jlowin/fastmcp
  • MCP Manager for Claude Desktop

    MCP Manager for Claude Desktop

    A desktop app to manage Model Context Protocol (MCP) servers for Claude Desktop on MacOS.

    MCP Manager for Claude Desktop provides a user-friendly interface to manage Model Context Protocol (MCP) servers, enabling Claude to access private data, APIs, and local or remote services securely from a MacOS desktop. It facilitates rapid configuration and integration with a wide variety of MCP servers, including productivity tools, databases, and web APIs. The app runs locally to ensure data privacy and streamlines connecting Claude to new sources through simple environment and server settings management.

    • 270
    • MCP
    • zueai/mcp-manager
  • MCP-wolfram-alpha

    MCP-wolfram-alpha

    An MCP server for querying the Wolfram Alpha API.

    MCP-wolfram-alpha provides an implementation of the Model Context Protocol, enabling integration with the Wolfram Alpha API. It exposes prompts and tools to facilitate AI systems in answering natural language queries by leveraging Wolfram Alpha's computational knowledge engine. The server requires an API key and offers configuration examples for seamless setup and development.

    • 64
    • MCP
    • SecretiveShell/MCP-wolfram-alpha
  • Didn't find tool you were looking for?

    Be as detailed as possible for better results