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.

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.

  • 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. Seven zero-dependency, MCP-native tools that form one loop:

๐Ÿ›ฐ๏ธ

agent-hq

coordinate โ€” shared memory, a kanban agents claim work from, a registry, a cost ledger

๐Ÿ”Ž

lens

read code โ€” token-budgeted retrieval โ€” search, outlines, surgical reads

โš’

anvil

run safely โ€” a throwaway Docker sandbox: network off, capped, timed

๐Ÿง 

cortex

remember โ€” an Obsidian-compatible second brain, wikilinked

๐Ÿงญ

scout

read the web โ€” a URL becomes clean, cached, searchable markdown

๐ŸŽฏ

recall

recall it all โ€” one query across brain, team, reading and code

๐Ÿ‘

iris

see โ€” look at what you built, before you claim it works

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

MIT licensed.

A
license - permissive license
-
quality - not tested
B
maintenance

Maintenance

โ€“Maintainers
โ€“Response time
โ€“Release cycle
โ€“Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tools-for-agents/scout'

If you have feedback or need assistance with the MCP directory API, please join our Discord server