Skip to main content
Glama

๐Ÿงญ scout

ci

The agent's web reader.

Raw HTML is a terrible thing to feed a model โ€” a 380 KB Wikipedia page is ~95k tokens of markup for a few KB of prose. scout fetches a URL and gives back clean, readable markdown (headings, links, code, lists โ€” the substance, none of the chrome), typically ~90% smaller than the HTML. Every page is cached, so re-reading is free and your whole reading history is searchable.

Part of tools-for-agents. Zero dependencies โ€” Node's built-in fetch + a regex "readability-lite" extractor + node:sqlite (FTS5). Pairs naturally with cortex: scout clips the web, cortex files it into your second brain.


Why

Without scout

With scout

Feed raw HTML to the model โ†’ ~95k tokens of <div>s

scout_fetch โ†’ ~5k tokens of clean prose

Re-fetch the same page every time you need it

Cached โ€” re-reads are free (--fresh to bust)

"What did that article say about X?" โ†’ fetch again, re-read

scout_search "X" across everything you've read

No memory of what you've researched

A searchable reading history on disk

Related MCP server: superFetch MCP Server

CLI

scout fetch https://en.wikipedia.org/wiki/Zettelkasten     # โ†’ clean markdown (cached)
scout fetch https://example.com/post --tokens 3000         # cap the returned size
scout fetch https://api.example.com/data.json --raw        # skip extraction
scout search "luhmann note linking" -k 5                   # search your reading history
scout links https://news.ycombinator.com --limit 30        # outbound links to crawl next
scout list | scout forget https://old.example.com | scout stats
scout serve                                                # โ†’ reading-room web view :7950

Cache location: $SCOUT_DB (default ./.scout/cache.db).

Reading room (scout serve)

scout serve โ€” the reading room: a shelf of cached pages and a clean serif reader

scout fetch https://en.wikipedia.org/wiki/Zettelkasten     # read a few pagesโ€ฆ
scout serve                                                # โ†’ http://localhost:7950  (--port to change)

