OpenAI API MCP Server
APIs for sampling from and fine-tuning language models
Quick Answer
- 1. The OpenAI API MCP server lets Claude, Cursor, and VS Code interact with the OpenAI API API through natural language.
- 2. Setup: Add the config to
claude_desktop_config.json, set your environment variables, and restart. - 3. 10 operations available including Answers the specified question using the provided documents and examples. The endpoint first [searches](/docs/api-reference/searches) over provided documents or files to find relevant context. The relevant context is combined with the provided examples and question to create the prompt for [completion](/docs/api-reference/completions). , Transcribes audio into the input language., Translates audio into into English., and more.
- 4. Quality score: 34/99 — fair source quality and documentation coverage.
Overview
Category: AI & ML
Auth: None
Endpoints: 10
Transport: STDIO
Command: npx -y @mcp/openai-com
Spec: v1.2.0
Setup time: ~30 sec (no auth)
Environment Variables
OPENAI_API_API_KEYExample: your_openai_api_api_key
One-Click Install
Copy the snippet for your MCP client and paste it in — zero editing required.
Claude Desktop
Add to claude_desktop_config.json
{
"mcpServers": {
"openai-com": {
"command": "npx",
"args": [
"-y",
"@mcp/openai-com"
],
"env": {
"OPENAI_API_API_KEY": "your_openai_api_api_key"
}
}
}
}Cursor
Settings → MCP Servers → Add
{
"mcpServers": {
"openai-com": {
"url": "https://mcpbridge.org/config/openai-com.json"
}
}
}Saves as .cursor/mcp.json in the download. Move it to your project root.
VS Code
Use with MCP extension
{
"mcpServers": {
"openai-com": {
"url": "https://mcpbridge.org/config/openai-com.json"
}
}
}MCP Server Configuration
Add this to your claude_desktop_config.json or Cursor MCP settings.
{
"mcpServers": {
"openai-com": {
"command": "npx",
"args": ["-y","@mcp/openai-com"],
"env": {
"OPENAI_API_API_KEY": "your_openai_api_api_key"
}
}
}
}What You Can Build
With the OpenAI API MCP server, your AI assistant can:
- Access 10 API operations through natural language
- Read, create, and modify ai & ml resources without writing HTTP requests
- Chain multiple operations in a single conversation for complex workflows
- Combine with other MCP servers for cross-tool automation
Endpoints
/answersAnswers the specified question using the provided documents and examples. The endpoint first [searches](/docs/api-reference/searches) over provided documents or files to find relevant context. The relevant context is combined with the provided examples and question to create the prompt for [completion](/docs/api-reference/completions).
/audio/transcriptionsTranscribes audio into the input language.
/audio/translationsTranslates audio into into English.
/chat/completionsCreates a completion for the chat message
/classificationsClassifies the specified `query` using provided examples. The endpoint first [searches](/docs/api-reference/searches) over the labeled examples to select the ones most relevant for the particular query. Then, the relevant examples are combined with the query to construct a prompt to produce the final label via the [completions](/docs/api-reference/completions) endpoint. Labeled examples can be provided via an uploaded `file`, or explicitly listed in the request using the `examples` parameter for quick tests and small scale use cases.
/completionsCreates a completion for the provided prompt and parameters
/editsCreates a new edit for the provided input, instruction, and parameters.
/embeddingsCreates an embedding vector representing the input text.
/enginesLists the currently available (non-finetuned) models, and provides basic information about each one such as the owner and availability.
/engines/{engine_id}Retrieves a model instance, providing basic information about it such as the owner and availability.
Authentication
No authentication required. This MCP server can be used without API keys.
Spec Version
Version: 1.2.0
Spec version published with the OpenAPI document. Config auto-updates when the spec changes.
Page last updated: June 13, 2026
Quality Score
- +Auto-generated (+12)
- +OpenAPI spec available (+8)
- +10 endpoints (+14)
Own this API?
Claim your listing to update description, links, and category — and get a verified badge.
Claim this listing →Similar APIs
Other APIs in the AI & ML category.
OpenAI API
Generate text, images, and embeddings. Integrate GPT models and DALL-E into your AI agent.
API KeyAnthropic API
Access Claude AI models for text generation, analysis, and code assistance through the Anthropic API.
API KeyAmazon CodeGuru Reviewer
<p>This section provides documentation for the Amazon CodeGuru Reviewer API operations. CodeGuru Reviewer is a service that uses program analysis and machine learning to detect potential defects that are difficult for developers to find and recommends fixes in your Java and Python code.</p> <p>By pr
Amazon CodeGuru Profiler
<p> This section provides documentation for the Amazon CodeGuru Profiler API operations. </p> <p> Amazon CodeGuru Profiler collects runtime performance data from your live applications, and provides recommendations that can help you fine-tune your application performance. Using machine learning algo