Agentdiet

io.github.robertoyanguas-ops由 GitHub 账号 robertoyanguas-ops 发布v1.1.1更新于 Oct 25, 2026

Strips 85-97% of HTML bloat into clean Markdown, <200-token skeletons, or BM25 excerpts via MCP.

发布方自己的服务:AgentDiet AI Token Diet & Context Window Distiller

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

概览

AI 生成的概览

一个远程 MCP 服务器,抓取公开网页并提炼为干净的 Markdown、精简的标题骨架或结构化数据,以节省 token。

可以做什么
抓取公开网页或原始 HTML,将正文提炼为干净的 Markdown,去除大部分样板内容,并可按查询过滤或生成 BM25 摘录(distill_webpage)。以紧凑大纲预览页面的 H1-H4 标题及各章节 token 数,再决定是否读取(recon_webpage_skeleton)。提取结构化数据,如 Schema.org JSON-LD、OpenGraph 元数据、解析为 JSON 行的 HTML 表格、围栏代码块、标题和链接(extract_structured_data)。查看代理账户账本:剩余免费试用次数、预付美元余额、累计支出、总调用次数和节省的 token(get_agent_wallet_status)。
适用场景
适合在助手需要阅读长文章或文档而不淹没上下文、先预览页面结构与 token 成本,或从页面提取价格表、API 规范、产品元数据和代码片段时使用。批量运行前查看剩余调用次数和余额也有用。
运行要求
远程 streamable HTTP 端点;未声明本地包、环境变量或请求头。需要网络访问以抓取公开 HTTP(S) 页面。付费使用似乎依赖通过 Stripe 或 USDC 充值的预付余额,并提供 5 次免费试用调用。
安装前请注意
该服务按量计费:5 次免费试用后,工具调用似乎会消耗通过 Stripe 或 USDC 充值的预付美元余额,可能产生费用。它会抓取任意公开网址,页面内容会发送给第三方服务。未声明身份验证,任何知道端点的人都可能访问。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Agentdiet,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

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

交给智能体安装

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

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

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

其他 MCP 客户端

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

{
  "mcpServers": {
    "agentdiet": {
      "type": "http",
      "url": "https://agentdiet-72343955726.us-central1.run.app/mcp"
    }
  }
}

工具

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. v1.1.1最新Oct 13, 2026
  2. v1.0.2Oct 13, 2026

评分

已满足适用检查项的 83%

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

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

    请声明包含 README 的 GitHub 仓库,或在 OAuth 受保护资源元数据中提供 resource_documentation。

  • 许可证不适用

    托管服务按其提供方的条款使用,因此这里不要求许可证。此检查项不计入百分比。

其他 Agentdiet 集成