A calm, zero-dependency web view of everything scout has read โ€” the same cache the agent recalls from:

  • Read a page from here โ€” paste a url into the reading room and scout fetches it, strips it to clean markdown, caches it, and opens it. Until now the web view could only ever show what the CLI or an agent had already fetched โ€” it could read your library but never add to it. It writes to the same read-through cache the agent uses, so anything you read here is instantly searchable and instantly recallable by recall. Fetching is a POST (it reaches the network and writes), and only http(s) urls are accepted.

  • The shelf โ€” every cached page as a card (title, source, when it was read, ~token size), newest first.

  • Filter by host โ€” chips above the shelf (each with a count) narrow the list to one site in a click โ€” read everything you've kept from en.wikipedia.org, or just your own docs โ€” and clear back to all.

  • Recent reads โ€” the articles you've opened surface as clickable chips above the shelf (remembered in the browser only, most-recent first); jump back to one in a click, or clear โœ• to forget them.

  • Reading overview โ€” click the shelf stats for the whole history in the unit that actually matters: tokens. Reading those pages as raw HTML would have cost ~10.1k tokens; scout kept ~1.5k โ€” so the headline is ~8.7k tokens saved (86% lighter), which is the entire pitch, finally shown. Underneath: where you read (top hosts, click one to narrow the shelf), reading over time (pages per day), and your heaviest reads โ€” ranked by what the raw HTML would have cost (~3.9k โ†’ ~550), so the pages scout saved you the most on are named. Agents get the same digest from the scout_overview MCP tool.

  • Re-read it โ€” and find out if it changed โ€” a cache you can't refresh is a fossil: fresh has always existed on fetchUrl and the reading room never set it, so a page you read a month ago was the page you'd read forever. โ†ป re-read pulls it again, and answers the question that actually matters โ€” not โ€œhere it is againโ€ but did it change: โ€œUnchanged since you read it โ€” what you took from it still holdsโ€, or โ€œThis page changed โ€” 3 lines added, 1 removed. What you took from it may be out of date.โ€ Reformatting isn't a change; only the words are. And โœ• forget drops a page from the library (arms first, then fires), gone from the shelf and from search.

  • Where this page points โ€” every article now shows its outbound links, read straight from the clean markdown scout kept (no network trip). Each one says whether you've already read it โ€” those open from your library โ€” and the ones you haven't are one click from being read: scout fetches, strips and opens them, and the shelf grows. Following the web from inside your own reading room, an edge at a time.

  • Search your whole reading history (FTS5 + bm25) with matched terms highlighted.

  • The reader โ€” clean, comfortable long-form: the extracted markdown rendered with real typographic hierarchy (including images), in a paper or night theme.

  • Keep it in cortex โ€” hit ๐Ÿง  โ†’ cortex in the reader and the article becomes a note in your second brain: the clean markdown, cited to the original page (an article's source is the web, not scout's copy of it) with a link back to the cached read alongside. This is the scout fetch | cortex capture loop the toolkit was designed around โ€” read the web, keep what matters โ€” finally one click. scout never writes: your browser POSTs to cortex's own /api/capture (point it elsewhere with SCOUT_CORTEX_URL).

  • Copy markdown โ€” one โง‰ copy markdown button in the reader lifts the whole article's clean markdown to your clipboard โ€” the same tokens an agent would get from scout_fetch, ready to paste into a note, a prompt, or cortex.

  • More from this site โ€” the foot of every article lists the other pages you've read from the same host, newest first, each a click away โ€” so following a source you already trust is one hop, not a re-search.

  • Table of contents โ€” any article with a couple of headings gets a โ˜ฐ contents button; open it for an outline of the page, click a heading to jump to that section, and the current section stays highlighted as you scroll.

  • Reading progress โ€” a slim bar across the top of the reader fills as you scroll, so you always know how far through a long piece you are.

  • Keyboard-accessible โ€” every control has a visible focus ring, the article cards open with Tab + Enter (not just the mouse), and icon controls carry aria-labels.

  • Read-only and cache-only โ€” the web view never touches the network; /api/page returns 404 for anything not already read.

Try the demo without a network fetch: node scripts/seed.js then scout serve.

MCP server (for agents)

{
  "mcpServers": {
    "scout": { "command": "node", "args": ["/abs/path/to/scout/mcp/mcp-server.js"],
               "env": { "SCOUT_DB": "/abs/path/to/.scout/cache.db" } }
  }
}

Tools

Tool

Use it toโ€ฆ

scout_fetch

Read a web page as clean, token-budgeted markdown (cached; fresh to re-fetch).

scout_search

Search every page you've already read โ€” ranked snippets, no re-fetch.

scout_links

Extract a page's outbound links (absolute URLs + text) to decide where to go next โ€” and say so, loudly, when the page was a 404/403 error page, a binary file, read only up to the cap, or a list limit cut short.

scout_list

Your recent reading history.

scout_reread

Has a page changed since you read it? Re-fetch and diff against your cached copy.

scout_forget

Drop a page from the cache.

scout_stats

Pages cached, bytes stored, last fetch.

The research loop (with cortex)

  1. scout_fetch the page โ†’ clean markdown.

  2. scout_search your history to connect it to what you've already read.

  3. cortex_capture the useful parts into your second brain, then cortex_write distilled, [[linked]] notes.

  4. Next time, cortex_search / scout_search recall it instead of fetching the web again.

