@ulpi/browse

MCP Server Mode

Run browse as an MCP server for Cursor, Claude Desktop, Windsurf, and other editors that support the Model Context Protocol.

Overview

Browse can run as an MCP (Model Context Protocol) server, letting editors communicate with it natively instead of spawning shell commands.

browse --mcp

Use --json alongside --mcp for structured responses:

browse --mcp --json

Note: Requires npm install @modelcontextprotocol/sdk alongside browse.

Cursor

Create .cursor/mcp.json in your project root:

{
  "mcpServers": {
    "browse": {
      "command": "browse",
      "args": ["--mcp"]
    }
  }
}

After saving, restart Cursor. Browse will appear as an available MCP tool.

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "browse": {
      "command": "browse",
      "args": ["--mcp"]
    }
  }
}

Windsurf

Add to your Windsurf MCP configuration:

{
  "mcpServers": {
    "browse": {
      "command": "browse",
      "args": ["--mcp"]
    }
  }
}

MCP vs CLI

MCP ModeCLI Mode
SetupJSON config in editornpm install -g
IntegrationNative editor toolBash commands
SpeedSame (~100ms/cmd)Same (~100ms/cmd)
FeaturesAll 121 commandsAll 121 commands
Best forCursor, Claude DesktopClaude Code, Cline, scripts

Both modes use the same persistent daemon — no performance difference. Choose MCP if your editor supports it natively, CLI if you want universal compatibility.

On this page