
Perplexity Comet Mcp
io.github.RapierCraft由 GitHub 账号 RapierCraft 发布v2.5.0更新于 Oct 25, 2026
Bridge Claude Code with Perplexity Comet for autonomous browsing and tab management
发布方自己的服务:Alterlab
概览
一个本地 MCP 服务器,将 Claude Code 与 Perplexity Comet 浏览器连接,让助手执行自主浏览、研究和标签页管理。
- 可以做什么
- 连接并启动 Comet 浏览器,支持自动重连和健康检查,并可在任务偏离时停止任务。向 Comet 发送提示并轮询进度或最终回复,包括对网址的自主浏览和数据提取。在 search、research、labs 和 learn 之间切换 Perplexity 模式。列出、切换和关闭浏览器标签页,并保护最后一个标签页。截取当前浏览器视图的屏幕截图。将本地文件上传到网页的文件输入元素。
- 适用场景
- 适合希望助手在真实且已登录的浏览器会话中研究网络或操作网站、同时自己继续写代码的场景,包括多标签页工作流以及通过网页表单发布或附加文件。
- 运行要求
- 以本地进程方式通过 npm 运行(需要 Node.js 18 或更高版本),并需要安装 Perplexity Comet 浏览器以及兼容的 MCP 客户端(如 Claude Code)。可选环境变量 COMET_PATH(自定义浏览器可执行文件路径)和 COMET_PORT(Chrome DevTools Protocol 端口,默认 9223)。在 WSL 下可能需要镜像网络才能访问 Windows 的 localhost 端口。
安装
在 SourceWeft 中
- 打开 控制台中的 Perplexity Comet Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Perplexity Comet MCP
[npm version] [License: MIT] [Node.js Version] [TypeScript] [MCP Compatible] [Platform]
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?
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)
Comparison with Original
Installation
Prerequisites
- Node.js 18 or higher
- Perplexity Comet Browser installed
- Claude Code or compatible MCP client
Install via npm
Install from Source
Configure Claude Code
Add to your Claude Code MCP settings (~/.claude/settings.json or VS Code settings):
Windows Users: Use the full Windows path:
Tools Reference
comet_connect
Establish connection to Comet browser. Auto-launches if not running.
Example:
comet_ask
Send a prompt to Comet and wait for the complete response. Automatically triggers agentic browsing for URLs and action-oriented requests.
Examples:
comet_poll
Check status and progress of ongoing tasks. Returns the response if completed.
Example:
comet_stop
Halt the current agentic task if it goes off track.
comet_screenshot
Capture a screenshot of the current browser view.
comet_tabs
View and manage browser tabs. Essential for multi-tab workflows.
Examples:
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.
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.
Examples:
Workflow for posting images:
- Navigate to the post creation page (e.g., Reddit, Twitter)
- Use
comet_upload checkOnly=trueto find file inputs - Use
comet_upload filePath="..." selector="..."to attach the file - Continue with form submission
Architecture
Key Components
Configuration
Environment Variables
Custom Comet Path
Troubleshooting
Connection Issues
Problem: Error: Failed to list targets: ECONNREFUSED
Solutions:
- Ensure Comet browser is installed
- Close any existing Comet instances
- Run
comet_connectto auto-start with correct flags
Problem: WebSocket connection closed during long tasks
Solution: This version handles reconnection automatically. If persistent, increase timeout:
Windows-Specific Issues
Problem: ECONNRESET errors on Windows
Solution: This version includes PowerShell-based fetch workarounds. Ensure:
- PowerShell is available in PATH
- No firewall blocking localhost:9223
Problem: Comet not found on Windows
Solution: Set custom path:
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:
- Create or edit
%USERPROFILE%\.wslconfig(e.g.,C:\Users\YourName\.wslconfig):
- Restart WSL:
- 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
Run in Development
Run Tests
Project Structure
Contributing
Contributions are welcome. Please read CONTRIBUTING.md before submitting a pull request.
Development Guidelines
- Maintain TypeScript strict mode compliance
- Add tests for new features
- Update documentation for API changes
- Follow existing code style
Attribution
This project is an enhanced fork of comet-mcp by hanzili.
Key Enhancements by RapierCraft
- Windows and WSL platform support
- Tab management system (comet_tabs tool)
- Smart completion detection
- Auto-reconnect with exponential backoff
- Health check caching
- Agentic prompt auto-transformation
- Last tab protection
- Internal tab filtering
License
MIT License - see LICENSE for details.
Links
Built with precision by RapierCraft
来源:README.md,提交 c3ce9c4
工具
0版本历史
1- v2.5.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分