Openai MCP Server

An MCP server to communicated with, use, and wrap the API for the OpenAI Codex CLI tool.

Local serverstdioPython

What is the Openai MCP Server?

An MCP server to communicated with, use, and wrap the API for the OpenAI Codex CLI tool.

The short version

This project provides a simple JSON-RPC server that allows Claude Code to interact with the OpenAI Codex CLI tool. This enables Claude Code to use OpenAI's models for code generation, explanation, and problem-solving when needed.

What it needs from you

  • Python 3.12+ - OpenAI Codex CLI tool (npm install -g @openai/codex) - Valid OpenAI API key (for the Codex CLI, not for this server)

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Configuration

  • Python 3.12+ - OpenAI Codex CLI tool (npm install -g @openai/codex) - Valid OpenAI API key (for the Codex CLI, not for this server)

Frequently asked questions

It provides a JSON-RPC interface specifically designed for Claude Code, with dedicated methods for common coding tasks and simplified parameter naming.