npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@onestepat4time/mcp-comet

v1.1.5

Published

The definitive MCP server for Perplexity Comet browser management

Readme


Table of Contents


Why MCP Comet

MCP Comet gives your agent more than a chat box. It gives your agent a complete research cockpit.

  • Run high-quality web research in Comet directly from MCP clients.
  • Switch between 7 purpose-built research modes instantly.
  • Pull sources, screenshots, conversations, tabs, and full page content.
  • Stay resilient with auto-connect, reconnect logic, and selector fallback strategies.

[!NOTE] If your workflow is "ask, verify, cite, and iterate", this is the server built for it.


Demo


Quick Start

Prerequisites

[!TIP] Run mcp-comet detect to verify your setup before configuring.

Install

Option 1: Global install (recommended)

npm install -g @onestepat4time/mcp-comet

Option 2: Run without install

npx -y @onestepat4time/mcp-comet

Option 3: Local development

git clone https://github.com/OneStepAt4time/mcp-comet.git
cd mcp-comet
npm ci
npm run build

Configure

Add MCP Comet to your MCP client config.

Claude Desktop (~/.claude/claude_desktop_config.json):

{
  "mcpServers": {
    "mcp-comet": {
      "type": "stdio",
      "command": "mcp-comet",
      "args": ["start"]
    }
  }
}

Cursor (~/.cursor/mcp.json):

{
  "mcpServers": {
    "mcp-comet": {
      "type": "stdio",
      "command": "mcp-comet",
      "args": ["start"]
    }
  }
}

First Query

Prompt your agent with something like:

Use Comet in deep-research mode to analyze the global battery supply chain in 2026. Return a structured summary with all cited sources.

Your agent can chain comet_mode, comet_ask, comet_wait, and comet_get_sources automatically.


Research Modes

Choose the mode that matches the job.

| Mode | Description | Example | | --- | --- | --- | | standard | Fast factual lookups | "What is the latest CPI reading for Canada?" | | deep-research | Multi-source investigations | "Map the 2026 AI chip supply chain and major risks." | | model-council | Multi-perspective reasoning | "Debate arguments for and against UBI with tradeoffs." | | create | Drafting and ideation | "Draft a technical explainer on WebAssembly in edge runtimes." | | learn | Guided teaching | "Teach me B-trees step by step with examples." | | review | Critical analysis | "Review this API design for security and reliability gaps." | | computer | Browser-interactive tasks | "Open arXiv and find the newest papers on retrieval augmentation." |

CLI example:

mcp-comet call comet_mode '{"mode":"deep-research"}'
mcp-comet call comet_ask '{"prompt":"Analyze current fusion startups by funding and milestones"}'
mcp-comet call comet_wait
mcp-comet call comet_get_sources

Toolset at a Glance

Session

| Tool | Description | | --- | --- | | comet_connect | Connects to Comet or launches it | | comet_poll | Returns live status and partial progress | | comet_wait | Waits for completion and returns the full response | | comet_stop | Stops a running task |

Query

| Tool | What It Does | | ------------ | ------------------------------------- | | comet_ask | Sends a prompt to Comet | | comet_mode | Gets or switches active research mode |

Content

| Tool | What It Does | | ------------------------ | -------------------------------------------------- | | comet_screenshot | Captures PNG/JPEG screenshots | | comet_get_sources | Extracts references, including collapsed citations | | comet_get_page_content | Extracts page title and readable text |

Navigation

| Tool | What It Does | | -------------------------- | ---------------------------------- | | comet_list_tabs | Lists tabs by category | | comet_switch_tab | Jumps to a tab by id or title | | comet_list_conversations | Lists sidebar conversations | | comet_open_conversation | Opens a specific conversation |

Full reference: docs/tools.md


Agent Workflows

| Goal | Flow | | ---- | ---- | | Deep research with citations | comet_connect -> comet_mode(deep-research) -> comet_ask -> comet_wait -> comet_get_sources | | Multi-perspective debate | comet_mode(model-council) -> comet_ask -> comet_wait | | Visual evidence capture | comet_screenshot -> pass image into your vision-capable model | | Resume old investigations | comet_list_conversations -> comet_open_conversation -> comet_get_page_content |


CLI Power Ops

Install globally:

npm install -g @onestepat4time/mcp-comet

Use directly:

# connectivity and diagnostics
mcp-comet detect
mcp-comet call comet_connect

# ask + wait pattern
mcp-comet call comet_ask '{"prompt":"What are the top AI safety papers this week?"}'
mcp-comet call comet_wait

# source extraction
mcp-comet call comet_get_sources

No install option:

npx -y @onestepat4time/mcp-comet

Architecture

MCP Tools
   -> UI Automation
      -> CDP Transport
         -> Perplexity Comet
  • Ordered selector strategies tolerate Comet UI changes.
  • Automatic version detection selects the correct selector set.
  • Auto-reconnect includes health checks with retry backoff.
  • Source extraction uses a second pass to expand collapsed citations.

Deep dive: docs/architecture.md


Configuration Essentials

Most teams only tune these three:

| Variable | Default | Change It When | | ------------------------ | ------------- | ---------------------------------------- | | COMET_RESPONSE_TIMEOUT | 180000 | Queries are long and timing out | | COMET_PATH | auto-detect | Comet is in a non-standard install path | | COMET_LOG_LEVEL | info | You need debug logs |

Config file (mcp-comet.config.json) example:

{
  "responseTimeout": 300000,
  "logLevel": "debug"
}

More options and full env var reference: docs/configuration.md


Compatibility

| Chrome Version | Selector Set | Status | | -------------- | ------------ | --------- | | 145 | v145 | Supported |

Unknown versions fall back to the latest known selector set.

Details and upgrade flow: docs/comet-compatibility.md


Contributing

PRs welcome. For non-trivial changes, please open an issue first to discuss what you'd like to change.

npm run lint && npm test

Full guide: docs/contributing.md

License

MIT