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 整合