r/ClaudeAI • u/StorageThese9556 • Oct 04 '26
Built with Claude Build an MCP for any website, so your agent stops re-reading the page every time
When an agent drives a website, it takes a page snapshot (up to ~18,000 characters), finds the thing, clicks, and snapshots again. For a site you use every day it re-reads the whole page for every question.
So in Persephone (my dev notepad with a built-in browser that Claude drives over MCP) I added site extensions. Claude studies a site once and writes a small script that turns the page into a model: just the data and actions that matter, like tickets, read(id), open(id). From then on it calls the model instead of parsing the page, and gets a few hundred characters back instead of a full snapshot.
Demo: https://andriy-viyatyk.github.io/persephone/site-extensions/
Ask once: "build a site extension for this page". Claude looks at the page structure, not your content.
You stay in control: it runs only on the hosts it lists, after you click Trust, and never in Incognito or Tor.
Learned once: it stays on disk, so every new session can use it.
This post is an example. Claude drafted it through my Reddit extension: it read my earlier posts through the model to match the tone, then called draftPost, which only fills in the composer. I clicked Post myself.
A site you own doesn't even need an extension: it can publish its model with ai-vision. My project site does.
Free and MIT: https://github.com/andriy-viyatyk/persephone
0
Oct 05 '26 edited Oct 05 '26
[removed] — view removed comment
1
u/StorageThese9556 Oct 05 '26
It works like an RPA bot that Persephone injects into the page. If the site changes, a call fails with an error, and the agent falls back to normal snapshots. You ask Claude to fix the extension and it updates the script.
1
u/Easy-Purple-1659 Oct 06 '26
Turning a page into a model of only the parts that matter is the same move that makes ad libraries usable for an agent. adextract (mine, free to try with 50 credits) does it across Meta, Google, TikTok and LinkedIn: the agent asks by advertiser or keyword and gets structured rows back instead of a rendered page to read. The risk I would watch in your version is drift. A script learned against a page that later changes is worse than a fresh snapshot, because it can fail with confidence. Do you version the extension so a stale one is visible, or just surface the error and ask Claude to rebuild it?