Aerostack
electrical_services

OpenAI MCP Server — Hosted Ai, Any AI Agent

MCP Server language Hosted language Public

Run chat completions, generate embeddings, create images, and moderate content via the OpenAI API.

aerostack @aerostack verified
v0.1.0 MIT Updated Jun 27, 2026
robot_2

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.

.claude/mcp.json
{
  "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:

+2 more

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.

add_circleAdd to Workspace

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-keysCreate new secret key → copy the key (shown once)

Quick Start

Add to Aerostack Workspace
  1. Go to aerostack.dev → Your Project → MCPs
  2. Search for "OpenAI" and click Add to Workspace
  3. Add your OPENAI_API_KEY under 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.

terminal
_ping #1

Verify OpenAI credentials by calling a lightweight read endpoint. Used internally by Aerostack to validate credentials.

terminal
chat_completion #2

Create a chat completion using OpenAI models

terminal
list_models #3

List all available OpenAI models

terminal
create_embedding #4

Create text embeddings using OpenAI embedding models

terminal
create_image #5

Generate an image using DALL-E

terminal
create_moderation #6

Check text content for policy violations using OpenAI moderation

terminal
list_files #7

List files uploaded to OpenAI

terminal
list_fine_tuning_jobs #8

List fine-tuning jobs

Details

upgrade Version 0.1.0
gavel License MIT
wifi Transport streamable-http
lock Access Public
category Category AI
terminal Tools 8

language Live Endpoint

https://mcp.aerostack.dev/s/aerostack/mcp-openai

Sub-50ms globally · Zero cold start

Publisher

aerostack
@aerostack verified

Pre-built functions for the most common MCP tool patterns. Clone, extend, and deploy.

Tags

Browse more servers

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.