Skip to main content
Glama

Playwright MCP Server

by nolecram
main.pyโ€ข955 B
"""Main entry point for the Playwright MCP Server.""" import asyncio import sys from typing import Optional from playwright_mcp_server.server import PlaywrightMCPServer def main() -> None: """Main entry point wrapper for CLI.""" try: asyncio.run(async_main()) except KeyboardInterrupt: print("\nServer stopped by user") except Exception as e: print(f"Fatal error: {e}", file=sys.stderr) sys.exit(1) async def async_main() -> None: """Main entry point for the Playwright MCP Server.""" server = PlaywrightMCPServer() try: await server.run() except KeyboardInterrupt: print("\nShutting down server...") except Exception as e: print(f"Error running server: {e}", file=sys.stderr) sys.exit(1) finally: await server.cleanup() def cli_main() -> None: """CLI entry point wrapper.""" main() 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/nolecram/Build_MCP_Server'

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