OpenAI Agents
STDIOA MCP server exposing OpenAI agents through the MCP protocol.
A MCP server exposing OpenAI agents through the MCP protocol.
A Model Context Protocol (MCP) server that exposes OpenAI agents through the MCP protocol.
This server exposes both individual agents and a multi-agent orchestrator using the OpenAI Agents SDK:
Each agent is accessed through the MCP protocol, making them available to any MCP client, including the Claude desktop app.
To install openai-agents-mcp-server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @lroolle/openai-agents-mcp-server --client claude
"mcpServers": {
"openai-agents-mcp-server": {
"command": "uvx",
"args": ["openai-agents-mcp-server"],
"env": {
"OPENAI_API_KEY": "your-api-key-here"
}
}
}
You can customize this server by:
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")# 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 --dev
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.py
Then open a web browser and navigate to http://localhost:5173.
MIT