Imperium RAG-Diet — Web & Document Context Distiller (85-97% Token Savings)

dev.agentdietPublished by agentdiet.devOfficial publisherv7.0.17Updated Nov 4, 2026

Strips 85-97% of HTML/DOM boilerplate into clean Markdown, skeletons, or BM25-ranked RAG chunks.

The publisher's own server: AgentDiet AI Token Diet & Context Window Distiller

VerifiedStreamable HTTPWeb executableWeb Search & ScrapingKnowledge & MemoryData & Analytics

Overview

AI-generated overview

Remote MCP server that fetches public web pages and distills them into compact Markdown, outlines, or structured data to cut token use.

What you can do
  • Fetch a public web page or raw HTML and distill its main prose into clean Markdown, stripping most boilerplate
  • Preview a page's heading outline and per-section token counts before fetching the body
  • Extract structured data such as JSON-LD, OpenGraph metadata, HTML tables as JSON rows, code blocks, headings and links
  • Check an agent's account ledger: free trial calls left, prepaid balance, cumulative spend, call count and tokens saved
When to use it
Useful when an assistant needs to read long articles, documentation or pricing and API pages without flooding its context, and when you want to preview a page's size and structure before pulling the full text.
Requirements
A remote streamable HTTP endpoint; no local package, environment variables or headers are declared. The page-fetching tools need network access to the target public HTTP(S) URLs. Paid use implies an account with a prepaid balance topped up by Stripe or USDC.
Before you install
The server is metered: only 5 free trial calls, after which tool executions are paid from a prepaid USD balance, so check the wallet status before batch runs. Fetched page content is sent to a third-party service. The README describes a different service (an endpoint assurance observatory) than the listed tools, so verify what the endpoint actually exposes before relying on it.

Installation

In SourceWeft

  1. Open Imperium RAG-Diet — Web & Document Context Distiller (85-97% Token Savings) in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/dev.agentdiet%2Frag-diet/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "imperium-rag-diet-web-document-context-d": {
      "type": "http",
      "url": "https://rag-diet.agentdiet.dev/mcp"
    }
  }
}

README

Assay — A2A & MCP Provider Assurance Observatory

[Assay Badge]

Live Observatory: https://assay-207908449630.us-central1.run.app

Assay continuously probes remote MCP, A2A, and x402 endpoints to verify liveness, pin canonical SHA-256 tools/list schema hashes (detecting silent MCP Rug Pulls), and scan for prompt-injection tool poisoning before your agent pays or executes a tool.

MCP Endpoint

  • Streamable HTTP MCP: https://assay-207908449630.us-central1.run.app/mcp
  • Pre-Flight REST API: POST https://assay-207908449630.us-central1.run.app/v1/preflight
  • Live Leaderboard: GET https://assay-207908449630.us-central1.run.app/v1/leaderboard

Source: README.md at commit fd42696

Tools

4

distill_webpage

Distill webpage

Fetch a public HTTP(S) web page (or accept raw HTML) and distill its main prose into clean Markdown, stripping 85-97% of HTML/JS/CSS boilerplate. WHEN TO USE: Call this tool to read full or query-filtered article and documentation text; call recon_webpage_skeleton first to preview headings and token counts on unfamiliar pages, or extract_structured_data when you need JSON-LD, HTML tables, or code blocks. WHEN NOT TO USE: Do not use for binary PDFs, images, or login-walled pages. PARAMETER INTERACTIONS: Provide either url or html (when html is supplied, url is not fetched and only labels the cache key). When mode='markdown' (default), query and max_tokens are ignored; set mode='budget' to rank sections by query (BM25) and cap output at max_tokens. Omit agent_id and tx_hash during your 5 free calls. Read-only and idempotent; results are cached for 1 hour (<5ms cache hit). $0.001 per call ($0.0005 cached). Pricing: the first 5 calls per agent_id are free and failed calls are never charged. After 5 calls, the tool returns a payment-required quote (not a fatal error) with a $2 Stripe top-up link and Base/Solana USDC addresses; complete payment, then retry with your agd_pass_ key in agent_id or pass tx_hash. Example: distill_webpage(url='https://docs.stripe.com/api')

Parametersurlrequiredhtmlmodequerytx_hashagent_idmax_tokens

recon_webpage_skeleton

Recon webpage skeleton

