OpenAI MCP Server
Provides tools to interact with OpenAI API including chat completions, embeddings, content moderation, and file management through natural language.
README
OpenAI MCP Server
A Type 3 DAuth MCP server for OpenAI API. Provides chat completions, embeddings, moderation, and file management.
Features
- List Models — View all available OpenAI models
- Create Response — Chat completions with GPT models
- Create Embedding — Text vectorization for semantic search
- Moderate Text — Content safety checking
- List Files — View uploaded files
- Upload File — Upload files for fine-tuning or assistants
Authentication
This server uses Type 3 DAuth (Dedalus Auth) — your API key is encrypted client-side and decrypted in a secure Dedalus enclave.
Get Your OpenAI API Key
- Go to https://platform.openai.com/api-keys
- Create a new secret key
- Copy the key
Installation
git clone https://github.com/dedalus-labs/openai-mcp.git
cd openai-mcp
pip install -e .
cp .env.example .env
# Edit .env and add OPENAI_API_KEY
Available Tools
openai_list_models
List all available OpenAI models.
openai_list_models()
openai_create_response
Create a chat completion.
openai_create_response(
model="gpt-4o-mini",
messages=[{"role": "user", "content": "Hello!"}],
temperature=0.7,
max_tokens=500,
)
openai_create_embedding
Generate text embeddings.
openai_create_embedding(
input="The quick brown fox",
model="text-embedding-3-small",
)
openai_moderate_text
Check content for harmful material.
openai_moderate_text(input="This is a test message")
openai_list_files
List uploaded files.
openai_list_files(purpose="assistants", limit=50)
openai_upload_file
Upload a file.
openai_upload_file(file_path="/path/to/file.jsonl", purpose="batch")
Cost & Rate Limits
OpenAI uses pay-per-token pricing. Check https://openai.com/pricing for current rates.
Deploy to Dedalus
- Push to GitHub (public repo)
- Go to https://www.dedaluslabs.ai/dashboard
- Add Server → Connect GitHub repo
- Set
OPENAI_API_KEYas Required Credential - Deploy
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.