How it works

  • Fetch uses Node's global fetch (follows redirects, 20 s timeout, a plain user-agent). The body is streamed with a size cap (SCOUT_MAX_BYTES, default 5 MB) rather than buffered whole โ€” a runaway or hostile page can't spike memory or bloat the cache, and if a page is bigger than the cap scout reads the start and says so up front.

  • Extraction is regex-based readability-lite: strip <script>/<style>/<nav>/<footer>/โ€ฆ, pick the densest <article>/<main>/<body> region, convert headings, links (resolved to absolute), content images (<img>/<figure> โ†’ markdown, tracking pixels dropped), code, lists, bold/italic, and decode HTML entities. Not a full DOM parse โ€” but it reliably turns an article into readable prose at a fraction of the tokens.

  • Cache is a node:sqlite table keyed by URL; the same URL returns instantly unless fresh. An FTS5 mirror makes the whole history searchable by bm25, filled to a token budget (โ‰ˆ4 chars/token) โ€” the same discipline as lens and cortex.

  • An error page is not a page. A 4xx/5xx still has a body โ€” usually a friendly "Oops, try these instead" โ€” and it converts to tidy markdown like anything else. Both network surfaces refuse to let it pass for the real thing: scout_fetch leads its markdown with the status, and scout_links leads its result with an error saying the links below are the error page's navigation, not the page's (and scout links exits 1, where scout fetch exits 0 โ€” fetch's job, handing back a labelled body, was still done; "where does this page point" was not).

  • A cut list is not a complete one. A links result also says the shape of its own answer, the same way scout_list does: count is how many outbound links the page has, shown is how many came back, and truncated means the list you are holding was cut โ€” by limit (100 by default), or because the page itself was read only up to the fetch cap. Both say which, in words, in note. So 0 links, 100 links and 100 of 500 links are three different answers, and none of them is silent about what it is not. What scout cannot tell you is what the server never said: a soft 404 โ€” HTTP 200 OK with a "sorry, not found" body โ€” is a page as far as any HTTP client is concerned, here and everywhere else.

  • Non-HTML text responses (JSON, plain text) are stored verbatim. A binary resource (image, PDF, archive, font โ€” by content-type, or a body that decoded to mostly replacement bytes) is not: decoding it as text is mojibake, so scout returns a short note saying what it is instead of handing you โ€” and its cache and search index โ€” garbage.

The agent toolkit

scout is the read the web leg of tools-for-agents โ€” an operating system for agents. Nine zero-dependency, MCP-native tools that form one loop, with a self at its centre:

๐Ÿ›ฐ๏ธ

agent-hq

coordinate โ€” The company's work, made visible.

๐Ÿ”Ž

lens

read code โ€” Read code without reading files.

โš’

anvil

run safely โ€” Run it before you claim it works.

๐Ÿ”

keep

hold secrets โ€” Use a secret without holding it.

๐Ÿง 

cortex

remember โ€” A second brain that outlives the context window.

๐Ÿงญ

scout

read the web โ€” The web, ~90% lighter.

๐Ÿ”ป

prism

read data โ€” Read data without reading the blob.

โ—Ž

recall

recall it all โ€” One query. Every store you have.

๐Ÿ‘

iris

see โ€” Look at what you built.

๐Ÿ‘ป

ghost

the self at the centre โ€” A self that persists across sessions. Not a tool: it is what the agent is while it calls these.

Reading this as an agent? /llms.txt is the map, and /tools.json hands you all 79 MCP tools โ€” every name, every description, every install command โ€” in one fetch, without cloning anything.

MIT licensed.

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    Not graded
    maintenance
    An MCP server for web content extraction that converts HTML pages into clean, LLM-optimized Markdown using Mozilla's Readability. It supports batch processing, intelligent multi-page crawling, and configurable caching while respecting robots.txt standards.
    33 npm
    -
  • A
    license
    A
    quality
    C
    maintenance
    An MCP server that fetches web pages and extracts clean, AI-friendly Markdown content using Mozilla Readability. It provides secure web access for LLMs with built-in SSRF protection and automated content cleaning for improved context retrieval and summarization.
    1
    42 npm
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    A self-hosted MCP server that reads web pages and converts them to Markdown, with built-in web search and anti-crawl fallback using Playwright.
    1
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    MCP server for mdbrowse that enables agents to fetch, search, and browse web pages as clean, token-efficient markdown with provenance, caching, and structured navigation.
    16
    MIT