原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Perplexity Comet MCP

作者:RapierCraft版本 2.5.0i★ –i在你的电脑上运行
注册名称io.github.RapierCraft/perplexity-comet-mcp

安装

概览

作者提供的说明(英文原文)

Bridge Claude Code with Perplexity Comet for autonomous browsing and tab management

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 搜索与 AI 记忆

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: COMET_PATH, COMET_PORT

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 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 中打开

或者自己复制设置

粘贴到项目中的 .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"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .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 env
    Custom path to Comet browser executable (optional)
  • COMET_PORT env
    Chrome DevTools Protocol port (default: 9223)

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 RapierCraft 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“搜索与 AI 记忆”中的其他服务器比较i

  • 星标数多于此分类中其他 7251 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 7251 个服务器的 1% 更新
  • 基础检查结果等于或优于此分类中其他 7251 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Perplexity Comet MCP 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(2.5.0)于10个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Context7, Codebase Memory, Exa

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Context7

作者:upstash

Up-to-date docs for AI agents

电脑或云端★ 64,224MIT今天更新
安装

Codebase Memory

作者:DeusData

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

在你的电脑上运行★ 48,148MIT20天前更新
安装

Exa

作者:exa-labs

Connect AI agents to Exa for web search, content fetching, and multi-step research.

在云端运行★ 5,213MIT上个月更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

Perplexity Comet MCP

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.


Why Perplexity Comet MCP?

ApproachLimitation
Search APIsStatic text, no interaction, no login support
Browser AutomationSingle-agent model overwhelms context, fragments focus
Perplexity Comet MCPClaude 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.


Features

Core Capabilities
  • Autonomous Web Browsing - Comet navigates, clicks, types, and extracts data while Claude focuses on coding
  • Deep Research Mode - Leverage Perplexity's research capabilities for comprehensive analysis
  • Login Wall Handling - Access authenticated content through real browser sessions
  • Dynamic Content - Full JavaScript rendering and interaction support
Enhanced Features (New in This Fork)
FeatureDescription
Windows/WSL SupportFull compatibility with Windows and WSL environments
Tab ManagementTrack, switch, and close browser tabs with protection
Smart CompletionDetect response completion without fixed timeouts
Auto-ReconnectExponential backoff recovery from connection drops
One-Shot ReliabilityPre-operation health checks for consistent execution
Agentic Auto-TriggerAutomatically triggers browser actions from natural prompts

Comparison with Original

CapabilityOriginalEnhanced
Platform SupportmacOSWindows, WSL, macOS
Available Tools68 (+comet_tabs, +comet_upload)
Completion DetectionFixed timeoutStability-based
Connection RecoveryNoneAuto-reconnect with backoff
Tab ManagementNoneFull registry and control
Health MonitoringNoneCached health checks
Last Tab ProtectionNonePrevents browser crash

Installation

Prerequisites
Install via npm
npm install -g perplexity-comet-mcp
Install from Source
git clone https://github.com/RapierCraft/perplexity-comet-mcp.git

cd perplexity-comet-mcp npm install npm run build

Configure Claude Code

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"] } } }


Tools Reference

comet_connect

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)


comet_ask

Send a prompt to Comet and wait for the complete response. Automatically triggers agentic browsing for URLs and action-oriented requests.

Parameters:
  • prompt (required): Question or task for Comet
  • newChat (optional): Start fresh conversation (default: false)
  • timeout (optional): Max wait time in ms (default: 120000)

Returns: Complete response text

Examples:

# Simple research query

comet_ask "What are the latest features in Python 3.12?"

Agentic browsing (auto-triggered)

comet_ask "Go to github.com/trending and list top Python repos"

Site-specific data extraction

comet_ask "Check the price of iPhone 15 on amazon.com"


comet_poll

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:

  • Preparing to assist you
  • Navigating to github.com
  • Clicking on Trending
  • Scrolling page

comet_stop

Halt the current agentic task if it goes off track.

Parameters: None

Returns: Confirmation message


comet_screenshot

Capture a screenshot of the current browser view.

Parameters: None

Returns: PNG image data


comet_tabs

View and manage browser tabs. Essential for multi-tab workflows.

Parameters:
  • action (optional): "list" (default), "switch", or "close"
  • domain (optional): Domain to match (e.g., "github.com")
  • tabId (optional): Specific tab ID

Returns: Tab listing or action confirmation

Examples:

# List all external tabs

