
Store and retrieve entities, relations and observations in a persistent local knowledge graph.

A Model Context Protocol server that lets AI assistants call OpenAI's ChatGPT API for chat completion, model listing, and image generation.
OpenAI MCP Server is cataloged as an MCP server attributed to akiojin. A Model Context Protocol server that lets AI assistants call OpenAI's ChatGPT API for chat completion, model listing, and image generation. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for OpenAI MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Generated images are saved as temporary files, and the response includes file paths instead of base64 data to minimize token usage.
Yes, reasoning_effort is a GPT-5 only parameter controlling reasoning depth from minimal to high.
README.md · ed5c48f592f3 · 采集于 2026-11-13 13:50:06 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
A Model Context Protocol (MCP) server that enables AI assistants to interact with OpenAI's ChatGPT API.
# Clone the repository
git clone https://github.com/akiojin/openai-mcp-server.git
cd openai-mcp-server
# Install dependencies
npm install
# Build the project
npm run build
.env file in the project root:cp .env.example .env
.env file:OPENAI_API_KEY=your_api_key_here
このMCPサーバーは、Claude CodeなどのAIアシスタントから呼び出して使用することを想定しています:
Add the server to your MCP client configuration:
{
"servers": {
"openai": {
"command": "node",
"args": ["path/to/openai-mcp-server/dist/index.js"]
}
}
}
Generate text using ChatGPT.
Parameters:
model (string, optional): Model to use (default: "gpt-4.1")messages (array, required): Chat history with role and contenttemperature (number, optional): Sampling temperature 0-2 (default: 0.7)
max_tokens (number, optional): Maximum tokens to generate
reasoning_effort (string, optional): GPT-5 only - Controls reasoning depth
minimal: Fast responses, no reasoning tokenslow: Light reasoningmedium: Standard reasoning (default)high: Deep reasoning for complex analysisverbosity (string, optional): GPT-5 only - Response length (low/medium/high)List all available OpenAI models.
Generate images using gpt-image-1 model. Returns file paths for generated images saved in temporary directory.
Parameters:
prompt (string, required): Text description of the desired image(s). Maximum 1000 characters.model (string, optional): Model to use (default: "gpt-image-1")n (number, optional): Number of images to generate 1-10 (default: 1)size (string, optional): Size of images - "1024x1024", "1024x1536", "1536x1024", or "auto" (default: "1024x1024")quality (string, optional): Quality - "low", "medium", "high", or "auto" (default: "auto")background (string, optional): Background type - "opaque" or "transparent" (default: "opaque")Note: Generated images are saved as temporary files to minimize token usage. The response includes file paths instead of base64 data.
Example:
{
"prompt": "A beautiful sunset over mountains",
"size": "1024x1024",
"quality": "high",
"background": "opaque"
}
# Run in development mode with hot reload
npm run dev
# Build for production
npm run build
# Watch mode for development
npm run watch
openai-mcp-server/
├── src/
│ └── index.ts # Main server implementation
├── dist/ # Compiled JavaScript (generated)
├── .env # Environment variables (create from .env.example)
├── .env.example # Example environment configuration
├── package.json # Project dependencies and scripts
├── tsconfig.json # TypeScript configuration
└── README.md # This file
MIT License - see LICENSE file for details
This project uses semantic-release for automated versioning and publishing.
Follow Conventional Commits format:
<type>(<scope>): <description>
[optional body]
[optional footer(s)]
feat: new feature (minor version bump)fix: bug fix (patch version bump)BREAKING CHANGE: breaking change (major version bump)docs: documentation changes (patch version bump)style: formatting changes (patch version bump)refactor: code refactoring (patch version bump)test: adding tests (patch version bump)chore: maintenance tasks (patch version bump)# New feature (0.1.0 → 0.2.0)
feat: add streaming support for chat completion
# Bug fix (0.1.0 → 0.1.1)
fix: handle connection timeout properly
# Breaking change (0.1.0 → 1.0.0)
feat: redesign API interface
BREAKING CHANGE: The chat_completion tool now requires a different parameter structure
# Interactive commit with commitizen
npm run commit
# Test release without publishing
npm run release:dry-run
# Manual release (usually handled by CI)
npm run release
git checkout -b feature/amazing-feature)git push origin feature/amazing-feature)For issues and feature requests, please use the GitHub issue tracker.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for OpenAI MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/openai-mcp-server-akiojin)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

Organize problem solving into revisable, branching thought steps through an MCP tool.

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.