AgentDiet AI Token Diet & Context Window Distiller

dev.agentdiet由 agentdiet.dev 发布官方发布者v7.0.17更新于 Nov 4, 2026

Strips 85-97% of HTML/DOM bloat into clean Markdown or JSON with cryptographic ROI proof.

已验证Streamable HTTP可网页运行网页搜索与抓取数据与分析

概览

AI 生成的概览

远程 MCP 服务器,抓取网页并提炼为精简 Markdown 或结构化 JSON 以节省 token,付费调用通过预付钱包结算。

可以做什么
  • 抓取公开网页或原始 HTML,将正文提炼为干净的 Markdown,去除大部分样板内容
  • 先预览页面标题大纲与各章节 token 数,再决定是否抓取全文
  • 提取 JSON-LD、OpenGraph 元数据、HTML 表格、代码块、标题与链接等结构化数据
  • 查询账户账本:剩余免费试用次数、预付美元余额、累计支出、调用次数与节省的 token
适用场景
适合让助手阅读长篇文章、文档或价格页面并控制上下文长度时使用,也适合需要从页面取得机器可读数据而非正文的场景。先用大纲预览可判断整页是否值得抓取。
运行要求
需要远程 streamable HTTP 端点;未声明本地运行时、软件包、环境变量或请求头。服务按量计费:5 次免费试用,之后需通过 Stripe 或 USDC 充值预付美元余额。目标页面须可通过 HTTP(S) 公开访问。
安装前请注意
付费工具调用会扣减预付余额,批量调用前应先查看钱包状态。服务器会代为抓取任意公开网址,提交的网址与页面内容会离开本机。README 描述的是另一套保障服务及其端点,与清单中的端点不一致,连接前请确认实际对接的服务。

安装

在 SourceWeft 中

  1. 打开 控制台中的 AgentDiet AI Token Diet & Context Window Distiller,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/dev.agentdiet%2Fagentdiet/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "agentdiet-ai-token-diet-context-window-d": {
      "type": "http",
      "url": "https://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

来源:README.md,提交 fd42696

工具

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')

输入参数url必填htmlmodequerytx_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')

输入参数url必填htmltx_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')

输入参数url必填htmltx_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')

输入参数agent_id

版本历史

2
  1. v7.0.17最新Oct 21, 2026
  2. v7.0.15Oct 19, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Agentdiet 集成

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

dev.agentdiet官方发布者

远程 MCP 服务器,抓取公开网页并提炼为精简 Markdown、结构大纲或结构化数据,以减少 token 消耗。

Streamable HTTP可网页运行
网页搜索与抓取4 个工具Nov 4, 2026

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

dev.agentdiet官方发布者

远程 MCP 防火墙,可扫描不可信文本中的提示注入,并查询代理的预付费调用余额。

Streamable HTTP可网页运行
安全与监控2 个工具Nov 4, 2026

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

dev.agentdiet官方发布者

远程 MCP 网关,让助手检索 490+ 个 MCP 与 x402 工具的索引,并按次付费执行单个工具或工作流组合。

Streamable HTTP可网页运行
网页搜索与抓取4 个工具Nov 4, 2026

Imperium Workflow Studio — Multi-Agent DAG & Pipeline Executor

dev.agentdiet官方发布者

远程 MCP 服务器,让助手搜索付费工具市场、执行单个工具或四工具组合,并查看预付代理钱包余额。

Streamable HTTP可网页运行
效率与工作流4 个工具Oct 26, 2026

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

dev.agentdiet官方发布者

远程 MCP 服务器,用于审计远程 agent 与 MCP 端点的 A2A、x402、JSON-RPC 与 schema 就绪情况,并可查询账户余额。

Streamable HTTP可网页运行
开发者工具2 个工具Nov 4, 2026