$ open tools/codearia-sieve
MCP server· Development· AutomationEditor’s pick
codearia-sieve
An open-source parser that prepares a page for a judge rather than a reader: dates as dates, numbers with units, chunks sized to a decision model's window, and the token bill before and after. MCP server and library, MIT, no model and no key.
Checked by us· Sep 22, 2026
On 21 September 2026 we ran 56 random pages in nine languages: the median page shrank from 53 718 to 1 106 tokens, the mean saving was 91.3 %, 3.5 s at the 90th percentile. The output then went to Jev: 11 of 11 extracted facts verified automatically at a confidence of 0.86 to 1.0, 6 of 6 page types classified correctly. The same 50 pages as raw HTML would cost about $8.60 in Sonnet and about $43 in Opus.
In numbers
What it is
An agent that needs a web page fetches the whole thing: navigation, cookie banner, footer, ad slots and a megabyte of framework markup. Then a model paid per token digs through the pile for one paragraph. codearia-sieve does the digging before the model sees anything and returns the page as state rather than prose: "Published September 15, 2026" becomes "2026-09-15", and every chunk knows its size in tokens and the #anchor where an answer can be checked.
The difference from "page to markdown" tools is who the output is for. They prepare input for a reader; this one prepares input for a judge: cheap decision models like Jev, which do not write but classify and score. Such models cannot count, read dates as strings and lose accuracy as irrelevant material fills the context, so all the preparation is done by ordinary code, with no model and no API key.
How it works
- 01stateDates arrive as dates,
"$42 per billion tokens"as{ value: 42, unit: "USD_per_billion" }, and the text is cut into chunks with a token size and an anchor on the page. - 02fetch → assembleno modelEight steps of ordinary code: the same HTML gives the same JSON, and 69 tests run offline.
- 03warningsExpected failures do not throw, they come back as named warnings:
robots-disallowed,blocked,http-error,paywall,empty-without-js,thin-content,block-split,facts-capped. - 04npx -y codearia-sieveMCPOne line installs the MCP server in Claude Code or Cursor with two tools,
sieve_pageandsieve_chunk. - 05npm i codearia-sievelibraryThe same parser comes into your own code as a library.
Know before installing
- Front pages and listings give you headlines and
thin-contentonly. - Articles rendered by JavaScript come back as
empty-without-js. - A pricing grid does not know which plan column a number sits under, and the parser does not guess. All of these limits are written in the README.
$ ls articles/ --same-topic
Also read
$ ls tools/ --like=codearia-sieve



Comments