comet_tabs

2 browsing tab(s) open:

  • AGENT-BROWSING: github.com [ACTIVE] URL: https://github.com/trending
  • AGENT-BROWSING: stackoverflow.com URL: https://stackoverflow.com/questions

Switch to a tab

comet_tabs action="switch" domain="stackoverflow.com"

Switched to stackoverflow.com (https://stackoverflow.com/questions)

Close a tab (protected if last tab)

comet_tabs action="close" domain="github.com"

Closed github.com

Tab Protection:

  • Cannot close the last external browsing tab (prevents Comet crash)
  • Internal tabs (chrome://, Perplexity UI) are automatically filtered

comet_mode

Switch Perplexity search modes for different use cases.

Parameters:
  • mode (optional): "search", "research", "labs", or "learn"

Returns: Current mode or confirmation of switch

ModeUse Case
searchQuick web searches
researchDeep, comprehensive analysis
labsData analytics and visualization
learnEducational explanations

comet_upload

Upload files to file input elements on web pages. Essential for posting images to social media, attaching files to forms, or uploading documents.

Parameters:
  • filePath (required): Absolute path to the file to upload
  • selector (optional): CSS selector for specific file input
  • checkOnly (optional): If true, only checks what file inputs exist

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

Check what file inputs exist on the page

comet_upload filePath="dummy" checkOnly=true

Found 2 file input(s) on the page:

  1. #image-upload
  2. input[name="attachment"]

Upload to a specific input

comet_upload filePath="/home/user/doc.pdf" selector="#attachment-input"

File uploaded successfully: /home/user/doc.pdf

Workflow for posting images:

  1. Navigate to the post creation page (e.g., Reddit, Twitter)
  2. Use comet_upload checkOnly=true to find file inputs
  3. Use comet_upload filePath="..." selector="..." to attach the file
  4. Continue with form submission

Architecture

┌─────────────────┐     MCP Protocol      ┌──────────────────┐

│ Claude Code │ ◄──────────────────► │ Perplexity │ │ (Your IDE) │ │ Comet MCP │ └─────────────────┘ └────────┬─────────┘ │ Chrome DevTools Protocol │ ┌────────▼─────────┐ │ Comet Browser │ │ (Perplexity) │ └──────────────────┘ │ ┌────────▼─────────┐ │ External │ │ Websites │ └──────────────────┘

Key Components
ComponentPurpose
index.tsMCP server and tool handlers
cdp-client.tsChrome DevTools Protocol client with reconnection logic
comet-ai.tsPerplexity interaction, prompt submission, response extraction
types.tsTypeScript interfaces for tabs, state, and CDP types

Configuration

Environment Variables
VariableDescriptionDefault
COMET_PATHCustom path to Comet executableAuto-detected
COMET_PORTCDP debugging port9223
Custom Comet Path
# Windows

set COMET_PATH=C:\Custom\Path\comet.exe

macOS/Linux

export COMET_PATH=/custom/path/to/Comet.app/Contents/MacOS/Comet


Troubleshooting

Connection Issues

Problem: Error: Failed to list targets: ECONNREFUSED

Solutions:

  1. Ensure Comet browser is installed
  2. Close any existing Comet instances
  3. Run comet_connect to auto-start with correct flags

Problem: WebSocket connection closed during long tasks

Solution: This version handles reconnection automatically. If persistent, increase timeout:

comet_ask prompt="..." timeout=180000

Windows-Specific Issues

Problem: ECONNRESET errors on Windows

Solution: This version includes PowerShell-based fetch workarounds. Ensure:

  1. PowerShell is available in PATH
  2. No firewall blocking localhost:9223

Problem: Comet not found on Windows

Solution: Set custom path:

set COMET_PATH=%LOCALAPPDATA%\Perplexity\Comet\Application\comet.exe

WSL-Specific Issues

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:

  1. Create or edit %USERPROFILE%\.wslconfig (e.g., C:\Users\YourName\.wslconfig):
[wsl2]

networkingMode=mirrored

  1. Restart WSL:
wsl --shutdown
  1. Open a new WSL terminal and try again.

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.


Tab Management Issues

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.


Development

Build from Source
git clone https://github.com/RapierCraft/perplexity-comet-mcp.git

cd perplexity-comet-mcp npm install npm run build

Run in Development
npm run dev
Run Tests
npm test
Project Structure
perplexity-comet-mcp/

├──

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx