OpenAI MCP server
129 operations0 webhooks
AI platform API for GPT chat completions, embeddings, images, and assistant workflows.
Try OpenAI with your agent
Connect OpenAI, then paste this into Claude, ChatGPT or Cursor. For ideas from other apps, see the use cases.
Using Corsair, show me what you can do in OpenAI on my account, then run one read-only example and show me the result.
OpenAI tools and triggers
Tools are what your agent can do in OpenAI through Corsair's MCP server. Triggers are the OpenAI events a routine can start from.
Conversations
- CreateWrite
Create a conversation
conversations.create
- Create ItemsWrite
Add items to a conversation
conversations.createItems
- DeleteDestructive
Delete a conversation
conversations.delete
- Delete ItemDestructive
Delete a conversation item
conversations.deleteItem
- Get ItemRead-only
Retrieve a conversation item
conversations.getItem
- List ItemsRead-only
List items in a conversation
conversations.listItems
- UpdateWrite
Update a conversation's metadata
conversations.update
Eval Runs
- CancelDestructive
Cancel an in-progress eval run
evalRuns.cancel
- CreateWrite
Create an eval run
evalRuns.create
- DeleteDestructive
Delete an eval run
evalRuns.delete
- GetRead-only
Retrieve an eval run
evalRuns.get
- Get Output ItemRead-only
Retrieve an eval run output item
evalRuns.getOutputItem
- ListRead-only
List eval runs
evalRuns.list
- List Output ItemsRead-only
List output items for an eval run
evalRuns.listOutputItems
Fine Tuning
- Cancel JobDestructive
Cancel an in-progress fine-tuning job
fineTuning.cancelJob
- Create JobWrite
Create a fine-tuning job
fineTuning.createJob
- List CheckpointsRead-only
List checkpoints for a fine-tuning job
fineTuning.listCheckpoints
- List EventsRead-only
List events for a fine-tuning job
fineTuning.listEvents
- List JobsRead-only
List fine-tuning jobs
fineTuning.listJobs
- Retrieve JobRead-only
Retrieve a fine-tuning job
fineTuning.retrieveJob
Responses
- CancelDestructive
Cancel an in-progress background response
responses.cancel
- CompactWrite
Compact response input to reduce token usage
responses.compact
- CreateWrite
Create a model response via the Responses API
responses.create
- DeleteDestructive
Delete a stored model response
responses.delete
- List Input ItemsRead-only
List input items for a response
responses.listInputItems
- RetrieveRead-only
Retrieve a model response
responses.retrieve
Runs
- CancelDestructive
Cancel an in-progress run
runs.cancel
- CreateWrite
Create a run on a thread
runs.create
- ListRead-only
List runs on a thread
runs.list
- ModifyWrite
Modify a run
runs.modify
- RetrieveRead-only
Retrieve a run
runs.retrieve
- Submit Tool OutputsWrite
Submit tool outputs to a run awaiting action
runs.submitToolOutputs
Vector Store Files
- CreateWrite
Attach a file to a vector store
vectorStoreFiles.create
- DeleteDestructive
Detach a file from a vector store
vectorStoreFiles.delete
- ListRead-only
List files attached to a vector store
vectorStoreFiles.list
- RetrieveRead-only
Retrieve a vector store file
vectorStoreFiles.retrieve
- Retrieve ContentRead-only
Retrieve the parsed content of a vector store file
vectorStoreFiles.retrieveContent
- Update AttributesWrite
Update attributes on a vector store file
vectorStoreFiles.updateAttributes
Vector Stores
- CreateWrite
Create a vector store
vectorStores.create
- DeleteDestructive
Delete a vector store
vectorStores.delete
- ListRead-only
List vector stores
vectorStores.list
- ModifyWrite
Modify a vector store
vectorStores.modify
- RetrieveRead-only
Retrieve a vector store
vectorStores.retrieve
- SearchRead-only
Search a vector store for relevant chunks
vectorStores.search
Videos
- CreateWrite
Generate a video from a prompt. Takes an optional inputReference image or video as a public link, base64 or a Blob; on Corsair, pass a Files id.
videos.create
- Create RemixWrite
Create a remix of an existing video
videos.createRemix
- DeleteDestructive
Delete a video
videos.delete
- DownloadRead-only
Download the rendered content of a video. On Corsair up to about 700 KB comes back inline and a larger file comes back as fileId, a Files id; without a host that keeps files the content comes back inline up to 100 MB, or contentOmitted.
videos.download
- ListRead-only
List generated videos
videos.list
- RetrieveRead-only
Retrieve a video
videos.retrieve
Assistants
- CreateWrite
Create an assistant
assistants.create
- DeleteDestructive
Delete an assistant
assistants.delete
- ListRead-only
List assistants
assistants.list
- ModifyWrite
Modify an assistant
assistants.modify
- RetrieveRead-only
Retrieve an assistant by id
assistants.retrieve
Chat Completions
- DeleteDestructive
Delete a stored chat completion
chatCompletions.delete
- ListRead-only
List stored chat completions
chatCompletions.list
- List MessagesRead-only
List messages of a stored chat completion
chatCompletions.listMessages
- RetrieveRead-only
Retrieve a stored chat completion
chatCompletions.retrieve
- UpdateWrite
Update a stored chat completion's metadata
chatCompletions.update
Container Files
- CreateWrite
Add a file to a container, by fileId or as a new upload. Takes the upload as a public link, base64 or a Blob; on Corsair, pass a Files id.
containerFiles.create
- DeleteDestructive
Delete a container file
containerFiles.delete
- ListRead-only
List files in a container
containerFiles.list
- RetrieveRead-only
Retrieve a container file
containerFiles.retrieve
- Retrieve ContentRead-only
Download the contents of a container file. On Corsair up to about 700 KB comes back inline and a larger file comes back as fileId, a Files id; without a host that keeps files the content comes back inline up to 100 MB, or contentOmitted.
containerFiles.retrieveContent
Evals
- CreateWrite
Create an eval
evals.create
- DeleteDestructive
Delete an eval
evals.delete
- GetRead-only
Retrieve an eval
evals.get
- ListRead-only
List evals
evals.list
- UpdateWrite
Update an eval
evals.update
Files
- DeleteDestructive
Delete a file
files.delete
- Download ContentRead-only
Download the contents of a file. On Corsair up to about 700 KB comes back inline and a larger file comes back as fileId, a Files id; without a host that keeps files the content comes back inline up to 100 MB, or contentOmitted.
files.downloadContent
- ListRead-only
List uploaded files
files.list
- RetrieveRead-only
Retrieve file metadata
files.retrieve
- UploadWrite
Upload a file to OpenAI. Takes the file as a public link, base64 or a Blob; on Corsair, pass a Files id.
files.upload
Messages
- CreateWrite
Create a message on a thread
messages.create
- DeleteDestructive
Delete a message
messages.delete
- ListRead-only
List messages on a thread
messages.list
- ModifyWrite
Modify a message
messages.modify
- RetrieveRead-only
Retrieve a message
messages.retrieve
Threads
- CreateWrite
Create a thread
threads.create
- Create And RunWrite
Create a thread and run it in one call
threads.createAndRun
- DeleteDestructive
Delete a thread
threads.delete
- ModifyWrite
Modify a thread
threads.modify
- RetrieveRead-only
Retrieve a thread by id
threads.retrieve
Batches
- CancelDestructive
Cancel an in-progress batch job
batches.cancel
- CreateWrite
Create a batch job
batches.create
- ListRead-only
List batch jobs
batches.list
- RetrieveRead-only
Retrieve a batch job
batches.retrieve
Containers
- CreateWrite
Create a code interpreter container
containers.create
- DeleteDestructive
Delete a container
containers.delete
- ListRead-only
List containers
containers.list
- RetrieveRead-only
Retrieve a container
containers.retrieve
Realtime
- Create CallWrite
Create a realtime call
realtime.createCall
- Create Client SecretWrite
Create an ephemeral client secret for the Realtime API
realtime.createClientSecret
- Create SessionWrite
Create a realtime session
realtime.createSession
- Create Transcription SessionWrite
Create a realtime transcription session
realtime.createTranscriptionSession
Uploads
- Add PartWrite
Add a part of file data to an upload. Takes the part as a public link, base64 or a Blob; on Corsair, pass a Files id.
uploads.addPart
- CancelDestructive
Cancel an in-progress upload session
uploads.cancel
- CompleteWrite
Complete a multipart upload session
uploads.complete
- CreateWrite
Create a multipart upload session
uploads.create
Audio
- Create SpeechWrite
Generate spoken audio from text. On Corsair the audio comes back as audioBase64 up to about 700 KB and a longer clip comes back as fileId, a Files id; without a host that keeps files audioBase64 holds up to 100 MB, or contentOmitted is set.
audio.createSpeech
- Create TranscriptionWrite
Transcribe audio into text. Takes the file as a public link, base64 or a Blob; on Corsair, pass a Files id.
audio.createTranscription
- Create TranslationWrite
Translate audio into English text. Takes the file as a public link, base64 or a Blob; on Corsair, pass a Files id.
audio.createTranslation
Chatkit
- Get ThreadRead-only
Retrieve a ChatKit thread
chatkit.getThread
- List Thread ItemsRead-only
List items in a ChatKit thread
chatkit.listThreadItems
- List ThreadsRead-only
List ChatKit threads
chatkit.listThreads
Images
- CreateWrite
Generate images from a prompt
images.create
- Create EditWrite
Edit an image given a prompt and mask. Takes the image and mask as a public link, base64 or a Blob; on Corsair, pass a Files id.
images.createEdit
- Create VariationWrite
Create variations of an image. Takes the image as a public link, base64 or a Blob; on Corsair, pass a Files id.
images.createVariation
Skills
- CreateWrite
Upload a skill. Takes the file as a public link, base64 or a Blob; on Corsair, pass a Files id.
skills.create
- DeleteDestructive
Delete a skill
skills.delete
- ListRead-only
List skills
skills.list
Vector Store File Batches
- CreateWrite
Attach a batch of files to a vector store
vectorStoreFileBatches.create
- List FilesRead-only
List files in a vector store file batch
vectorStoreFileBatches.listFiles
- RetrieveRead-only
Retrieve a vector store file batch
vectorStoreFileBatches.retrieve
Engines
- ListRead-only
List available engines (legacy, deprecated)
engines.list
- RetrieveRead-only
Retrieve an engine by id (legacy, deprecated)
engines.retrieve
Graders
- RunRead-only
Run a grader against a model sample
graders.run
- ValidateRead-only
Validate a grader configuration
graders.validate
Models
- ListRead-only
List available models
models.list
- RetrieveRead-only
Retrieve a model by id
models.retrieve
Run Steps
- ListRead-only
List steps of a run
runSteps.list
- RetrieveRead-only
Retrieve a run step
runSteps.retrieve
Chat
- Create CompletionWrite
Create a chat completion for the given messages
chat.createCompletion
Completions
- CreateWrite
Create a legacy text completion
completions.create
Embeddings
- CreateWrite
Create embeddings for the given input
embeddings.create
Moderation
- CreateRead-only
Classify text/image input against usage policies
moderation.create
Tokens
- Count InputRead-only
Count input tokens for a prospective request
tokens.countInput
Connect OpenAI to Claude, ChatGPT or Cursor
- 1
Connect OpenAI in Corsair
Add your OpenAI API key once in Corsair. Corsair stores the credential encrypted and makes the OpenAI API calls for your agent, so it never goes into a prompt or a config file. Connect OpenAI
If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs OpenAI. On a ChatGPT personal plan, connect OpenAI here first.
- 2
Add Corsair's MCP server to your agent
Every client uses the same address:
https://mcp.corsair.dev/mcpOpen Plugins → Add → Add custom connector, name it Corsair, paste the address, select Continue, then Add.Install Corsair from ChatGPT's plugin directory, connect it and sign in. A custom MCP server with the address works too, but personal plans get its read tools only.Add to Cursor / Grok BuildOr add this to~/.cursor/mcp.json. It opens Corsair to sign in the first time it connects.{ "mcpServers": { "corsair": { "url": "https://mcp.corsair.dev/mcp" } } }Run this, then run/mcpin Claude Code to sign in.claude mcp add --transport http corsair https://mcp.corsair.dev/mcpCodex, Antigravity, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client
- 3
Sign in and choose what needs your approval
Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. In the default Cautious mode, OpenAI's read and write operations run right away and its 22 destructive operations wait for your approval. Strict mode asks before every write and refuses destructive operations, and Read mode allows reads only.
OpenAI works with
FAQ
Install corsair and @corsair-dev/openai, add the OpenAI plugin, and connect with an API key. Then call methods like corsair.openai.api.assistants.create() from your app. Corsair syncs data per tenant.
Yes. OpenAI requires an API key from your OpenAI account or developer dashboard. Create credentials with access that matches what you automate, then paste them into Corsair or connect through managed auth in Hub.
Yes. One Corsair client can hit OpenAI, GitHub, Notion, Stripe, and the rest. Trigger OpenAI from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.
Teams use Corsair for AI platform API for GPT chat completions, embeddings, images, and assistant workflows. Common builds include sync jobs, admin tooling, and agents that call OpenAI APIs from your backend. Local DB entities let you query synced OpenAI records without hitting the API on every read.
The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per OpenAI API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.
We maintain @corsair-dev/openai in the open repo. When OpenAI ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.
No. Corsair does not read your OpenAI data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store OpenAI data on your behalf.
Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.
Yes. Put OpenAI on a link in Strict mode and every write waits for your approval, while destructive actions are refused. The default Cautious mode asks only before the 22 destructive OpenAI operations. You can change a link's mode at hub.corsair.dev/me.