Skip to Content
ReferenceCLIMCP

MCP

Start Lightpanda as a Model Context Protocol (MCP) server. Defaults to stdio; pass --port to serve over HTTP with an independent browsing session per client. See how to run the MCP server for practical documentation.

Options

usage: lightpanda mcp [OPTIONS] [COMMON_OPTIONS] options: --cdp-port <INT> Also run a CDP (WebSocket) server on this port. Cannot be combined with --port (they share one network listener). Defaults to disabled. --host <HOST> Host to bind when --port is set (e.g. 0.0.0.0 for all interfaces). Defaults to "127.0.0.1". --port <INT> Serve MCP over HTTP on this port instead of stdio. Clients POST JSON-RPC to /mcp; route requests to a session with the Mcp-Session-Id header. Defaults to stdio (no HTTP server).

The command also accepts the common options.

Find the available tools in the MCP tools reference.