by hanzili
MCP Server connecting to Perplexity Comet browser
# Add to your Claude Code skills
git clone https://github.com/hanzili/comet-mcpGive 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.

Existing web tools for Claude Code fall into two categories, both with limitations:
Return static text. No interaction, no login, no dynamic content. Great for quick lookups, but can't navigate complex sites or fill forms.
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.
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.
Add to ~/.claude.json or .mcp.json:
{
"mcpServers": {
"comet-bridge": {
"command": "npx",
"args": ["-y", "comet-mcp"]
}
}
}
Download and install Perplexity Comet.
That's it! The MCP server automatically launches Comet with remote debugging when needed.
You: "Use Comet to research the top AI frameworks in 2025"
Claude: [delegates to Comet, monitors progress, returns results]
You: "Log into my GitHub and check my notifications"
Claude: [Comet handles the login flow and navigation]
| Tool | Description |
|------|-------------|
| comet_connect | Connect to Comet (auto-starts if needed) |
| comet_ask | Send a task and wait for response |
| comet_poll | Check progress on long-running tasks |
| comet_stop | Stop current task |
| comet_screenshot | Capture current page |
| comet_mode | Switch modes: search, research, labs, learn |
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.