Skip to main content
Glama

OpenAI Agents MCP Server

by lroolle

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.

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 claude

Claude 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:

  1. Implementing a full AsyncComputer interface to enable real computer interactions
  2. Adding additional specialized agents for other OpenAI tools
  3. 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 --dev

Testing 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.py

Then open a web browser and navigate to http://localhost:5173.

License

MIT

-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Claude ユーザーが MCP プロトコルを通じて特殊な OpenAI エージェント (Web 検索、ファイル検索、コンピューター アクション) およびマルチエージェント オーケストレーターにアクセスできるようにするモデル コンテキスト プロトコル サーバー。

  1. 特徴
    1. 個人専門エージェント
    2. マルチエージェントオーケストレーター
  2. インストール
    1. 前提条件
    2. Smithery経由でインストール
    3. クロードデスクトップ
  3. 実装の詳細
    1. ツール要件
    2. カスタマイズ
  4. 構成
    1. 発達
      1. 開発環境のセットアップ
      2. MCP Inspectorによるテスト
    2. ライセンス

      Related MCP Servers

      • -
        security
        A
        license
        -
        quality
        A Model Context Protocol (MCP) server that lets you seamlessly use OpenAI's models right from Claude.
        Last updated -
        175
        65
        MIT License
        • Apple
      • -
        security
        F
        license
        -
        quality
        A comprehensive suite of Model Context Protocol servers designed to extend AI agent Claude's capabilities with integrations for knowledge management, reasoning, advanced search, news access, and workspace tools.
        Last updated -
        5
        • Apple
      • -
        security
        F
        license
        -
        quality
        A Model Context Protocol server that allows Claude to make API requests on your behalf, providing tools for testing various APIs including HTTP requests and OpenAI integrations without sharing your API keys in the chat.
        Last updated -
        • Linux
        • Apple
      • -
        security
        F
        license
        -
        quality
        A server that exposes OpenAI agents (web search, file search, computer actions, and multi-agent orchestration) through the Model Context Protocol, making them accessible to any MCP client including Claude Desktop.
        Last updated -

      View all related MCP servers

      MCP directory API

      We provide all the information about MCP servers via our MCP API.

      curl -X GET 'https://glama.ai/api/mcp/v1/servers/lroolle/openai-agents-mcp-server'

      If you have feedback or need assistance with the MCP directory API, please join our Discord server