Table of Contents
- Why MCP Comet
- Demo
- Quick Start
- Research Modes
- Toolset at a Glance
- Agent Workflows
- CLI Power Ops
- Architecture
- Configuration
- Compatibility
- Contributing
- License
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
- Node.js >= 18
- Perplexity Comet installed
[!TIP] Run
mcp-comet detectto 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.
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
Query
Content
Navigation
Full reference: docs/tools.md
Agent Workflows
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:
Config file (mcp-comet.config.json) example:
{
"responseTimeout": 300000,
"logLevel": "debug"
}
More options and full env var reference: docs/configuration.md
Compatibility
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