Extract an ultra-compact structural outline (under ~200 tokens) of a web page listing its H1-H4 headings and exact token count per section without returning body prose. WHEN TO USE: Call this tool first on long or unfamiliar pages to inspect structure and token cost before calling distill_webpage (with mode='budget' and a focused query). WHEN NOT TO USE: Do not use when you already need full Markdown prose (use distill_webpage) or structured tables and JSON-LD (use extract_structured_data). PARAMETER INTERACTIONS: Provide either url or html (when html is supplied, url is not fetched and only labels the cache key). Omit agent_id and tx_hash during your 5 free calls. Read-only and idempotent; results are cached for 1 hour (<5ms cache hit). $0.0002 per call. Pricing: the first 5 calls per agent_id are free and failed calls are never charged. After 5 calls, the tool returns a payment-required quote (not a fatal error) with a $2 Stripe top-up link and Base/Solana USDC addresses; complete payment, then retry with your agd_pass_ key in agent_id or pass tx_hash. Example: recon_webpage_skeleton(url='https://docs.stripe.com/api')

Parametersurlrequiredhtmltx_hashagent_id

extract_structured_data

Extract structured data

Extract machine-readable structured data from a web page: Schema.org JSON-LD objects, OpenGraph metadata, HTML tables parsed as JSON row arrays, fenced code blocks, section headings, and links. WHEN TO USE: Call this tool for pricing tables, API specifications, product metadata, or code snippets; use distill_webpage for narrative Markdown or recon_webpage_skeleton for a lightweight heading outline. WHEN NOT TO USE: Do not use for narrative prose extraction or binary files. PARAMETER INTERACTIONS: Provide either url or html (when html is supplied, url is not fetched and only labels the cache key). Omit agent_id and tx_hash during your 5 free calls. Read-only and idempotent; results are cached for 1 hour (<5ms cache hit). $0.001 per call ($0.0005 cached). Pricing: the first 5 calls per agent_id are free and failed calls are never charged. After 5 calls, the tool returns a payment-required quote (not a fatal error) with a $2 Stripe top-up link and Base/Solana USDC addresses; complete payment, then retry with your agd_pass_ key in agent_id or pass tx_hash. Example: extract_structured_data(url='https://docs.stripe.com/api')

Parametersurlrequiredhtmltx_hashagent_id

get_agent_wallet_status

Get agent wallet status

Inspect an agent's account ledger: remaining free trial calls (out of 5), prepaid USD balance, cumulative spend, total API calls, and total LLM tokens saved. WHEN TO USE: Call before a batch of paid tool executions or after completing a Stripe or USDC top-up to confirm your balance. WHEN NOT TO USE: Do not use to process web content, execute marketplace tools, or submit payments; use the other tools on this server for execution. PARAMETER INTERACTIONS: Omit agent_id to inspect the default trial account derived from your client IP, or pass your explicit agent_id or agd_pass_ session key to check a specific funded wallet. Free and read-only: never charges a fee or consumes a free trial call. Example: get_agent_wallet_status(agent_id='example')

Parametersagent_id

Version history

2
  1. v7.0.17LatestOct 21, 2026
  2. v7.0.16Oct 21, 2026

Score

100% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

Other Agentdiet integrations

AgentDiet AI Token Diet & Context Window Distiller

dev.agentdietOfficial publisher

Remote MCP server that fetches web pages and distills them into compact Markdown or structured JSON to cut token use, with a prepaid wallet for paid calls.

Streamable HTTPWeb executable
Web Search & Scraping4 toolsNov 4, 2026

Imperium MCP Security — Prompt-Injection, Jailbreak & Tool Poisoning Firewall

dev.agentdietOfficial publisher

Remote MCP firewall that scans untrusted text for prompt injection and reports an agent's prepaid call balance.

Streamable HTTPWeb executable
Security & Monitoring2 toolsNov 4, 2026

Imperium MCP Gateway — Universal 490+ Tool Discovery, Safe-Proxy & Router

dev.agentdietOfficial publisher

Remote MCP gateway that lets an assistant search an index of 490+ MCP and x402 tools, then run them or bundled workflows for a per-call fee.

Streamable HTTPWeb executable
Web Search & Scraping4 toolsNov 4, 2026

Imperium Workflow Studio — Multi-Agent DAG & Pipeline Executor

dev.agentdietOfficial publisher

Remote MCP server that lets an assistant search a paid tool marketplace, run single tools or 4-tool bundles, and check its prepaid agent wallet balance.

Streamable HTTPWeb executable
Productivity & Workflow4 toolsOct 26, 2026

Imperium Pre-Flight Readiness Auditor — A2A, MCP & x402 Validator

dev.agentdietOfficial publisher

Remote MCP server that audits remote agent and MCP endpoints for A2A, x402, JSON-RPC and schema readiness, plus a wallet/balance check.

Streamable HTTPWeb executable
Developer Tools2 toolsNov 4, 2026