Skip to main content
Glama

OpenAI Agents MCP Server

by lroolle
""" Main entry point for the agents-mcp-server. This module provides the main entry point for running the MCP server. """ import os import sys from .server import mcp def main() -> None: """Run the MCP server.""" # Check if the OpenAI API key is set if not os.environ.get("OPENAI_API_KEY"): print("Error: OPENAI_API_KEY environment variable is not set.") print("Please set it before running the server.") sys.exit(1) # Get the transport from environment variables or use default transport = os.environ.get("MCP_TRANSPORT", "stdio") print(f"Starting OpenAI Agents MCP server with {transport} transport") # Run the server using the FastMCP's run method mcp.run(transport=transport) if __name__ == "__main__": main()

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