OpenAI MCP Server
AIstdiov1.0.3
Official OpenAI MCP server for integrating GPT models, DALL-E, and Whisper into agentic workflows. Provides tools for chat completion, image generation, audio transcription, and embeddings through the Model Context Protocol. Supports function calling, structured outputs, and streaming responses.
连接
将此配置添加到 .claude/mcp.json
{
"mcpServers": {
"openai": {
"command": "npx",
"args": [
"-y",
"@openai/mcp-server"
],
"env": {
"OPENAI_API_KEY": "<YOUR_OPENAI_API_KEY>"
}
}
}
}工具 (3)
chat_completion
Generate a chat completion using OpenAI models. Supports system messages, function calling, and structured outputs.
{
"type": "object",
"required": [
"model",
"messages"
],
"properties": {
"model": {
"type": "string",
"description": "Model ID (e.g., gpt-5, gpt-5-4-mini)"
},
"messages": {
"type": "array",
"items": {
"type": "object",
"properties": {
"role": {
"type": "string"
},
"content": {
"type": "string"
}
}
},
"description": "Conversation messages"
},
"max_tokens": {
"type": "integer",
"description": "Maximum tokens in response"
},
"temperature": {
"type": "number",
"description": "Sampling temperature (0-2)"
}
}
}create_image
Generate an image using DALL-E from a text prompt.
{
"type": "object",
"required": [
"prompt"
],
"properties": {
"size": {
"type": "string",
"description": "Image size (1024x1024, 1792x1024, 1024x1792)"
},
"prompt": {
"type": "string",
"description": "Text description of the desired image"
},
"quality": {
"type": "string",
"description": "Quality level (standard, hd)"
}
}
}create_embedding
Generate embeddings for input text using OpenAI embedding models.
{
"type": "object",
"required": [
"input",
"model"
],
"properties": {
"input": {
"type": "string",
"description": "Text to embed"
},
"model": {
"type": "string",
"description": "Embedding model ID"
}
}
}资源
此服务器未提供任何资源。
提示词
此服务器未提供任何提示词。
服务器信息
- 许可证
- MIT
- 版本
- 1.0.3
- 星标
- 8,920
- 最后更新
- 2026年5月30日