Skip to main content
Glama
Comet MCP Server

Comet MCP Server

by AdilShaikh1

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
COMET_PATHNoPath to Comet browser executable for non-standard installs

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
comet_connectA

Connect to the Comet browser via CDP. Auto-launches Comet if needed.

ALWAYS call this first before using any other comet tool. On success, returns connection info plus a workflow guide for optimal results.

If connection is lost mid-session, call this again to reconnect.

comet_searchA

Start a Perplexity search in a new tab and return immediately.

Opens a NEW TAB, navigates to the search URL, and returns as soon as the page begins loading. Perplexity streams the answer in the background tab. Call comet_read_page after ~30-45s to retrieve the full answer.

This async-split design avoids MCP timeout issues on Cowork/cloud sessions. Each search gets its own tab (max 5, oldest auto-closed via FIFO).

Workflow: comet_connect → comet_search → (wait 30-45s) → comet_read_page → comet_security_scan (if suspicious).

Args: query: The search query. mode: 'search' (quick answers, wait ~15s) or 'research' (deep analysis with Gemini thinking, wait ~30-45s before calling comet_read_page).

comet_search_financeA

Search Perplexity Finance for market data, stock quotes, or screener results.

Navigates the active tab to the appropriate Perplexity Finance page and returns immediately. Call comet_read_page(selector="main") after ~3-5s to retrieve the full data. Screener mode returns after typing the query.

Modes:

  • "market": Dashboard — indices, sectors, movers, crypto, AI market summary

  • "quote": Stock/ETF/crypto detail — price, P/E, EPS, 52W range, AI analysis

  • "screener": Natural-language stock screener — type a query, get matches. The screener runs on Perplexity's Computer feature.

  • "earnings": Earnings calendar for the current week

  • "predictions": Prediction markets (Polymarket) — rates, oil, elections

Args: mode: One of 'market', 'quote', 'screener', 'earnings', 'predictions'. ticker: Ticker symbol for 'quote' mode (e.g., 'NVDA', 'BTCUSD', 'XLK'). query: Natural language query for 'screener' mode (e.g., 'semiconductor stocks with revenue growth > 20%').

comet_navigateA

Navigate Comet to a specific URL in the active tab.

Use this to visit specific pages (docs, APIs, articles). For web searches, prefer comet_search instead. Content is auto-sanitized for injection detection.

Args: url: The URL to navigate to. wait_for: Wait condition -- 'load', 'domcontentloaded', or 'networkidle'.

comet_read_pageA

Read the text content of the current page (or active tab) in Comet.

PRIMARY USE: Call this after comet_search to retrieve the streamed answer. Wait ~30-45s (research mode) or ~15-20s (search mode) before calling. If the answer is still loading ("Searching the web" in output), wait longer and call again.

Also use to drill into specific page sections or re-read content. Content is auto-sanitized — if injections are detected, run comet_security_scan.

Args: selector: Optional CSS selector to read specific content (e.g. 'main'). include_links: Whether to include href URLs from links. max_length: Maximum characters to return (default 50000).

comet_screenshotA

Take a screenshot of the current Comet page. Returns base64 PNG.

Uses raw CDP (not Playwright) to avoid font-renderer hangs. Useful for visual verification after navigation or to capture charts/images that text extraction misses.

Args: full_page: Whether to capture the full scrollable page (not just viewport).

comet_clickA

Click an element on the current Comet page.

Use 'text=...' for visible text matching (preferred over brittle CSS selectors). Waits after click for page to settle. If element not found, returns error — use comet_read_page first to verify the element exists.

Args: selector: CSS selector or 'text=Something' for text matching. wait_after: Seconds to wait after clicking (default 2).

comet_typeA

Type text into an input field in the current Comet page.

For Perplexity searches, prefer comet_search (URL-based, no selectors needed). Use this for form inputs on other sites. Clears the field by default before typing.

Args: selector: CSS selector of the input field. text: Text to type into the field. press_enter: Whether to press Enter after typing. clear_first: Whether to clear the field before typing (default true).

comet_tabsA

Manage tabs in the Comet browser. Each comet_search opens a new tab (tagged [search] in list output). Use 'list' to see all tabs, 'switch' to go back to a previous search result, 'close' to free memory.

Tab hygiene: list tabs periodically and close old ones. Max 5 search tabs are kept (oldest auto-closed). Closing a tab removes it from search tracking.

Args: action: 'list' (show all), 'new' (open tab), 'switch' (by index), 'close' (by index). tab_index: Tab index for 'switch' or 'close' (0-based, from 'list' output). url: URL for 'new' tab action (opens blank if omitted).

comet_evaluateA

Evaluate a JavaScript expression in the current Comet page.

Powerful but use with care — string results are sanitized for injection detection. Use for DOM queries, data extraction, or page manipulation that other tools don't cover.

Args: expression: JavaScript expression to evaluate (e.g. 'document.title').

comet_waitA

Wait for a specific element to appear or a fixed duration.

Use after comet_click or comet_navigate when content loads asynchronously. Provide either selector OR seconds, not both. comet_search returns before the answer is ready, so wait with comet_wait or a fixed delay, then call comet_read_page.

Args: selector: CSS selector to wait for (e.g. 'div.results'). seconds: Fixed seconds to wait (0-120).

comet_security_scanA

Deep security scan of current page for prompt injection and hidden content.

Run this when: content filter flags injections, page seems suspicious, or you want to verify a page is clean before trusting its content. Checks CSS-hidden elements, zero-width chars, HTML comments, and 39 injection patterns.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.1/5.0

Scored across 12 tools

Disambiguation4/5

Each tool maps to a distinct browser primitive (navigate, read, click, type, wait, evaluate, screenshot, tabs) and the few adjacent pairs are explicitly separated in their descriptions (comet_search opens a new tab vs comet_navigate reuses the active tab; comet_search vs comet_search_finance differ by surface). The main residual ambiguity is the search→wait→read_page sequence, where an agent could misjudge whether comet_wait or comet_read_page is the right next call, but the workflow guidance mitigates this.

Naming Consistency5/5

Every tool uses the same comet_ prefix with snake_case verb or verb_noun forms (comet_connect, comet_read_page, comet_search_finance, comet_security_scan). The convention is uniform and predictable across all 12 tools, with no mixing of casing or verb styles.

Tool Count5/5

Twelve tools is well within the ideal 3-15 band and each tool earns its place: one connection, two search entry points, and the core page-interaction primitives. Nothing appears redundant or missing at the count level.

Completeness4/5

The surface covers the full browse lifecycle: connect, navigate, read, click, type, wait, screenshot, evaluate, tab management, and a security scan. Minor gaps remain for common actions like history back/forward, scrolling, key presses beyond Enter, and hover/select interactions, but most can be worked around via comet_evaluate or comet_navigate.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues