OpenAI MCP Server — Hosted Ai, Any AI Agent
MCP Server language Hosted language PublicRun chat completions, generate embeddings, create images, and moderate content via the OpenAI API.
Use with AI AssistantsMCP
Connect Claude, Cursor, or any MCP-compatible client — then call tools directly
① Add This MCP Server
Paste into your AI client config — then all its tools are available instantly.
{
"mcpServers": {
"openai": {
"url": "https://mcp.aerostack.dev/s/aerostack/mcp-openai",
"headers": {
"Authorization": "Bearer YOUR_AEROSTACK_TOKEN"
}
}
}
}Replace YOUR_AEROSTACK_TOKEN with your API token from the dashboard.
② Call a Tool
Ask your AI assistant to call a specific tool, or send raw JSON-RPC:
Natural Language Prompt
“Use the _ping tool to verify openai credentials by calling a lightweight read endpoint. used internally by aerostack to validate credentials”
Using a Workspace?
Add this MCP to your Workspace — your team shares one token, secrets are stored securely, and every AI agent in the workspace can call it without per-user setup.
description Overview
mcp-openai — OpenAI MCP Server
Access GPT chat completions, DALL-E image generation, embeddings, and moderation from your AI agents.
OpenAI's API powers the most widely-used AI capabilities in production: chat completions with GPT-4, image generation with DALL-E, text embeddings for semantic search, and content moderation. This MCP server wraps all of them in a single endpoint — letting your Aerostack agents use OpenAI's models as tools within multi-agent workflows, or expose them directly to end users.
Live endpoint: https://mcp.aerostack.dev/s/aerostack/mcp-openai
What You Can Do
- Compose multi-model pipelines where one agent calls GPT-4o to generate text, then another calls DALL-E to generate an image from that text
- Generate embeddings for documents to enable semantic search or RAG workflows without a separate embedding service
- Run content moderation on user-generated text before storing or displaying it
- Inspect available models and fine-tuning job status from your workspace
Available Tools
| Tool | Description |
|---|---|
chat_completion |
Create a chat completion using OpenAI models (GPT-4o, GPT-4, GPT-3.5, etc.) |
list_models |
List all available OpenAI models |
create_embedding |
Create text embeddings for semantic search or similarity |
create_image |
Generate an image using DALL-E 3 |
create_moderation |
Check text for policy violations |
list_files |
List uploaded files associated with the API key |
list_fine_tuning_jobs |
List fine-tuning jobs and their status |
Configuration
| Variable | Required | Description | How to Get |
|---|---|---|---|
OPENAI_API_KEY |
Yes | OpenAI API key for all API calls | platform.openai.com/api-keys → Create new secret key → copy the key (shown once) |
Quick Start
Add to Aerostack Workspace
- Go to aerostack.dev → Your Project → MCPs
- Search for "OpenAI" and click Add to Workspace
- Add your
OPENAI_API_KEYunder Project → Secrets
Once added, every AI agent in your workspace can call OpenAI tools automatically — no per-user setup needed.
Example Prompts
"Use GPT-4o to write a product description for the following feature list..."
"Generate a DALL-E image of a futuristic dashboard UI with dark theme and neon accents"
"Create an embedding for this text and return the vector: 'customer churn prediction'"
Direct API Call
curl -X POST https://mcp.aerostack.dev/s/aerostack/mcp-openai \
-H 'Content-Type: application/json' \
-H 'X-Mcp-Secret-OPENAI-API-KEY: your-api-key' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"chat_completion","arguments":{"messages":[{"role":"user","content":"Say hello in one sentence."}]}}}'
License
MIT
terminal Tools (8)
Available tools on this MCP server. Each tool can be called directly from any AI agent.
_ping #1 Verify OpenAI credentials by calling a lightweight read endpoint. Used internally by Aerostack to validate credentials.
chat_completion #2 Create a chat completion using OpenAI models
list_models #3 List all available OpenAI models
create_embedding #4 Create text embeddings using OpenAI embedding models
create_image #5 Generate an image using DALL-E
create_moderation #6 Check text content for policy violations using OpenAI moderation
list_files #7 List files uploaded to OpenAI
list_fine_tuning_jobs #8 List fine-tuning jobs
Details
language Live Endpoint
https://mcp.aerostack.dev/s/aerostack/mcp-openai
Sub-50ms globally · Zero cold start
Publisher
Pre-built functions for the most common MCP tool patterns. Clone, extend, and deploy.
More in AI
Browse AI MCPs →Canva Design Platform
by @aerostack
Design creation, AI generation, editing, export, assets, brand kits, folders via Canva's official MCP
Intercom Messaging
by @aerostack
Conversations, contacts, tickets, articles via Intercom's official MCP
Anthropic
by @aerostack
Call Claude models directly — run AI conversations, tool-use chains, batch jobs, and model comparisons from any agent.
Vercel Deployments
by @aerostack
Deployments, projects, domains, env vars, logs via Vercel's official MCP
Gmail
by @aerostack
Read, send, and search Gmail messages — manage labels, drafts, and attachments with full inbox control.
Mailchimp
by @aerostack
Manage audiences, campaigns, and subscriber tags in Mailchimp — automate your email marketing with AI.
Frequently asked questions
What is the OpenAI MCP server and what can it do? +
The OpenAI MCP server is hosted on Aerostack and exposes these tools to your AI agent: `_ping`, `chat_completion`, `list_models`, `create_embedding`, `create_image`. You get one hosted URL — no self-hosting — that works from Claude, Cursor, ChatGPT, Gemini, VS Code, or any MCP-compatible client, and you can share it with your team or combine it with other MCP servers in a workspace.
Is the OpenAI MCP server hosted, or do I have to run it myself? +
It's hosted on Aerostack's edge infrastructure — you don't deploy or maintain anything. Add it to a workspace and you get one authenticated URL, with secrets encrypted, that any AI agent or editor can connect to. Use it solo or share the same URL across your whole team.
Which AI agents and editors can use the OpenAI MCP server? +
Any MCP client: Claude and Claude Code, Cursor, ChatGPT, Gemini, Windsurf, Cline, VS Code, and custom agents. Because it's one hosted URL, the same OpenAI MCP server works everywhere — and you can compose it with other MCP servers, skills, and functions behind a single workspace URL.
How do I install the OpenAI MCP server in Claude Desktop? +
Add the following to your Claude Desktop config (`claude_desktop_config.json`): ```json { "mcpServers": { "@aerostack/mcp-openai": { "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-openai"] } } } ``` Then restart Claude Desktop and the tools will appear automatically.
How do I use the OpenAI MCP server in Cursor? +
In Cursor, open **Settings → MCP** and add: ```json { "name": "@aerostack/mcp-openai", "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-openai"] } ``` Save and reload Cursor. The MCP tools will be available in Agent mode.
Does OpenAI MCP require authentication? +
Yes. OpenAI requires authentication. Check the MCP's documentation for the required credentials.