Made by Desearch (desearch.ai).
This article summarizer is for marketers, founders and writers who need the gist of a long article for a post, a newsletter or a team update. Paste a link into an MCP-compatible assistant with one saved prompt, and you get the main points in plain words plus each figure from the article with its sentence quoted. Your assistant works only from the text Desearch read from the page, so you can check the numbers before you publish. There is also a live demo that shows an extractive summary: key sentences quoted from the article, with no AI-written text.
The problem
You found a long article and need the key points and the exact numbers fast. Reading it closely takes time, and copying figures by hand is where mistakes slip in. Asking an assistant to summarize a link is quick, but you cannot see which text it read, so you cannot tell whether a number came from the article. You want a summary you can trace back to the page.
What the app does
- Takes one public article link.
- Reads the page as plain text with the Desearch
extracttool (format: "text",js: false). If the page comes back with no content, it tries once more. - Stops when the text is under 150 words, such as a login page, instead of guessing.
- With the saved prompt, gives the topic in one line and 5 main points in plain words, taken from that text only.
- With the script, prints the opening sentence plus the 4 sentences that share the most words with the rest of the article, quoted as written, with no rewriting.
- Lists the sentences that carry figures written as digits (amounts, percentages, counts). Bare years are skipped. The script keeps up to 8 of those sentences.
- Optionally finds other pages with the Desearch
ai-searchtool. The script shows up to 3 links from other sites. The saved prompt asks for up to 2. - In the live demo, paste a public link to get an "Extractive summary: key sentences quoted from the article" with up to 5 key sentences and up to 8 sentences that carry figures. Sentences are quoted as written, with no AI-written text and no related links.
How it works
- Read the page. Your assistant, or the script, calls the
extracttool on the hosted Desearch MCP server (https://mcp.desearch.ai/mcp) withformat: "text"andjs: false. - Check there is enough text. Under 150 words, the saved prompt says "Desearch could not read enough of this page to summarize it" and stops. The script says the page came back nearly empty and does not summarize it.
- Summarize from that text only. The saved prompt asks for 5 bullets and a "Numbers mentioned" list, with no facts, numbers or names that are not in the text. The script only picks sentences. It does not rewrite them.
- Find other coverage (optional).
ai-searchwithtools: ["web"]andresult_type: "ONLY_LINKS", using words from the link. The script then shows up to 3 links from other sites.
The live demo first checks that the link is a public http or https page. A server function then calls GET /web/extract with format=text and js=false. It retries once if no content comes back and keeps the API key on the server.
The code
The extract call, copied from articlesum/client.py:
def extract(self, url):
query = urllib.parse.urlencode({'url': url, 'format': 'text', 'js': 'false'})
req = urllib.request.Request('https://api.desearch.ai/web/extract?' + query,
headers={'Authorization': self.key, 'User-Agent': 'desearch-py-examples/article-summarizer-demo'})The key comes from the DESEARCH_API_KEY environment variable on the server, in articlesum/service.py:
client = self._client or Client(os.getenv('DESEARCH_API_KEY', '').strip())The result keeps only quoted sentences, in articlesum/service.py:
result.update(status='ok', label='Extractive summary: key sentences quoted from the article',
key_points=[hide_handles(s) for s in key_sentences(text, 5)],
numbers=[{'figures': row['figures'], 'sentence': hide_handles(row['sentence'])}
for row in numbers_mentioned(text)])The folder layout:
articlesum/client.py: the Desearch extract call.articlesum/service.py: input checks, the cache, limits and the JSON response.articlesum/summary.py: sentence functions copied from the script.articlesum/urlguard.py: checks that links resolve to public http or https pages.articlesum/guards.pyandarticlesum/state.py: limits, the daily cap and the cache, in memory locally or in shared state when hosted.api/summarize.py: the hosted handler for/api/summarize.app.py: a local server for the page and the API.public/: the summarizer page and a saved sample of a fictional article.tests/: offline tests and source parity checks.
The no-code saved prompt and the script are in the sibling folder article-summarizer-mcp.
Endpoints
GET /web/extractMCP tool extractMCP tool ai-search
Example output
Saved sample from a run on 2026-10-18 at 16:03 Asia/Tbilisi, with --related, stored in sample_output.md. This page shows that stored response.
Article: https://www.theguardian.com/technology/2026/oct/18/world-bank-artificial-intelligence-developing-economies
Text Desearch fetched: 616 words| Step | What came back |
|---|---|
| extract | 616 words of article text |
| Key points | 5 sentences quoted from the article |
| Numbers mentioned | 2 rows: 40%, and $120bn (£90bn) |
| ai-search (web) | 3 links from other sites |
Two of the quoted figures, exactly as the sample prints them:
- 40%: "Georgieva warned that over time 40% of jobs worldwide were likely to be either augmented or eliminated by AI, with the impact particularly acute for young people at the start of their careers."
- $120bn, £90bn: "Donohoe said the World Bank had mobilised $120bn (£90bn) of private capital in the past year using guarantees and other financial instruments, at a time when many countries, including the US and the UK, were cutting their aid budgets."
The saved prompt sample in sample_summary.md was written from those same 616 words. Its topic line:
The World Bank wants developing countries to build "small AI" that works on phones and in local languages.
That sample also quotes a figure the script does not pick up, because it is written as words: "almost a third of rural schools in sub-Saharan Africa lacked electricity and more than two-thirds did not have a consistent internet connection."
The script sample ends with this line:
Calls: 1 extract, 1 ai-search ($0.0040)The live demo shows a labelled saved sample of a fictional example.com article while live calls are paused.
Run it yourself
No code: connect the Desearch MCP server (https://mcp.desearch.ai/mcp) in an MCP-compatible assistant with your API key in the Authorization header, paste saved-prompt.md, and replace <link> with your article link.
Script: clone desearch-py-examples and open article-summarizer-mcp. Set up the environment:
python -m venv .venv && . .venv/bin/activate
pip install -r requirements.txtSave your key from console.desearch.ai in a key file:
printf '%s' 'YOUR_KEY' > ~/.desearch-api-key && chmod 600 ~/.desearch-api-keyThen summarize a link:
python article_summarizer.py <link> --related # also list other pages on the same storyUseful flags: --related (one extra ai-search call for other pages on the story), --bullets (key sentences to keep, default 5), --raw raw.json and --from-raw raw.json (save the responses, then rebuild the summary offline with no new calls), --key-file.
Live demo, locally: clone desearch-py-examples and open article-summarizer-demo. Then run:
python3 -m pip install -r requirements.txt
DEMO_STATE=memory DEMO_LIVE=0 python3 app.pyOpen http://127.0.0.1:8000. Live mode needs the server key in DESEARCH_API_KEY and DEMO_LIVE=1.
What it costs
The live demo makes one GET /web/extract call per new link, at $0.0005 measured 2026-10-26. It makes a second call only when no content came back. Repeat links are served from a 15-minute cache at no cost.
saved-prompt.md records the 2026-10-18 run: the extract call cost $0.0005 on the REST price, and the optional ai-search call cost $0.004. The script sample prints Calls: 1 extract, 1 ai-search ($0.0040). The printed amount is the ai-search cost_usd field. See pricing.
Try it
Open the live summarizer. Paste a public article link to get an extractive summary: key sentences quoted from the article, plus the sentences that carry figures. Each network gets 5 summaries per 10 minutes and 15 per day. Repeat links are served from a cache at no extra cost.
Ideas to extend it
- Run it on the articles you plan to share this week and paste the "Numbers mentioned" lists into your newsletter draft.
- Change the prompt to write the bullets for a specific reader, such as your sales team or investors.
- Save the raw responses with
--rawand rebuild summaries later with--from-raw, with no new calls. - Use the saved prompt when you want bullets in plain words, and the script when you want the sentences quoted as written.
