Openai MCP logo

Openai MCP

by @dancommitsgit

Connects MCP clients to OpenAI models for text, images, audio, embeddings, moderation, and model discovery.

Install Openai MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "dancommitsgit-openai-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@dancommitsgit/openai-mcp"
      ],
      "env": {
        "OPENAI_API_KEY": "YOUR_VALUE_HERE",
        "OPENAI_MCP_TEXT_MODELS": "YOUR_VALUE_HERE",
        "OPENAI_MCP_IMAGE_MODELS": "YOUR_VALUE_HERE",
        "OPENAI_MCP_EMBEDDING_MODELS": "YOUR_VALUE_HERE",
        "OPENAI_MCP_SPEECH_MODELS": "YOUR_VALUE_HERE",
        "OPENAI_MCP_TRANSCRIPTION_MODELS": "YOUR_VALUE_HERE",
        "OPENAI_MCP_TRANSLATION_MODELS": "YOUR_VALUE_HERE",
        "OPENAI_MCP_MODERATION_MODELS": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Automated check passed— started and listed 10 tools correctly ().

Overview

@dancommitsgit/openai-mcp exposes OpenAI capabilities as MCP tools for clients such as Claude, Cursor, Claude Code, and VS Code. It covers text generation and token counting, image creation and editing, speech synthesis, audio transcription and translation, embeddings, moderation, and model listing. Configure an OpenAI API key plus per-tool model allowlists; any tool without a model setting remains disabled. Reach for it when an MCP client needs controlled access to multiple OpenAI APIs through one stdio server.

Use cases

  • Generate text and images from an MCP-enabled assistant
  • Transcribe or translate audio files and URLs
  • Create embeddings for text inputs
  • Moderate text before downstream processing
  • Generate speech files from written content

Key features

  • OpenAI text generation with optional images and web search
  • Image generation and editing with file output
  • Speech synthesis, transcription, and English translation
  • Text embeddings and harmful-content moderation
  • Per-tool model allowlists
  • Model discovery through list_models

Tools10

What Openai MCP lets your agent do. Expand a tool for its parameters.

Verified live~2.5k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

4/4 checks healthy over the last 14d

What it can do

From the 10 tools this server returned when we ran it; 10 declare their own safety hints.

Can delete or modify data · 3Handles credentials · 1Makes network requests · 1Read-only tools · 7
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age64 days
Maintainers1

Observed 2026-11-17 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 14d ago via OSV.dev · @dancommitsgit/openai-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads630Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed10Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Openai MCP works

What @dancommitsgit/openai-mcp does

@dancommitsgit/openai-mcp makes several OpenAI API capabilities available through MCP. It can generate text with optional instructions, images, and web search; estimate the input tokens for a text request; create or edit images; synthesize speech; transcribe audio; translate audio into English; create vector embeddings; inspect text for potentially harmful content; and list available models.

The server is useful when an MCP-compatible assistant needs to call OpenAI models without building separate client-side integrations for each API category. Image and speech generation produce files. Audio inputs for transcription and translation can come from either URLs or local paths.

How it works

The package runs as an MCP server over standard input and output. A client starts it with npx, or runs the compiled JavaScript entry point after building from source. Every capability except list_models is gated by its corresponding model environment variable. A setting can contain a comma-separated list of permitted model IDs, while * allows any model for that tool.

The server checks the API key when the first tool request is made rather than during startup. Calls using models outside the configured list are rejected. Generated image and speech files go to the operating system temporary directory unless the client supplies an outputPath; tool responses include the resulting file path.

Setup and configuration

Node.js 20 or newer and an OpenAI API key are required. The package can be launched with:

config.json
{
  "command": "npx",
  "args": ["-y", "@dancommitsgit/openai-mcp"],
  "env": {
    "OPENAI_API_KEY": "sk-...",
    "OPENAI_MCP_TEXT_MODELS": "gpt-5.4-nano",
    "OPENAI_MCP_IMAGE_MODELS": "gpt-image-2.5-flare",
    "OPENAI_MCP_EMBEDDING_MODELS": "text-embedding-3-small",
    "OPENAI_MCP_SPEECH_MODELS": "gpt-4o-mini-tts",
    "OPENAI_MCP_TRANSCRIPTION_MODELS": "gpt-4o-mini-transcribe",
    "OPENAI_MCP_TRANSLATION_MODELS": "whisper-1",
    "OPENAI_MCP_MODERATION_MODELS": "omni-moderation-latest"
  }
}

Only add the model variables for capabilities the client should be allowed to use. Claude Desktop reads its configuration from the platform-specific claude_desktop_config.json location, Cursor supports project or user MCP configuration, and VS Code uses .vscode/mcp.json. Claude Code can register the server with claude mcp add and the stdio transport. To build locally, clone the repository, run npm install, then npm run build; point the client to build/index.js with Node.js.

Tools and capabilities

  • generate_text: Sends prompts, instructions, images, and web-search requests to an OpenAI model.
  • count_tokens: Estimates tokens for a generate_text request.
  • generate_image: Creates one or more images.
  • edit_image: Modifies or combines existing images from a text instruction.
  • generate_speech: Converts text into audio.
  • transcribe_audio: Produces a transcript from a URL or local file.
  • translate_audio: Converts audio from a URL or local file into English text.
  • create_embeddings: Returns vector embeddings for text inputs.
  • create_moderation: Checks text for potentially harmful content.
  • list_models: Lists models and is always available.

Limitations and notes

This is an unofficial project and is not affiliated with OpenAI. A missing or invalid API key appears as an error on the first tool call. Tool access depends on the configured model allowlists, and generated image or speech output is written to a temporary location unless an output path is supplied.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Openai MCP

@dancommitsgit/openai-mcp is an MCP server that connects MCP clients to OpenAI models through tools for text generation, token counting, image generation and editing, speech, audio transcription and translation, embeddings, moderation, and model listing. It requires an OpenAI API key and per-tool model settings for controlled access.

Install it by configuring your MCP client to run `npx -y @dancommitsgit/openai-mcp`, then set `OPENAI_API_KEY` and the model variables for the tools you want to enable. Node.js 20 or newer is required. You can also clone the repository and run its build commands.

Yes, @dancommitsgit/openai-mcp works with Cursor through its MCP configuration. Save the server definition in `.cursor/mcp.json` for one project or `~/.cursor/mcp.json` for use across projects, and provide the API key and desired model settings.

Set the environment variable associated with each tool's model category. For example, `OPENAI_MCP_TEXT_MODELS` enables text tools and `OPENAI_MCP_IMAGE_MODELS` enables image tools. Omit a variable to keep that category disabled, use comma-separated model IDs to restrict access, or use `*` to allow any model.

It saves generated images and speech files in the operating system's temporary directory by default. A client can provide `outputPath` to choose another location, and the tool returns the resulting file path.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewOpenai MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/dancommitsgit-openai-mcp?style=directory)](https://allmcps.com/mcp/dancommitsgit-openai-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/dancommitsgit-openai-mcp"><img src="https://allmcps.com/api/badge/dancommitsgit-openai-mcp?style=directory" alt="Openai MCP on AllMCPs" /></a>