OpenAI Agents MCP Server
Leverages OpenAI's Agents SDK to expose individual specialized agents (Web Search, File Search, Computer Action) and a multi-agent orchestrator through the MCP protocol.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@OpenAI Agents MCP Server search the web for latest AI developments"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
OpenAI Agents MCP Server
A Model Context Protocol (MCP) server that exposes OpenAI agents through the MCP protocol.
Features
This server exposes both individual agents and a multi-agent orchestrator using the OpenAI Agents SDK:
Individual Specialized Agents
Web Search Agent: A specialized agent for searching the web for real-time information
File Search Agent: A specialized agent for searching and analyzing files in OpenAI's vector store
Computer Action Agent: A specialized agent for performing actions on your computer safely
Multi-Agent Orchestrator
Orchestrator Agent: A powerful agent that can coordinate between the specialized agents, choosing the right one(s) for each task
Each agent is accessed through the MCP protocol, making them available to any MCP client, including the Claude desktop app.
Related MCP server: MCP Simple OpenAI Assistant
Installation
Prerequisites
Python 3.11 or higher
uv package manager (recommended)
OpenAI API key
Installing via Smithery
To install openai-agents-mcp-server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @lroolle/openai-agents-mcp-server --client claudeClaude Desktop
"mcpServers": {
"openai-agents-mcp-server": {
"command": "uvx",
"args": ["openai-agents-mcp-server"],
"env": {
"OPENAI_API_KEY": "your-api-key-here"
}
}
}
Implementation Details
Tool Requirements
WebSearchTool: No required parameters, but can accept optional location context
FileSearchTool: Requires vector_store_ids (IDs from your OpenAI vector stores)
ComputerTool: Requires an AsyncComputer implementation (currently simulated)
Customization
You can customize this server by:
Implementing a full AsyncComputer interface to enable real computer interactions
Adding additional specialized agents for other OpenAI tools
Enhancing the orchestrator agent to handle more complex workflows
Configuration
You can configure the server using environment variables:
OPENAI_API_KEY: Your OpenAI API key (required)MCP_TRANSPORT: Transport protocol to use (default: "stdio", can be "sse")
Development
Setup development environment
# Clone the repository
git clone https://github.com/lroolle/openai-agents-mcp-server.git
cd openai-agents-mcp-server
# Create a virtual environment
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
# Install dependencies
uv sync --devTesting with MCP Inspector
You can test the server using the MCP Inspector:
# In one terminal, run the server with SSE transport
export OPENAI_API_KEY=your-api-key
export MCP_TRANSPORT=sse
uv run mcp dev src/agents_mcp_server/server.pyThen open a web browser and navigate to http://localhost:5173.
License
MIT
Available Tools
4 toolscomputer_action_agentC
Use an AI agent specialized in performing computer actions safely and effectively.
Inputs: action (required).
file_search_agentC
Use an AI agent specialized in searching through files and documents to find relevant information.
Inputs: query (required), vector_store_ids (required), max_results.
multi_tool_agentC
Use an AI agent that can orchestrate between web search, file search, and computer actions based on your query.
Inputs: query (required), enable_computer_actions, enable_file_search, enable_web_search, +1 more.
web_search_agentB
Use an AI agent specialized in web searching to find accurate, up-to-date information from the internet.
Inputs: query (required), location.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
The tools have mostly distinct purposes with clear specialization: computer actions, file search, web search, and a multi-tool orchestrator. However, the multi_tool_agent overlaps with the specialized agents by potentially performing their functions, which could cause some confusion about when to use it versus the specific agents.
All tool names follow a consistent snake_case pattern with a clear '_agent' suffix (e.g., computer_action_agent, file_search_agent). The naming is predictable and uniform across all four tools, making them easy to identify and categorize.
With 4 tools, the count is reasonable for an agent orchestration server, covering core areas like computer actions, file search, web search, and multi-tool coordination. It is slightly thin but well-scoped, as each tool serves a distinct role without unnecessary bloat.
The tool set covers key agent functionalities (computer actions, file search, web search, and orchestration), but there are notable gaps. For example, there is no dedicated tool for database operations, API interactions, or other common agent tasks, which might limit coverage for broader use cases in the agent domain.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Hosted Web Crawler MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol (MCP) server that lets you seamlessly use OpenAI's models right from Claude.1769 npm76MIT
- AlicenseAqualityDmaintenanceA simple MCP server for interacting with OpenAI assistants. This server allows other tools (like Claude Desktop) to create and interact with OpenAI assistants through the Model Context Protocol.939MIT
- AlicenseBqualityFmaintenanceA lightweight bridge that wraps OpenAI's built-in tools (like web search and code interpreter) as Model Context Protocol servers, enabling their use with Claude and other MCP-compatible models.412MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables conversational LLMs to delegate complex research tasks to specialized AI agents powered by various OpenRouter models, coordinated by a Claude orchestrator.56MIT