Skip to main content

Announcing StackOne Defender: leading open-source prompt injection guard for your agent Read More

OpenAI MCP Server
for AI Agents

Production-ready OpenAI MCP server with 110 extensible actions — plus built-in authentication, security, and optimized execution.

OpenAI logo
OpenAI MCP Server
Built by StackOne StackOne

Coverage

110 Agent Actions

Create, read, update, and delete across OpenAI — and extend your agent's capabilities with custom actions.

Authentication

Agent Tool Authentication

Per-user OAuth in one call. Your OpenAI MCP server gets session-scoped tokens with zero credentials stored on your infra.

Agent Auth →

Security

Agent Protection

Every OpenAI tool response scanned for prompt injection in milliseconds — 88.7% accuracy, all running on CPU.

Prompt Injection Defense →

Performance

Max Agent Context. Min Cost.

Free up to 96% of your agent's context window to enhance reasoning and reduce cost, on every OpenAI call.

Tools Discovery →

What is the OpenAI MCP Server?

A OpenAI MCP server lets AI agents read and write OpenAI data through the Model Context Protocol — Anthropic's open standard for connecting LLMs to external tools. StackOne's OpenAI MCP server ships with 110 pre-built actions, fully extensible via the Connector Builder — plus managed authentication, prompt injection defense, and optimized agent context. Connect it from MCP clients like Claude Desktop, Cursor, and VS Code, or from agent frameworks like OpenAI Agents SDK, LangChain, and Vercel AI SDK.

All OpenAI MCP Tools and Actions

Every action from OpenAI's API, ready for your agent. Create, read, update, and delete — scoped to exactly what you need.

Models

  • List Models

    List all currently available models with their permissions and metadata.

  • Retrieve Model

    Get detailed information about a specific model.

Responses

  • Create Response

    Create a response using the new Responses API (replaces Assistants).

  • Retrieve Response

    Retrieve a response by its ID.

  • Delete Response

    Delete a response by its ID.

Conversations

  • Create Conversation

    Create a conversation.

  • Retrieve Conversation

    Get a conversation.

  • Update Conversation

    Update a conversation.

  • Delete Conversation

    Delete a conversation.

Conversation Items

  • Create Conversation Items

    Create items in a conversation.

  • List Conversation Items

    List all items for a conversation.

  • Retrieve Conversation Item

    Get a single item from a conversation.

  • Delete Conversation Item

    Delete an item from a conversation.

Containers

  • Create Container

    Create a new container.

  • Retrieve Container

    Get a specific container by ID.

  • List Containers

    List all containers.

  • Delete Container

    Delete a container.

Container Files

  • Create Container File

    Upload a file to a container.

  • List Container Files

    List files in a container.

  • Retrieve Container File

    Get a specific file from a container.

  • Delete Container File

    Delete a file from a container.

Organization Users

  • List Organization Users

    Lists all of the users in the organization.

  • Retrieve Organization User

    Retrieves a user by their identifier.

  • Delete Organization User

    Deletes a user from the organization.

Organization Invites

  • Create Organization Invite

    Create an invite for a user to the organization.

  • List Organization Invites

    Returns a list of invites in the organization.

  • Retrieve Organization Invite

    Retrieves an invite.

  • Delete Organization Invite

    Delete an invite. If the invite has already been accepted, it cannot be deleted.

Organization Groups

  • Create Organization Group

    Creates a new group in the organization.

  • List Organization Groups

    Lists all groups in the organization.

  • Update Organization Group

    Updates a group's information.

  • Delete Organization Group

    Deletes a group from the organization.

Group Users

  • Add Group User

    Adds a user to a group.

  • List Group Users

    Lists the users assigned to a group.

  • Remove Group User

    Removes a user from a group.

Organization Roles

  • Create Organization Role

    Creates a custom role for the organization.

  • List Organization Roles

    Lists the roles configured for the organization.

  • Update Organization Role

    Updates an existing organization role.

  • Delete Organization Role

    Deletes a custom role from the organization.

Organization Projects

  • Create Organization Project

    Create a new project in the organization.

  • List Organization Projects

    Lists all of the projects in the organization.

  • Retrieve Organization Project

    Retrieves a project.

