Skip to content

MCP Endpoint ​

Description ​

Streamable HTTP Model Context Protocol endpoint for AI clients (Cursor, etc.). Pro + local API service running.

URL ​

http://localhost:{port}/mcp

{port} from the client API menu.

Protocol ​

StepMethodNotes
InitializePOST /mcpinitialize request
Sessionsubsequent requestsHeader mcp-session-id
NotificationsGET /mcpSSE stream
End sessionDELETE /mcp

Use an MCP-capable client or SDK; message format follows the MCP spec.

Tools (summary) ​

ToolDescription
getBrowserListList profiles
launchBrowserStart profile (id) → debuggingPort
stopBrowserStop profile (id)

After launch, Playwright MCP tools may be available for page automation.

Custom tool arguments and results ​

ToolargumentsResult
getBrowserListEmpty object {}JSON in content text with a users array: id, name, createdAt, group, remark
launchBrowser{"id": 1}; safe positive integer from 1 to 9007199254740991JSON launch result in content text; port is data.debuggingPort on success
stopBrowser{"id": 1}; safe positive integerJSON stop result in content text

All three schemas set additionalProperties: false. Failures may return isError: true; content text is a string and must be parsed as JSON when it contains an object. A core can start even if MCP connection fails; check whether it is already running before retrying.

Auth ​

MCP shares the local service and authentication entry point with REST. Initialization and subsequent MCP requests also need the key from the client API screen:

http
api-key: YOUR_API_KEY

mcp-session-id reuses a session; it does not replace api-key. MCP session setup depends on your client (see MCP guide).

Tool discovery and session binding ​

After initialization, use tools/list to obtain the actual tools and input schemas for the installed client. In addition to the three custom profile tools, the client loads built-in Playwright MCP tools such as browser_navigate, browser_snapshot, and browser_click. The available set depends on the bundled Playwright version; do not hard-code it.

Call launchBrowser with the target id in the same MCP session before page tools. Without an explicit binding the client may choose the first eligible running profile, so do not rely on that fallback for concurrent profiles. Stopping the bound profile or ending the session cleans up its connection. Every request requires api-key; do not publish headers, mcp-session-id, page content or account data.