Labsco
hanzili logo

comet-mcp

β˜… 161

from hanzili

Connect Claude Code to Perplexity Comet browser for agentic web browsing, deep research, and real-time task monitoring

πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedFreeQuick setup

comet-mcp

npm version

<a href="https://glama.ai/mcp/servers/@hanzili/comet-mcp"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@hanzili/comet-mcp/badge" /> </a>

Give Claude Code a browser that thinks.

An MCP server that connects Claude Code to Perplexity Comet - enabling agentic web browsing, deep research, and real-time task monitoring.

Demo

Why?

Existing web tools for Claude Code fall into two categories, both with limitations:

1. Search APIs (Tavily, Perplexity API, WebFetch)

Return static text. No interaction, no login, no dynamic content. Great for quick lookups, but can't navigate complex sites or fill forms.

2. Browser Automation (browser-use, Puppeteer MCP, Playwright MCP)

Can interact with pages, but use a one-agent-do-all approach: the same reasoning model that's writing your code is also deciding where to click, what to type, and how to navigate. This overwhelms the context window and fragments focus.

3. Comet MCP: Multi-Agent Delegation

Comet MCP takes a different approach. Instead of Claude controlling a browser directly, it delegates to Perplexity Comet - an AI purpose-built for web research and browsing.

  • Claude stays focused on your coding task
  • Comet handles the browsing: navigation, login walls, dynamic content, deep research
  • Result: Claude's coding intelligence + Perplexity's web intelligence, working together

Tools

ToolDescription
comet_connectConnect to Comet (auto-starts if needed)
comet_askSend a task and wait for response
comet_pollCheck progress on long-running tasks
comet_stopStop current task
comet_screenshotCapture current page
comet_modeSwitch modes: search, research, labs, learn

How It Works

Copy & paste β€” that's it
Claude Code  β†’  MCP Server  β†’  CDP  β†’  Comet Browser  β†’  Perplexity AI
   (reasoning)     (bridge)                              (web browsing)

Claude sends high-level goals ("research X", "log into Y"). Comet figures out the clicks, scrolls, and searches. Results flow back to Claude.

Windows & WSL Support

Native Windows

Works out of the box. Comet MCP auto-detects Windows and launches Comet from its default install location.

WSL2 (Windows Subsystem for Linux)

WSL2 requires mirrored networking to connect to Comet running on Windows:

  1. Enable mirrored networking (one-time setup):

    Copy & paste β€” that's it
    # Create/edit %USERPROFILE%\.wslconfig (Windows side)
    [wsl2]
    networkingMode=mirrored
  2. Restart WSL:

    Copy & paste β€” that's it
    wsl --shutdown
    # Then reopen your WSL terminal
  3. That's it! Comet MCP auto-detects WSL and uses PowerShell to communicate with Windows.

If mirrored networking isn't available, you'll see a helpful error message with setup instructions.

Custom Comet Path

If Comet is installed in a non-standard location:

Copy & paste β€” that's it
{
  "mcpServers": {
    "comet-bridge": {
      "command": "npx",
      "args": ["-y", "comet-mcp"],
      "env": {
        "COMET_PATH": "/path/to/your/Comet"
      }
    }
  }
}

License

MIT


Report Issues Β· Contribute