linkbrief-mcp
English | 한국어

Let Claude, Codex or any MCP agent read any link — web pages, PDFs, Office files and JavaScript-heavy pages — as clean Markdown, fetched from your own computer. About 95% fewer tokens than raw HTML.
Give your agent a link and ask; linkbrief brings back just the main content with its title, source, author and date, and the agent does the rest. Works in any language, including sites most fetchers get wrong: Asian sites, Naver Blog's iframe layout, Namuwiki, and legacy encodings like Shift_JIS, GBK and EUC-KR.
Example: the fetch_page call and its result are real linkbrief output; the summary was written by Claude from that result. (Source: French Wikipedia, "Kimchi", CC BY-SA.)
Why linkbrief
- ~95% fewer tokens. Most of a page's HTML is menus, ads, scripts and image URLs. linkbrief keeps the article. (measured)
- Read only the part you need. Ask a question with
find and get just the passages that mention it (76–88% less than the whole page), or look at the outline first and read one section, with a link to cite it.
- Built for developers. GitHub issues and PRs come with every comment and the changed files; Stack Overflow questions with their top answers; Hacker News threads in full; arXiv abstracts open the paper. Point it at a docs site and it reads the section for you (
fetch_site).
- Documents, not just pages. PDFs page by page, and Word, PowerPoint, Excel and Hangul (.hwpx) files from a link.
- Reads what other fetchers miss. Pages that render with JavaScript are retried in the Chrome or Edge you already have. PDFs come back as text, page by page. Requests come from your machine, so sites that block cloud fetchers still answer.
- Any language, any encoding. Tested on Wikipedia in six languages, plus news and docs sites in English, French, German, Japanese, Chinese, Thai and Vietnamese. Legacy charsets (Shift_JIS, EUC-JP, GBK, Big5, EUC-KR, TIS-620, windows-1258) decode correctly.
- Safe by default. Private and local network addresses are refused, bot checks are reported rather than bypassed, and the browser runs with a fresh profile every time.
- No API key. The agent you already use does the summarizing.
Quick start (Claude Code)
1. Install — one line. npx fetches the package from npm, so there is nothing else to install.
claude mcp add linkbrief -s user -- npx -y linkbrief-mcp
On Windows (PowerShell or Command Prompt), wrap npx in cmd /c for a reliable connection:
claude mcp add linkbrief -s user -- cmd /c npx -y linkbrief-mcp
2. Check the connection — reopen Claude Code and type /mcp. You should see linkbrief connected with two tools, fetch_page and fetch_pages. (From a terminal: claude mcp list.)
3. Just ask — no commands to learn. Paste a link and say what you want:
Summarize this in 5 bullet points: https://en.wikipedia.org/wiki/Large_language_model
Setup for Claude Desktop (one-click), Codex and Cursor is under Install.
How it works
linkbrief is a tool your agent uses. The agent decides what to read and when.
You: "Compare these two articles: <link 1> <link 2>"
│
▼
Agent (Claude, Codex, …) ── two links → calls fetch_pages
│ page was cut off → calls fetch_page to read the rest
▼
linkbrief (runs on your machine) ── fetches pages/PDFs, keeps only the main content as Markdown
│
▼
Agent reads it and answers
- One link →
fetch_page; several → fetch_pages. The agent picks.
- When a page is long, the result ends with a note and the agent continues reading on its own.
- The first time, your agent may ask permission to use the tool. Choose "always allow" to skip the prompt next time.
Token savings
We compared the raw HTML of real blog, news and wiki pages from several countries with what linkbrief returns (character counts, measured 2026-11-26).
|
Raw HTML |
linkbrief |
| Size |
~2.02M characters |
~92K characters |
| Saved |
|
~95% (92–99% per page) |
Tokens scale roughly with characters, so the token saving is about the same. Fewer tokens means usage limits last longer, answers come faster, and long conversations keep more context.
Where the savings come from:
| Method |
Effect |
| Main content only (Mozilla Readability) |
Drops menus, ads, comments, footers and scripts — most of the saving |
| No images or icons |
Image URLs alone can double a page's size |
| Link URLs removed (default) |
Keeps the link text only: 49–66% less on link-heavy pages. Keep them with include_links |
| Find passages |
find returns only the blocks that mention your words, with context: 76–88% less than the whole page on long documents |
| Outline first, then one section |
outline returns the headings with sizes; section returns just one part. 82–91% less than the whole page on long documents (below) |
| Paging |
Up to 20,000 characters per call; the agent asks for more with start_index only when needed |
| Per-page cap for many links |
fetch_pages returns up to 8,000 characters per page by default |
| 10-minute cache |
Reading the next part of a page does not download it again (the second call returns in milliseconds) |
Outline first, then one section, compared with reading the whole page (characters, measured 2026-11-27):
| Page |
Whole page |
Outline + one section |
Saved |
| English Wikipedia, "Large language model" |
101,576 |
8,172 + 5,021 |
87% |
| Namuwiki, "김치" |
46,131 |
2,733 + 5,355 |
82% |
| arXiv paper PDF (15 pages) |
39,790 |
1,638 + 1,916 |
91% |
Install
Requires Node.js 22.12 or later.
Claude Code
claude mcp add linkbrief -s user -- npx -y linkbrief-mcp
On Windows:
claude mcp add linkbrief -s user -- cmd /c npx -y linkbrief-mcp
Claude Desktop, one click — download linkbrief.mcpb from the latest release and double-click it (or drag it into Settings → Extensions). You can add an optional GitHub token there.
Claude Desktop, by config — add to claude_desktop_config.json (Settings → Developer → Edit Config):
{
"mcpServers": {
"linkbrief": { "command": "npx", "args": ["-y", "linkbrief-mcp"] }
}
}
Codex (OpenAI) — add to ~/.codex/config.toml (CLI, IDE extension and app):
[mcp_servers.linkbrief]
command = "npx"
args = ["-y", "linkbrief-mcp"]
If Windows cannot find npx, use command = "cmd" and args = ["/c", "npx", "-y", "linkbrief-mcp"]. With the Codex CLI you can also run codex mcp add linkbrief -- npx -y linkbrief-mcp.
Cursor and other MCP clients — register npx -y linkbrief-mcp as a stdio server.
From source
git clone https://github.com/KDDYYY/linkbrief-mcp.git
cd linkbrief-mcp
npm install
claude mcp add linkbrief -s user -- node "$(pwd)/server.mjs"
In Windows PowerShell, use claude mcp add linkbrief -s user -- node "$PWD\server.mjs" for the last line.
Check — /mcp in Claude Code or claude mcp list in a terminal should show linkbrief connected (✔ Connected). Restart your agent after changing its configuration.
Usage
Talk to your agent as usual and include the link. It calls linkbrief by itself.
Summarize
Summarize this in 5 bullet points: https://en.wikipedia.org/wiki/Large_language_model
Read another language, answer in yours
Summarize this Japanese news page in English: https://www3.nhk.or.jp/news/
PDFs — papers, reports and press releases work with just the link. See Reading PDFs.
List the paper's three main contributions and its results: https://arxiv.org/pdf/1706.03762
Code review and debugging
Summarize the discussion on this PR and list the changed files: https://github.com/owner/repo/pull/123
What is the accepted fix here, and why does it work? https://stackoverflow.com/questions/11227809
A whole docs section — fetch_site follows links under the start page's folder (up to 30 pages, robots.txt respected). If the site publishes an llms.txt index for language models (Stripe, Vercel, Anthropic and many docs sites do), it is used first.
Read the Python tutorial and give me a one-page cheat sheet: https://docs.python.org/3/tutorial/index.html
Office files — Word, PowerPoint, Excel and Hangul (.hwpx) links work like PDFs.
Summarize this deck slide by slide: https://example.org/files/q3-review.pptx
Pick the format
Summarize this in 3 lines, then put every number and date in a table: https://…
From this tutorial, list only the tools used and the steps: https://…
Several links at once — up to 10 per call (fetch_pages). If one fails, the others still come back.
Compare how these three articles cover the story, as a table: https://… https://… https://…
Cite sources — every result starts with site, author, date and URL, so you can ask for citations.
Summarize this and end with the source (site, author, date): https://…
Just the answer — for a question about a long page, the agent searches it with find and reads only the passages that mention your terms:
What does this article say about hallucination? https://en.wikipedia.org/wiki/Large_language_model
Only the part you need — the agent looks at the outline, then reads one section. Each section comes with a link you can cite (…/Large_language_model#History). You can also ask for it directly:
Show me the outline of this page first, then read only the section on training: https://en.wikipedia.org/wiki/Large_language_model
Long documents — up to 20,000 characters per call; the agent continues with start_index when it needs more.
Read this whole document and summarize each chapter: https://…
Keep link URLs — off by default to save tokens. Turn them on when you need them:
Summarize this page and keep the reference links (include_links on): https://…
Reading PDFs
1. Get the PDF's address. Right-click the PDF link or download button → Copy link address, or, if the PDF is open in your browser, copy the address bar.
2. Ask your agent with the address. linkbrief downloads the PDF and extracts its text page by page.
Example: the fetch_page result is real linkbrief output (cut before the lines with the authors' e-mail addresses); the summary was written by Claude from it.
| Situation |
What happens |
The address does not end in .pdf (download?id=…) |
Read as a PDF if the server sends one |
Page markers such as ## Page 3 |
Ask "which page says…?" or "summarize page 3 only" |
| Long PDFs |
Read 20,000 characters at a time; ask to "read to the end" and the agent continues |
The PDF, 15 pages line at the top |
Page count plus the title, author and date stored in the PDF |
| A PDF file on your computer |
linkbrief reads web addresses only. Attach the file to your agent directly |
| PDFs that need a login or a button click to download |
Cannot be fetched from the address alone. Download it and attach it |
| Scanned PDFs (images of text) |
No text to extract (PDF has no extractable text); OCR is not supported |
| PDFs over 30 MB |
Not read |
JavaScript-heavy pages
When a plain request comes back empty or blocked (HTTP 403, 429 or 503), linkbrief retries in the Chrome or Edge already installed on your machine, headless. No setup needed.
- No browser download: it uses your installed Chrome or Edge (through the optional
puppeteer-core package).
- A fresh profile every time, so your logins and cookies are never used.
- Every request the page makes goes through the same private-address check.
- Turn it off with
LINKBRIEF_BROWSER=off, or point at another browser with LINKBRIEF_BROWSER=<path to executable>.
- Bot checks such as Cloudflare are reported, never bypassed.
Troubleshooting