Context7
Up-to-date docs for AI agents
作者による説明(英語の原文)
Bridge Claude Code with Perplexity Comet for autonomous browsing and tab management
この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
使っているAIアプリを選んで、設定をコピーしてください。
COMET_PATH, COMET_PORT必要なもの
どのアプリを使っていますか?
上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。
Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます
{
"mcpServers": {
"perplexity-comet": {
"command": "npx",
"args": [
"-y",
"perplexity-comet-mcp"
],
"env": {
"COMET_PATH": "your-value",
"COMET_PORT": "your-value"
}
}
}
}ターミナルでこれを実行します
claude mcp add perplexity-comet --env COMET_PATH=your-value --env COMET_PORT=your-value -- npx -y perplexity-comet-mcp動かす前に、空欄の値を入力してください。
プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"perplexity-comet": {
"command": "npx",
"args": [
"-y",
"perplexity-comet-mcp"
],
"env": {
"COMET_PATH": "your-value",
"COMET_PORT": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"perplexity-comet": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"perplexity-comet-mcp"
],
"env": {
"COMET_PATH": "your-value",
"COMET_PORT": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。
選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。
COMET_PATH envCOMET_PORT envこの設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月7日にチェック
レジストリ名は、リポジトリを所有するGitHubアカウント RapierCraft で確認済みです
このリポジトリはまだGitHubから読み取っていません
このリポジトリはまだGitHubから読み取っていません
これはパソコンで動くため、インターネット上のエンドポイントはありません
パソコンで動き、代わりにローカルの設定を使います
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
GitHubリポジトリの最終更新は–、最新バージョン(2.5.0)がレジストリに届いたのは10 か月前です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。
同じカテゴリには:Context7, Codebase Memory, Exa
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
A production-grade MCP (Model Context Protocol) server that bridges Claude Code with Perplexity's Comet browser for autonomous web browsing, research, and multi-tab workflow management.
| Approach | Limitation |
|---|---|
| Search APIs | Static text, no interaction, no login support |
| Browser Automation | Single-agent model overwhelms context, fragments focus |
| Perplexity Comet MCP | Claude codes while Comet handles browsing autonomously |
This is a significantly enhanced fork of hanzili/comet-mcp with Windows support, smart completion detection, robust connection handling, and full tab management.
| Feature | Description |
|---|---|
| Windows/WSL Support | Full compatibility with Windows and WSL environments |
| Tab Management | Track, switch, and close browser tabs with protection |
| Smart Completion | Detect response completion without fixed timeouts |
| Auto-Reconnect | Exponential backoff recovery from connection drops |
| One-Shot Reliability | Pre-operation health checks for consistent execution |
| Agentic Auto-Trigger | Automatically triggers browser actions from natural prompts |
| Capability | Original | Enhanced |
|---|---|---|
| Platform Support | macOS | Windows, WSL, macOS |
| Available Tools | 6 | 8 (+comet_tabs, +comet_upload) |
| Completion Detection | Fixed timeout | Stability-based |
| Connection Recovery | None | Auto-reconnect with backoff |
| Tab Management | None | Full registry and control |
| Health Monitoring | None | Cached health checks |
| Last Tab Protection | None | Prevents browser crash |
npm install -g perplexity-comet-mcp
git clone https://github.com/RapierCraft/perplexity-comet-mcp.git
cd perplexity-comet-mcp npm install npm run build
Add to your Claude Code MCP settings (~/.claude/settings.json or VS Code settings):
{
"mcpServers": { "comet-bridge": { "command": "node", "args": ["/path/to/perplexity-comet-mcp/dist/index.js"] } } }
Windows Users: Use the full Windows path:
{
"mcpServers": { "comet-bridge": { "command": "node", "args": ["C:\\Users\\YourName\\perplexity-comet-mcp\\dist\\index.js"] } } }
Establish connection to Comet browser. Auto-launches if not running.
Parameters: None
Returns: Connection status message
Example:
> comet_connect
Comet started with debug port 9223 Connected to Perplexity (cleaned 2 old tabs)
Send a prompt to Comet and wait for the complete response. Automatically triggers agentic browsing for URLs and action-oriented requests.
Parameters:
Returns: Complete response text
Examples:
# Simple research query
comet_ask "What are the latest features in Python 3.12?"
comet_ask "Go to github.com/trending and list top Python repos"
comet_ask "Check the price of iPhone 15 on amazon.com"
Check status and progress of ongoing tasks. Returns the response if completed.
Parameters: None
Returns: Status (IDLE/WORKING/COMPLETED), steps taken, or final response
Example:
> comet_poll
Status: WORKING Browsing: https://github.com/trending Current: Scrolling page
Steps:
Halt the current agentic task if it goes off track.
Parameters: None
Returns: Confirmation message
Capture a screenshot of the current browser view.
Parameters: None
Returns: PNG image data
View and manage browser tabs. Essential for multi-tab workflows.
Parameters:
Returns: Tab listing or action confirmation
Examples:
# List all external tabs
comet_tabs
2 browsing tab(s) open:
comet_tabs action="switch" domain="stackoverflow.com"
Switched to stackoverflow.com (https://stackoverflow.com/questions)
comet_tabs action="close" domain="github.com"
Closed github.com
Tab Protection:
Switch Perplexity search modes for different use cases.
Parameters:
Returns: Current mode or confirmation of switch
| Mode | Use Case |
|---|---|
| search | Quick web searches |
| research | Deep, comprehensive analysis |
| labs | Data analytics and visualization |
| learn | Educational explanations |
Upload files to file input elements on web pages. Essential for posting images to social media, attaching files to forms, or uploading documents.
Parameters:
Returns: Success message or error with available inputs
Examples:
# Upload an image to the first file input found
comet_upload filePath="/home/user/screenshot.png"
File uploaded successfully: /home/user/screenshot.png
comet_upload filePath="dummy" checkOnly=true
Found 2 file input(s) on the page:
comet_upload filePath="/home/user/doc.pdf" selector="#attachment-input"
File uploaded successfully: /home/user/doc.pdf
Workflow for posting images:
comet_upload checkOnly=true to find file inputscomet_upload filePath="..." selector="..." to attach the file┌─────────────────┐ MCP Protocol ┌──────────────────┐
│ Claude Code │ ◄──────────────────► │ Perplexity │ │ (Your IDE) │ │ Comet MCP │ └─────────────────┘ └────────┬─────────┘ │ Chrome DevTools Protocol │ ┌────────▼─────────┐ │ Comet Browser │ │ (Perplexity) │ └──────────────────┘ │ ┌────────▼─────────┐ │ External │ │ Websites │ └──────────────────┘
| Component | Purpose |
|---|---|
index.ts | MCP server and tool handlers |
cdp-client.ts | Chrome DevTools Protocol client with reconnection logic |
comet-ai.ts | Perplexity interaction, prompt submission, response extraction |
types.ts | TypeScript interfaces for tabs, state, and CDP types |
| Variable | Description | Default |
|---|---|---|
COMET_PATH | Custom path to Comet executable | Auto-detected |
COMET_PORT | CDP debugging port | 9223 |
# Windows
set COMET_PATH=C:\Custom\Path\comet.exe
export COMET_PATH=/custom/path/to/Comet.app/Contents/MacOS/Comet
Problem: Error: Failed to list targets: ECONNREFUSED
Solutions:
comet_connect to auto-start with correct flagsProblem: WebSocket connection closed during long tasks
Solution: This version handles reconnection automatically. If persistent, increase timeout:
comet_ask prompt="..." timeout=180000
Problem: ECONNRESET errors on Windows
Solution: This version includes PowerShell-based fetch workarounds. Ensure:
Problem: Comet not found on Windows
Solution: Set custom path:
set COMET_PATH=%LOCALAPPDATA%\Perplexity\Comet\Application\comet.exe
Problem: WSL cannot connect to Windows localhost:9223
Explanation: WSL2 uses a separate network namespace by default. The MCP uses Chrome DevTools Protocol (CDP) which requires WebSocket connections to Windows localhost.
Solution: Enable WSL mirrored networking:
%USERPROFILE%\.wslconfig (e.g., C:\Users\YourName\.wslconfig):[wsl2]
networkingMode=mirrored
wsl --shutdown
Alternative: Run Claude Code from Windows PowerShell instead of WSL.
Problem: UNC paths are not supported warnings
Explanation: This is a benign warning from PowerShell when launched from WSL. The MCP handles this automatically.
Problem: Cannot close - this is the only browsing tab
Explanation: This is intentional protection. Comet requires at least one external tab. Open another tab first, then close the unwanted one.
git clone https://github.com/RapierCraft/perplexity-comet-mcp.git
cd perplexity-comet-mcp npm install npm run build
npm run dev
npm test
perplexity-comet-mcp/
├──
冒頭だけを表示しています。続きはリポジトリで読めます