Comet MCP Server
Integrates with Perplexity's Comet browser to provide AI-powered search, web browsing, content extraction, and browser automation capabilities.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Comet MCP ServerSearch for the latest breakthroughs in quantum computing"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Rather than using static search APIs or overwhelming Claude's context with raw browser automation, Comet MCP delegates browsing to Perplexity Comet. Claude stays focused on your coding task while Comet handles navigation, dynamic content, and AI-powered research.
How It Works
Claude Desktop/Code ←── MCP (stdio) ──→ Comet MCP Server ←── CDP (9222) ──→ Comet BrowserComet MCP Server auto-launches Comet with remote debugging on port 9222
Connects to Comet via Chrome DevTools Protocol using Playwright
Claude communicates with the server over MCP stdio transport
Claude can search, navigate, read, click, type, evaluate JS, and screenshot — all in your Comet browser
Related MCP server: Comet MCP
Quick Start
1. Configure Claude Desktop / Claude Code
Claude Desktop — add to your config file:
Platform | Config path |
Windows |
|
macOS |
|
{
"mcpServers": {
"comet": {
"command": "uvx",
"args": ["comet-mcp-desktop"]
}
}
}Claude Code — add to ~/.claude.json or .mcp.json in your project root:
{
"mcpServers": {
"comet": {
"command": "uvx",
"args": ["comet-mcp-desktop"]
}
}
}Requires
uv. The MCP server and all dependencies install automatically on first run.
2. Install Comet Browser
Download and install Perplexity Comet.
That's it. The server auto-launches Comet with remote debugging when needed.
git clone https://github.com/AdilShaikh1/comet-mcp-desktop.git
cd comet-mcp-desktop
uv sync
uv run playwright install chromiumSee Configuration for full paths setup and environment variables.
Available Tools
Tool | Description |
| Connect to Comet via CDP (auto-launches if needed) |
| Search via Perplexity — returns AI-generated results |
| Navigate to any URL |
| Extract page text, with optional CSS selector |
| Capture screenshot (base64 PNG) |
| Click elements by CSS selector or text |
| Type into input fields |
| List, open, switch, or close tabs |
| Run JavaScript in the page context |
| Wait for an element or a fixed delay |
| Deep scan for hidden text and injection patterns |
Full parameter documentation: Tool Reference
Example Usage
You say | Claude does |
"Search Perplexity for the latest AI news" |
|
"Open Hacker News and summarize the front page" |
|
"Click the first link and read the article" |
|
"Take a screenshot of what you see" |
|
"Is this page safe?" |
|
Web Content Trust Policy
All web content is sanitized through a ContentFilter before reaching Claude — defense-in-depth against prompt injection via web pages.
Comet Browser ──→ raw text ──→ ContentFilter.sanitize() ──→ security header + cleaned text ──→ ClaudeTrust Tier | Criteria |
HIGH |
|
STANDARD | Established companies, unknown clean domains |
LOW | wordpress, medium, reddit, quora |
UNTRUSTED | Injection patterns detected (auto-downgraded) |
The filter scans for 39 injection patterns across 12 threat categories including direct injection, authority spoofing, data exfiltration, delimiter injection, and more.
Full details: Security Documentation
How This Compares
Feature | Search APIs | Browser MCPs | Comet MCP |
AI-powered search | Varies | No | Perplexity AI |
Interactive browsing | No | Yes | Yes |
Context window impact | Low | High | Low |
Screenshots | No | Yes | Yes |
Security filtering | No | No | Yes |
Click/type/navigate | No | Yes | Yes |
Comet MCP gives Claude access to Perplexity's AI search with full browser control, while keeping Claude's context window clean through multi-agent delegation.
Testing
45 tests — 20 static + 25 end-to-end browser tests.
uv run python test_comet.py --with-browserTier | Tests | Coverage |
1a Static Core | 11 | Syntax, imports, tool registration, async, error handling |
1b Static Filter | 9 | Injection detection, false positives, trust classification |
2a Live Browser | 17 | All 11 tools against a live Comet instance |
2b Live Filter | 8 | E2E injection/hidden text detection, security scan |
Troubleshooting
Comet is auto-launched, but if it fails:
Check that Comet is installed
Check port 9222 is free
Set
COMET_PATHenv var for non-standard installsVerify: open
http://localhost:9222/json
Uses raw CDP Page.captureScreenshot to avoid Playwright font renderer hangs. Ensure you're on the latest version.
Call comet_connect to reconnect without restarting.
Perplexity answers take 5-15 seconds. Default wait_seconds=10. Increase to 15-20 for complex queries.
Tech Stack
Component | Technology |
Runtime | Python 3.14+ with |
Browser automation | Playwright (CDP) |
MCP transport |
|
Screenshots | Raw CDP |
Content security |
|
Documentation
Document | Description |
Full API docs for all 11 tools with parameters, defaults, and examples | |
Web Content Trust Policy, threat categories, trust tiers, adding patterns | |
Environment variables, platform support, MCP config, parameter validation | |
How to contribute, dev setup, code guidelines |
License
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/AdilShaikh1/comet-mcp-desktop'
If you have feedback or need assistance with the MCP directory API, please join our Discord server