1broseidon/ketch
A Go CLI and stdio MCP frontend for web, code, and docs retrieval
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
ketch is a Go retrieval and extraction frontend, not a general-purpose RAG database. main.go and cmd/ are the CLI entrypoint and command area, with Cobra and pflag in the dependency set. Search, code lookup, and crawling have separate module directories. The HTML path prefers content landmarks and prose structure, falls back to readability, and converts the selected material to Markdown; goquery, Cascadia, go-readability, and html-to-markdown are in the Go manifest alongside Rod for browser automation.
CLI invocations do not depend on a resident service. The same binary can run as a stdio MCP server using the Go MCP SDK, while the ketch-pi package wraps CLI JSON commands as tools for pi. Stateless execution does not mean diskless operation: effective configuration, a bbolt page cache, saved bookmarks, and an offline docs index support reuse across invocations. Bookmarks retain source metadata rather than full page bodies.
Key Capabilities & Differentiators
Web search normalizes configured and keyless providers behind one interface. auto prefers configured self-hosted endpoints and keyed providers before falling back to keyless options; --multi queries usable backends concurrently and fuses their rankings with Reciprocal Rank Fusion. Public code search supports Grep, Sourcegraph, and authenticated GitHub Code Search. docs checks the local index first on its default backend and otherwise extracts source passages from live documentation; Context7 is an explicit opt-in with an anonymous quota.
scrape accepts URLs, JSON arrays, files, or stdin, while crawl traverses by breadth-first search or sitemap and supports background status tracking. Suspected JS-shell pages can be fetched again with headless Chrome. For HTML, clean prunes more peripheral content than complete; extract processes piped HTML without fetching or caching. Text-based PDFs use a pure-Go parser by default. Image-only PDFs need OCR outside that built-in path, and a configured external converter is authoritative rather than a best-effort fallback.
Trade-offs & Limitations
Compared with curl | pandoc, ketch adds discovery, provider failover, site traversal, caching, and structured output. Compared with direct provider SDKs, it offers a common interface but should not be assumed to expose every native provider control. Keyless means no initial credential setup, not unlimited capacity or offline operation. Upstream ranking, quotas, and availability still shape live results; the v0.22.0 docs path reads the search hits it selects rather than guaranteeing coverage of an entire site.
Treat the 72-hour default page-cache TTL as a reuse policy, not a retention guarantee. A deeper crawl may refetch a cached page whose link metadata is missing; failed backfill can still return the cached content with an incomplete-link diagnostic. Bookmarks outlive cache expiry and clearing, but do not preserve bodies. Only HTTP(S) URLs are fetched after rewriting, and reachable private HTTP(S) endpoints are not blocked, so use egress restrictions when exposing tools to untrusted callers. The MIT license covers the software, not upstream service terms or reuse rights for fetched material.
Hardware & Deployment Guide
Install a release binary via Homebrew, the ketch-cli npm package, or GitHub Releases, or build with go install; the supplied module declares Go 1.26.11. The installer covers macOS and Linux on x86-64 and ARM64 and checks the binary against the release checksum list. For agent integration, run the CLI directly or launch ketch mcp serve from the client. Configuration lives at ~/.config/ketch/config.json, flags take precedence, and ketch config exposes effective settings and available backends. ketch doctor checks backend, browser, cache, and tag health.
Start with a CPU-only runner and size for fetch concurrency and document size; browser rendering and external PDF conversion add separate resource costs. No local model runtime is required. Configure Chrome for rendering, set provider credentials or a SearXNG/Degoog endpoint as needed, and index libraries in advance for offline docs lookup. v0.21.0 introduced keyless live extraction from docs; v0.21.1 made unverifiable requested versions fail instead of drifting to unversioned content. v0.22.0 made unnamed-library lookups follow search order: the first readable document, then up to two more from the same site and release.
auto returns the first successful backend; --multi runs usable providers concurrently and applies Reciprocal Rank Fusion.--json, documented exit codes, and stdio MCP expose retrieval without a separately deployed API.cache clear; a saved URL does not imply that its page body is still cached.Agent and terminal workflows that need to discover public sources, extract readable material, and optionally look up pre-indexed library docs offline without operating a network API.
You need a shared vector store, durable full-text retention, or a hosted multi-tenant retrieval service with enforced network isolation.
Quick Start & Installation
# macOS / Linux, any of x86_64 or arm64 curl -fsSL https://ketch.run/install | sh # Homebrew brew install ketch # npm npm install -g ketch-cli # go install go install github.com/1broseidon/ketch@latest # Or download a prebuilt binary (linux/darwin/windows, amd64/arm64) # from https://github.com/1broseidon/ketch/releases
Comparison vs. Top RAG, Data & Memory Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| ketch ★ | 774 | +13 | Go | MIT | A Go CLI and stdio MCP frontend for web, code, and docs retrieval |
| firecrawl | 216.7k | +4.8k | TypeScript | AGPL-3.0 | Local and hosted web ingestion that turns sites into RAG-ready Markdown |
| milvus | 46.8k | +63 | Go | Apache-2.0 | Distributed vector database for filtered and hybrid retrieval at scale |
| markitdown | 199.7k | +950 | Python | MIT | Python library and CLI that turn mixed-format documents into Markdown for RAG in |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/1broseidon/ketch.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about ketch
Should an agent integrate through the CLI or MCP?
--json output and exit codes for control flow. Use ketch mcp serve when your client already supports stdio MCP and you want search, code, docs, scrape, crawl, and tag exposed as tools. The MCP entrypoint is not a network API.What hardware does ketch need?
Can we use ketch commercially and keep retrieval local?
When is ketch preferable to a script, a provider SDK, or a RAG store?
curl | pandoc pipeline when you need discovery, site crawling, JavaScript fallback, or a common JSON interface across providers. A direct provider integration is simpler when you use only one backend and need its native controls. If you need shared, durable semantic retrieval across a corpus, evaluate a dedicated RAG data store instead.Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy