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
| Step | Method | Notes |
|---|---|---|
| Initialize | POST /mcp | initialize request |
| Session | subsequent requests | Header mcp-session-id |
| Notifications | GET /mcp | SSE stream |
| End session | DELETE /mcp |
Use an MCP-capable client or SDK; message format follows the MCP spec.
Tools (summary)
| Tool | Description |
|---|---|
getBrowserList | List profiles |
launchBrowser | Start profile (id) → debuggingPort |
stopBrowser | Stop profile (id) |
After launch, Playwright MCP tools may be available for page automation.
Custom tool arguments and results
| Tool | arguments | Result |
|---|---|---|
getBrowserList | Empty object {} | JSON in content text with a users array: id, name, createdAt, group, remark |
launchBrowser | {"id": 1}; safe positive integer from 1 to 9007199254740991 | JSON launch result in content text; port is data.debuggingPort on success |
stopBrowser | {"id": 1}; safe positive integer | JSON 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:
api-key: YOUR_API_KEYmcp-session-id reuses a session; it does not replace api-key. MCP session setup depends on your client (see MCP guide).
Related
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.



