Skip to main content

OpenAI Agents MCP Server

smithery badge

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

Metadata

Release files for iflow-mcp_lroolle-agents-mcp-server 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iflow-mcp_lroolle-agents-mcp-server 0.1.0
File Size Uploaded
iflow_mcp_lroolle_agents_mcp_server-0.1.0.tar.gz 36.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iflow-mcp_lroolle-agents-mcp-server 0.1.0
File Interpreter ABI Platform
iflow_mcp_lroolle_agents_mcp_server-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 45.3 kB

Release files / iflow_mcp_lroolle_agents_mcp_server-0.1.0.tar.gz

Download URL iflow_mcp_lroolle_agents_mcp_server-0.1.0.tar.gz
Size 36.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b219cab9343d69f1ee08f7c6e8c18031238e8bfbf67a6a2abdbf1c55ea75b852
BLAKE2b-256 checksum
How to use checksums
3c1b2457e63291dd445560663a9aeec0f8a60e53583c8c95e9ee5afa72fd45b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / iflow_mcp_lroolle_agents_mcp_server-0.1.0-py3-none-any.whl

Download URL iflow_mcp_lroolle_agents_mcp_server-0.1.0-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c69be9f1830b07a75ce2d1c73f727c2a655dad1490ad3aebaabba9ee708bb24e
BLAKE2b-256 checksum
How to use checksums
80d3f186f589d8c58cc32280bc8f39fb2ec0320167ce190bbbb1ab93e0138af0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page