MCP Web Snapshot
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Web Snapshotsnapshot https://docs.python.org/3/tutorial/ with a 500 token budget and extract links"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Web Snapshot
Turn any web page into clean, readable markdown for LLM agents.
MCP Web Snapshot fetches a URL and returns the content an agent actually needs — main article text, headings, lists, code, and resolved links — with navigation, ads, scripts, and styles removed. Use it as an MCP tool or straight from the terminal. Output is capped by an explicit token budget so a single page cannot flood the context window.
Third tool in the TokenSaver family: TokenSaver MCP maps repositories, MCP Context Budget audits tool costs, and Web Snapshot reads the web.
Why
Agents read the web constantly — docs, changelogs, issues, articles. Raw HTML is mostly chrome: menus, cookie banners, scripts, tracking pixels. Feeding that to a model burns tokens and buries the useful text. Web Snapshot extracts the readable content, converts it to markdown, resolves relative links, and trims everything to your budget.
Related MCP server: agentfetch-mcp
Quick start
CLI, no install needed:
npx -y mcp-web-snapshot https://example.com --budget 500Result:
# Example Domain
Source: https://example.com/ | HTTP 200 | 559 bytes | ~38 tokens
This domain is for use in documentation examples without needing permission. Avoid use in operations.
[Learn more](https://iana.org/domains/example)Add --links to append the page links, --json for machine-readable output, --raw to keep the full page structure, or --same-origin to filter links to the same host.
MCP server
Add it to any MCP-compatible client:
{
"mcpServers": {
"websnapshot": {
"command": "npx",
"args": ["-y", "mcp-web-snapshot", "serve"]
}
}
}From a local checkout, point command at node and args at the built entry point:
{
"mcpServers": {
"websnapshot": {
"command": "node",
"args": ["/absolute/path/to/mcp-web-snapshot/dist/index.js", "serve"]
}
}
}Tools
Tool | What it returns |
| Clean markdown of a page: title, source metadata, readable content, optional links, token count, truncation flag. |
| Deduplicated absolute links with anchor text, optionally same-origin only. |
Both tools accept an optional timeoutMs. snapshot also accepts budget, readability, and links.
How it works
Fetch with a timeout, a size cap, and a descriptive user agent.
Validate the response: status, content type, and declared size.
Extract the main content with Mozilla Readability, falling back to the cleaned page body when there is no article.
Convert to markdown with Turndown, resolving relative links and images against the final URL.
Trim to the token budget, reporting truncation explicitly.
Token counts are estimated at four characters per token so the conversion stays fully offline and deterministic.
Design principles
Bounded: request timeouts, a 2 MB download cap, and a token budget on every response.
Predictable: same page, same output; nothing beyond the requested URL is fetched.
Safe by default: only
httpandhttpsare allowed; no cookies, no credentials, no JavaScript execution.Read-only: never writes anything anywhere.
Honest: truncation and size caps are reported in the output.
CLI reference
mcp-web-snapshot <url> [options]
mcp-web-snapshot snapshot <url> [options]
mcp-web-snapshot serveOption | Meaning |
| Approximate token budget (default 4000) |
| Request timeout (default 15000) |
| Maximum download size (default 2000000) |
| Append page links |
| With |
| Skip readability and keep the full page structure |
| Machine-readable output |
Exit codes: 0 success, 1 fetch or parse failure, 2 usage error.
Roadmap
Local response cache with TTL.
PDF and plain-text document handling.
robots.txtawareness and per-host rate limiting.Batch snapshots for reading lists.
Exact tokenizer mode for precise budgets.
Development
npm install
npm run typecheck
npm run build
npm testThe suite runs entirely against local HTTP fixtures: extraction, markdown conversion, link resolution, budgeting, timeouts, size caps, CLI behavior, and MCP round trips.
License
MIT — see LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Read any web page as clean Markdown for AI agents: fetch, search, metadata, links. SSRF-safe.
Web scraping for AI agents. Converts URLs to clean, LLM-ready Markdown with anti-bot bypass.
Clean Markdown and AI-readability scoring for any URL. Built for AI agents.
Fetch any URL and get clean Markdown. Web scraping for AI agents.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables LLMs to fetch and process web content by converting HTML into markdown for easier consumption. It supports chunked reading via pagination and provides configuration options for robots.txt compliance and proxy usage.1MIT
- AlicenseAqualityCmaintenanceEnables AI agents to fetch web pages with token estimation, caching, and routing to appropriate fetchers (Trafilatura, Jina, FireCrawl, pypdf) for clean Markdown output.43MIT
- AlicenseAqualityDmaintenanceEnables LLMs to fetch and extract web content as markdown with browser impersonation to bypass basic bot detection.1MIT
- AlicenseAqualityCmaintenanceEnables AI agents to read web pages reliably, returning clean markdown content, hyperlinks, and metadata without navigation or ad noise.36 npmMIT