Ketch CLI logo

Ketch CLI

Stateless MCP-enabled CLI for web search, code search, documentation lookup, scraping, crawling, and extraction.

Install Ketch CLI

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "ketch-cli": {
      "command": "npx",
      "args": [
        "-y",
        "ketch-cli"
      ],
      "env": {
        "KETCH_SEARCH_ORDER": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env KETCH_SEARCH_ORDER=YOUR_VALUE_HERE --transport stdio ketch-cli -- npx -y ketch-cli

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

ketch-cli MCP server gives agents one stateless interface for web search, public code search, library documentation, page scraping, crawling, and content extraction. It uses configurable provider backends, including keyless search options, user-supplied API keys, and self-hosted SearXNG or Degoog instances. The underlying CLI supports structured JSON output, backend selection, fallback, multi-provider ranking, and configuration discovery. Reach for it when an agent needs research and web-content tools without running a daemon or separate provider integration for each source.

Use cases

  • Search the web from an agent without configuring an API key
  • Find usage examples across public open-source repositories
  • Answer library questions from indexed or web-hosted documentation
  • Extract readable Markdown from HTML pages and text PDFs

Key features

  • Keyless and configurable web search backends
  • Public OSS code search
  • Web and offline indexed documentation queries
  • HTML, PDF, and piped-content extraction
  • Multi-backend ranking and URL deduplication
  • JSON output for agent workflows

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

21/21 checks healthy over the last 50d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 11d ago via OSV.dev · ketch-cli (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars774Stargazers on the source repository.
npm downloads2.6kPackage downloads in the last 30 days.
Last commit6d agoMost recent push to the default branch.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Ketch CLI works

What ketch-cli MCP server does

ketch-cli combines several research and extraction workflows behind a single command-line binary that can also serve AI agents through MCP. Its capabilities cover web search, searches across public open-source code, documentation questions, HTML extraction, web scraping, and crawling. The tool is stateless: each invocation performs its operation without requiring a long-running daemon or API server.

Web search can use a keyless provider chain, configured commercial providers, or a self-hosted SearXNG or Degoog endpoint. Code search queries public repository source through Grep, Sourcegraph, or GitHub Code Search. Documentation queries search the web and read relevant pages, or use an indexed documentation site for offline answers. Scraping and extraction convert HTML pages and text-based PDFs into cleaner Markdown.

How it works

The auto search mode chooses from usable backends in a configured order. Locally configured endpoints and providers with credentials are preferred before keyless hosted providers. A specific backend can be selected for an invocation, while --multi queries several backends and combines their rankings with Reciprocal Rank Fusion. --random selects one backend and falls back to others if it fails.

Each command supports --json, allowing agents to consume predictable structured results. Search results can optionally be scraped to retrieve full page content. Documentation lookup reads the highest-ranked readable result and may read additional pages from the same site; it reports the pages used, skipped content, and sections omitted from the answer.

For extraction, ketch-cli uses page structure such as main, article, or uniform document sections, removes common navigation and interface elements, and falls back to readability processing. The extract_mode setting controls whether additional blocks such as related-post sections and comment threads are removed.

Setup and configuration

Install the binary through the macOS and Linux install script, Homebrew, npm, Go, or a prebuilt release for Linux, macOS, or Windows on amd64 and arm64. The install script verifies the downloaded build against its checksums and places it in a writable system or user binary directory.

Configure a preferred backend with commands such as ketch config set backend searxng. Provider credentials can be stored with ketch config set, and ketch config exposes which backends are active. KETCH_SEARCH_ORDER can override the configured search order for an individual run. Documentation sites can be indexed with ketch docs index and then queried offline.

An external PDF-to-Markdown command is supported through configuration. Its command must include one {input} placeholder, and its output is limited to 10 MiB.

Tools and capabilities

  • Search the web with keyless or credentialed providers.
  • Search public open-source code by query and language.
  • Query web or indexed library documentation.
  • Scrape pages and convert supported PDFs to Markdown.
  • Crawl content and extract HTML supplied through a pipe.
  • Return JSON suitable for agent workflows.
  • Federate search results and deduplicate them by URL.

Limitations and notes

Keyless search depends on the available hosted providers, while provider-specific limits and behavior vary by backend. Documentation lookup follows search ranking, so the first readable result may not be the official documentation; the --library option helps identify the intended documentation set.

The built-in PDF parser handles text PDFs. Scanned or image-only PDFs require OCR and produce a precondition error unless an external converter is configured. PDF output is always text-based Markdown; raw binary output and element selection are rejected for PDFs. Browser PDF viewing is not used when --force-browser is enabled.

The CLI is intended to avoid provider-specific glue in agent workflows, but credentials are only needed for providers that require them; web search and several documentation paths work without an API key.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Ketch CLI

ketch-cli is an MCP server that connects agents to web search, public OSS code search, library documentation, scraping, crawling, and extraction workflows. Its main tools correspond to the search, code, docs, scrape, crawl, and extract capabilities, with JSON output and configurable provider backends.

Install ketch-cli with the macOS/Linux install script, Homebrew, npm, Go, or a prebuilt binary. The available installation methods cover Linux, macOS, and Windows builds on amd64 and arm64, and the install script verifies downloaded files against release checksums.

No, ketch-cli can search the web without an API key through its default keyless provider chain. You can configure credentials for providers such as Brave, Tavily, TinyFish, SerpBase, or Serply, or use your own SearXNG or Degoog instance.

Run the code search capability with a query and optional language or result limit, such as `ketch code "http.NewRequestWithContext" --lang go --limit 2`. Results identify matching repositories, file paths, line locations, source snippets, and GitHub URLs.

Yes, ketch-cli extracts text from PDFs detected by their response type or file signature and returns Markdown. Scanned or image-only PDFs require OCR or a configured external converter, and raw binary output is not supported for PDF scraping.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewKetch CLI AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/ketch-cli?style=directory)](https://allmcps.com/mcp/ketch-cli)
HTML Embed
<a href="https://allmcps.com/mcp/ketch-cli"><img src="https://allmcps.com/api/badge/ketch-cli?style=directory" alt="Ketch CLI on AllMCPs" /></a>