Project Users

  • Create Project User

    Adds a user to the project.

  • List Project Users

    Returns a list of users in the project.

  • Retrieve Project User

    Retrieves a user in the project.

  • Delete Project User

    Deletes a user from the project.

Project Service Accounts

  • Create Project Service Account

    Creates a new service account in the project.

  • List Project Service Accounts

    Returns a list of service accounts in the project.

  • Retrieve Project Service Account

    Retrieves a service account in the project.

  • Delete Project Service Account

    Deletes a service account from the project.

Project API Keys

  • List Project API Keys

    Returns a list of API keys in the project.

  • Retrieve Project API Key

    Retrieves an API key in the project.

  • Delete Project API Key

    Deletes an API key from the project.

Project Groups

  • Add Project Group

    Grants a group access to a project.

  • List Project Groups

    Lists the groups that have access to a project.

  • Remove Project Group

    Revokes a group's access to a project.

Admin API Keys

  • Create Admin API Key

    Create an admin API key for the organization.

  • Retrieve Admin API Key

    Retrieve an admin API key by ID.

  • List Admin API Keys

    List all admin API keys for the organization.

  • Delete Admin API Key

    Delete an admin API key.

Project Roles

  • Create Project Role

    Create a custom role for a project.

  • List Project Roles

    List all custom roles for a project.

  • Update Project Role

    Update a custom role for a project.

  • Delete Project Role

    Delete a custom role from a project.

Skills

  • Create Skill

    Create a new skill by uploading a ZIP file.

  • Get Skill

    Get a skill by its ID. Requires Skills API beta access.

  • List Skills

    List all skills for the current project.

  • Update Skill

    Update the default version pointer for a skill.

  • Delete Skill

    Delete a skill by its ID.

Skill Versions

  • Create Skill Version

    Create a new version of an existing skill.

  • List Skill Versions

    List all versions of a skill.

  • Get Skill Version

    Get a specific version of a skill.

  • Delete Skill Version

    Delete a specific version of a skill.

Other (37)

  • Create Transcription

    Transcribes audio into the input language.

  • Create Translation

    Translates audio into English.

  • Create Speech

    Generates audio from the input text.

  • Create Client Secret

    Create a Realtime client secret with session configuration.

  • List Response Input Items

    List input items for a specific response.

  • Retrieve Container File Content

    Download the actual content of a file from a container.

  • List Group Organization Role Assignments

    Lists the organization roles assigned to a group within the organization.

  • List Project Rate Limits

    Returns the rate limits per model for a project.

  • Get Audio Speeches Usage

    Get usage statistics for audio speech generation.

  • Get Audio Transcriptions Usage

    Get usage statistics for audio transcription.

  • Get Code Interpreter Sessions Usage

    Get usage statistics for code interpreter sessions.

  • Get Completions Usage

    Get usage statistics for completions.

  • Get Embeddings Usage

    Get usage statistics for embeddings.

  • Get Images Usage

    Get usage statistics for image generation.

  • Get Moderations Usage

    Get usage statistics for content moderation.

  • Get Vector Stores Usage

    Get usage statistics for vector stores.

  • Get Costs

    Get organization costs for audit logging.

  • List Audit Logs

    List audit log events for the organization.

  • List Project Group Roles

    List all roles assigned to a group in a project.

  • List Project User Roles

    List all roles assigned to a user in a project.

  • Download Skill Content

    Download a skill zip bundle by its ID.

  • Download Skill Version Content

    Download a specific version of a skill as a ZIP bundle.

  • Delete Fine-tuned Model

    Delete a fine-tuned model. You must have the Owner role.

  • Count Response Input Tokens

    Get input token counts for a request.

  • Cancel Response

    Cancel a model response with the given ID.

  • Compact Response

    Compact a conversation.

  • Modify Organization User

    Modifies a user's role in the organization.

  • Assign Organization Role To Group

    Assigns an organization role to a group within the organization.

  • Unassign Organization Role From Group

    Unassigns an organization role from a group within the organization.

  • Modify Organization Project

    Modifies a project in the organization.

  • Archive Organization Project

    Archives a project in the organization.

  • Modify Project User

    Modifies a user's role in the project.

  • Modify Project Rate Limit

    Updates a project rate limit.

  • Assign Role To Project Group

    Assign a role to a group in a project.

  • Unassign Role From Project Group

    Remove a role from a group in a project.

  • Assign Role To Project User

    Assign a role to a user in a project.

  • Unassign Role From Project User

    Remove a role from a user in a project.

Set Up Your OpenAI MCP Server in Minutes

One endpoint. Any framework. Your agent is talking to OpenAI in under 10 lines of code.

MCP Clients

Agent Frameworks

Claude Desktop
{
  "mcpServers": {
    "stackone": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote@latest",
        "https://api.stackone.com/mcp?x-account-id=<account_id>",
        "--header",
        "Authorization: Basic <YOUR_BASE64_TOKEN>"
      ]
    }
  }
}

More AI & ML MCP Servers

OpenAI MCP Server FAQ

OpenAI MCP server vs direct API integration — what's the difference?
A OpenAI MCP server and direct API integration serve different use cases. Direct API integration is for software-to-software — backend code calling OpenAI. A OpenAI MCP server is for AI agents — MCP clients like Claude and Cursor, plus framework agents built with OpenAI, LangChain, or Vercel AI — discovering and calling OpenAI at runtime. StackOne provides both.
How does OpenAI authentication work for AI agents?
OpenAI authentication for AI agents works through a StackOne Connect Session. Create one via the dashboard or the SDK — you get an auth link and ready-to-paste config for Claude Desktop, Cursor, and other MCP clients. Your user authenticates their own OpenAI account; StackOne handles token exchange, storage, and refresh. Credentials never reach the LLM, and each user is isolated via origin_owner_id.
Are OpenAI MCP tools vulnerable to prompt injection?
Yes — OpenAI MCP tools can be vulnerable to indirect prompt injection. Any tool that reads user-written content — documents, messages, tickets, records, or free-text fields — is a potential vector. StackOne Defender scans every tool response before it enters the agent's context — regex patterns in ~1ms, then a MiniLM classifier in ~4ms. 88.7% accuracy, CPU-only.
What is the context bloat of a OpenAI agent and how do I avoid it?
Context bloat happens when OpenAI tool schemas and API responses eat your OpenAI agent's memory, preventing it from reasoning effectively. A single OpenAI query can return a massive JSON response, and connecting multiple tools compounds the problem. Tools Discovery and Code Mode reduce context bloat — loading only relevant tools per query and keeping raw responses out of the agent's context.
Can I limit which actions my OpenAI agent can access?
Yes — you can limit which actions your OpenAI agent can access directly from the StackOne dashboard. Toggle actions on or off, or restrict them to specific accounts, with no code changes to your agent. Session tokens can be scoped to exact actions so if one leaks, exposure stays contained.
Can I create custom agent actions for my OpenAI MCP server?
Yes — you can create custom agent actions for your OpenAI MCP server using Connector Builder. It's an integration agent your coding assistant (Claude Code, Cursor, or Copilot) can invoke to research OpenAI's API, generate production-ready connector YAML, test against the live API, and validate before you ship.
When should I NOT use a OpenAI MCP server?
Skip a OpenAI MCP server if your integration is purely software-to-software — direct OpenAI API integration is simpler when no AI agent is involved. For deterministic, compliance-critical operations (financial transactions, regulatory reporting), direct API gives you predictable behavior without agent-driven decision-making. MCP shines when AI agents need to dynamically discover and call OpenAI actions at runtime.
What AI frameworks and AI clients does the StackOne OpenAI MCP server support?
The StackOne OpenAI MCP server supports both. MCP clients (paste-and-go apps): Claude Desktop, Claude Code, Cursor, VS Code, Goose. Agent frameworks (code SDKs you build with): OpenAI Agents SDK, Anthropic, Vercel AI, Google ADK, CrewAI, Pydantic AI, LangChain, LangGraph, Azure AI Foundry.

Put your AI agents to work

All the tools you need to build and scale AI agent integrations, with best-in-class connectivity, execution, and security.