# perplexity-comet-mcp

Connects Claude to the Perplexity Comet browser so the agent can open pages, click through them and pull data while you keep coding.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed · ★ 52
- Author: RapierCraft
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/RapierCraft/Perplexity-Comet-MCP
- Updated: 2026-06-22
- HTML: https://affpapa.org/en/nevibecode/mcp/perplexity-comet-mcp

## What it does

The server exposes a set of tools Claude can call against Comet. `comet_connect` launches the browser on a debug port, `comet_ask` sends a prompt and waits for the finished answer, `comet_poll` reports which step a task is on, and `comet_stop` halts it when the agent wanders off. There is also `comet_screenshot` for a PNG of the current view and `comet_mode` for switching Perplexity between search, research, labs and learn.

Tab control lives in `comet_tabs`: list, switch, close. Closing the last external tab is blocked, which keeps Comet from crashing, and internal pages such as `chrome://` are filtered out of the listing. Dropped connections recover on their own with exponential backoff. Completion is detected by watching page stability instead of waiting out a fixed timeout.

You need Node.js 18 or higher and the Perplexity Comet browser installed. Windows, WSL and macOS all work. Point the server at the browser with `COMET_PATH` and `COMET_PORT`; without them it will not find Comet.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `COMET_PATH`, `COMET_PORT` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env COMET_PATH=<COMET_PATH> --env COMET_PORT=<COMET_PORT> --transport stdio perplexity-comet-mcp -- npx -y perplexity-comet-mcp
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add perplexity-comet-mcp --env COMET_PATH=<COMET_PATH> --env COMET_PORT=<COMET_PORT> -- npx -y perplexity-comet-mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "perplexity-comet-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "perplexity-comet-mcp"
            ],
            "env": {
                "COMET_PATH": "<COMET_PATH>",
                "COMET_PORT": "<COMET_PORT>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "perplexity-comet-mcp": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "perplexity-comet-mcp"
            ],
            "env": {
                "COMET_PATH": "<COMET_PATH>",
                "COMET_PORT": "<COMET_PORT>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e COMET_PATH=<COMET_PATH> -e COMET_PORT=<COMET_PORT> perplexity-comet-mcp npx -y perplexity-comet-mcp
```
Replace <…> with your own values

## When to use it
- scrape a site that sits behind a login
- pull product prices off a store page
- walk a list of links and return a summary
- jump between several open tabs
- stop the agent when it starts clicking the wrong things

## Example prompts
- Connect to Comet and find out what's new in Python 3.12
- Open github.com/trending and list the top Python repositories
- Show me the open tabs and switch to stackoverflow.com

## Similar
- [Scrapling MCP Server](https://affpapa.org/en/nevibecode/mcp/scrapling-mcp-server.md) — MCP server · ★ 89433
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [AIHawk](https://affpapa.org/en/nevibecode/mcp/aihawk.md) — MCP server · ★ 32221
- [Skyvern](https://affpapa.org/en/nevibecode/mcp/skyvern.md) — MCP server · ★ 23263
- [SeleniumBase MCP](https://affpapa.org/en/nevibecode/mcp/seleniumbase-mcp.md) — MCP server · ★ 13169
- [apify-mcp-server](https://affpapa.org/en/nevibecode/mcp/apify-mcp-server.md) — MCP server · ★ 12927

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
