展示 HN:彗星 MCP – 给 Claude 代码一个可以点击的浏览器
Show HN: Comet MCP – Give Claude Code a browser that can click

原始链接: https://github.com/hanzili/comet-mcp

## Claude Code 获得更智能的浏览器 Comet-MCP 这引入了 **comet-mcp**,它连接了 Claude Code 的编码能力和 Perplexity 强大的、具有代理能力的 **Comet** 浏览器。现有的 Claude 网络工具功能有限,仅提供静态文本或依赖于不太精细的 LLM 来控制浏览器。Comet 专为网络研究而构建,擅长处理动态内容、登录和复杂任务——弄清楚 *如何* 实现特定目标。 comet-mcp 允许 Claude Code 利用 Comet 的智能。安装很简单:配置 `~/.claude.json` 以通过 MCP 服务器启动 Comet,并确保启用远程调试。 关键函数包括 `comet_connect`、`comet_ask`、`comet_poll`、`comet_stop` 和 `comet_screenshot`,使 Claude 能够委派研究、监控进度并直接接收结果。故障排除提示解决了连接问题和 Claude Code 中的工具可见性问题。本质上,comet-mcp 为 Claude Code 解锁了真正的代理网络浏览功能。

## Comet MCP:连接Claude Code与浏览器交互 一位开发者创建了“Comet MCP”,这是一个服务器,将Anthropic的Claude Code与Perplexity的Comet浏览器连接起来。Claude Code擅长脚本编写和API调用,但在需要网站交互的任务(如生成密钥或导航仪表盘)方面表现不佳。Comet可以处理“点击”操作,但缺乏直接集成。 该项目通过允许Claude将网站任务委托给Comet来解决这个问题,从而简化工作流程。开发者发现现有的解决方案,如Playwright MCP,对于Claude的上下文窗口来说过于消耗资源。 讨论强调了对AI浏览器安全日益增长的担忧——潜在的恶意行为,如未经授权的金融交易——以及对仔细访问控制的需求。一些评论员指出Claude的原生浏览器集成和其他工具,如Chrome DevTools MCP,作为替代方案,同时承认随着AI能力的扩展,需要不断加强安全措施。该项目引发了关于“MCP服务器”激增以及AI工具之间标准化通信协议的愿望的争论。
相关文章

原文

npm version

Give 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.

Demo

Existing web tools for Claude Code fall short:

  • WebSearch/WebFetch only return static text - no interaction, no login, no dynamic content
  • Browser automation MCPs (like browser-use) are agentic but use a generic LLM to control a browser - less polished, more fragile

Comet is Perplexity's native agentic browser - their AI is purpose-built for web research, deeply integrated with search, and battle-tested. Give it a goal, it figures out how to get there.

comet-mcp bridges Claude Code and Comet: Claude's coding intelligence + Perplexity's web intelligence.

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 will automatically launch Comet with remote debugging enabled when needed. If Comet is already running, it will restart it with the correct flags.

You: "Use Comet to research the top AI frameworks in 2025"
Claude: [connects to Comet, delegates research, monitors progress, returns results]
Tool Description
comet_connect Connect to Comet (auto-starts if needed)
comet_ask Send a task and wait for response
comet_poll Check task progress
comet_stop Stop current task
comet_screenshot Capture current page
comet_mode Switch modes: search, research, labs, learn
Claude Code <-> MCP <-> comet-mcp <-> CDP <-> Comet Browser <-> Perplexity AI

"Cannot connect to Comet"

  • Make sure Comet is installed at /Applications/Comet.app
  • Check if port 9222 is available (no other Chrome/debugger using it)

"Tools not showing in Claude"

  • Restart Claude Code after config changes

MIT


Report Issues · Contribute

联系我们 contact @ memedata.com