AgentDiet MCP
AgentDiet is a B2A platform that strips HTML bloat to return clean Markdown, skeletons, or BM25 excerpts via an MCP server, reducing LLM context costs by 50x-150x.
Endpoint and access
No sign-in to connect and list tools. Individual tools may still need a vendor account, credentials, or permissions; check the documented prerequisites.
https://agentdiet-72343955726.us-central1.run.app/mcpWhat its tools do
4 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.
Checks and signals
Each line is separate evidence, not a trust score.
- Passed Endpoint answered the live check ·
- Warning Advertises resources/templates/list but does not implement it
- Uptime 100% over 90 days
- Availability 2 of 2 checks passed in 30 days
What you can do with it
- Distill URLs into clean Markdown
- Extract JSON-LD schemas and metadata
- Generate token-efficient skeletons
- Return BM25 ranked excerpts
Source and maintenance
Protocol and capabilities
- Server
- agentdiet-mcp 7.0.16
- MCP protocol negotiated in check
- 2025-11-25
- Tools
- 4 advertised
- Resources
- 10 advertised
- Resource templates
- Not advertised
- Prompts
- 2 advertised
{
"tools": {
"listChanged": false
},
"prompts": {
"listChanged": false
},
"resources": {
"subscribe": false,
"listChanged": false
}
}Server-provided instructions
Untrusted server output shown for inspection. It is not Koskamo guidance and is excluded from knowledge search.
Tools
4 advertised
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')
{
"type": "object",
"examples": [
{
"url": "https://docs.stripe.com/api"
}
],
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"maxLength": 2048,
"minLength": 1,
"description": "Target public HTTP(S) webpage URL to fetch (or builtin://stripe-docs for a built-in benchmark page). Private/loopback IPs are blocked."
},
"html": {
"type": "string",
"maxLength": 1900000,
"minLength": 1,
"description": "Optional raw HTML string (up to ~1.9MB) to process directly without network fetching. When provided, url is not fetched and only labels the cache entry."
},
"mode": {
"enum": [
"markdown",
"budget"
],
"type": "string",
"default": "markdown",
"description": "Extraction mode: 'markdown' (default) returns the full cleaned page; 'budget' returns only sections matching query within max_tokens."
},
"query": {
"type": "string",
"maxLength": 99999,
"minLength": 1,
"description": "BM25 relevance keywords used to rank and filter page sections. Required for focused filtering when mode='budget'; ignored when mode='markdown'."
},
"tx_hash": {
"type": "string",
"maxLength": 256,
"minLength": 10,
"description": "Optional on-chain Base Mainnet (0x...) or Solana SPL USDC transaction hash. Omit unless settling an individual call directly on-chain instead of using an agd_pass_ key in agent_id."
},
"agent_id": {
"type": "string",
"maxLength": 256,
"minLength": 1,
"description": "Optional agent identifier or prepaid agd_pass_ session key. Omit during your 5 free trial calls to use an ID automatically derived from your client IP, or pass your agd_pass_ key after topping up."
},
"max_tokens": {
"type": "integer",
"default": 400,
"maximum": 16000,
"minimum": 50,
"description": "Maximum output token ceiling (50-16000, default 400). Enforced only when mode='budget'; ignored when mode='markdown'."
}
},
"additionalProperties": false
}{
"type": "object",
"required": [
"status"
],
"properties": {
"data": {
"type": "object",
"description": "Structured tool output payload."
},
"status": {
"type": "string",
"description": "Execution status ('ok' or 'payment_required')."
},
"roi_proof": {
"type": "object",
"description": "Token compression and cost-savings verification metrics."
}
}
}{
"title": "Distill webpage",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}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')
{
"type": "object",
"examples": [
{
"url": "https://docs.stripe.com/api"
}
],
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"maxLength": 2048,
"minLength": 1,
"description": "Target public HTTP(S) webpage URL to fetch (or builtin://stripe-docs for a built-in benchmark page). Private/loopback IPs are blocked."
},
"html": {
"type": "string",
"maxLength": 1900000,
"minLength": 1,
"description": "Optional raw HTML string (up to ~1.9MB) to process directly without network fetching. When provided, url is not fetched and only labels the cache entry."
},
"tx_hash": {
"type": "string",
"maxLength": 256,
"minLength": 10,
"description": "Optional on-chain Base Mainnet (0x...) or Solana SPL USDC transaction hash. Omit unless settling an individual call directly on-chain instead of using an agd_pass_ key in agent_id."
},
"agent_id": {
"type": "string",
"maxLength": 256,
"minLength": 1,
"description": "Optional agent identifier or prepaid agd_pass_ session key. Omit during your 5 free trial calls to use an ID automatically derived from your client IP, or pass your agd_pass_ key after topping up."
}
},
"additionalProperties": false
}{
"type": "object",
"required": [
"status"
],
"properties": {
"data": {
"type": "object",
"description": "Structured tool output payload."
},
"status": {
"type": "string",
"description": "Execution status ('ok' or 'payment_required')."
},
"roi_proof": {
"type": "object",
"description": "Token compression and cost-savings verification metrics."
}
}
}{
"title": "Recon webpage skeleton",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}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')
{
"type": "object",
"examples": [
{
"url": "https://docs.stripe.com/api"
}
],
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"maxLength": 2048,
"minLength": 1,
"description": "Target public HTTP(S) webpage URL to fetch (or builtin://stripe-docs for a built-in benchmark page). Private/loopback IPs are blocked."
},
"html": {
"type": "string",
"maxLength": 1900000,
"minLength": 1,
"description": "Optional raw HTML string (up to ~1.9MB) to process directly without network fetching. When provided, url is not fetched and only labels the cache entry."
},
"tx_hash": {
"type": "string",
"maxLength": 256,
"minLength": 10,
"description": "Optional on-chain Base Mainnet (0x...) or Solana SPL USDC transaction hash. Omit unless settling an individual call directly on-chain instead of using an agd_pass_ key in agent_id."
},
"agent_id": {
"type": "string",
"maxLength": 256,
"minLength": 1,
"description": "Optional agent identifier or prepaid agd_pass_ session key. Omit during your 5 free trial calls to use an ID automatically derived from your client IP, or pass your agd_pass_ key after topping up."
}
},
"additionalProperties": false
}{
"type": "object",
"required": [
"status"
],
"properties": {
"data": {
"type": "object",
"description": "Structured tool output payload."
},
"status": {
"type": "string",
"description": "Execution status ('ok' or 'payment_required')."
},
"roi_proof": {
"type": "object",
"description": "Token compression and cost-savings verification metrics."
}
}
}{
"title": "Extract structured data",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}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')
{
"type": "object",
"examples": [
{
"agent_id": "example"
}
],
"properties": {
"agent_id": {
"type": "string",
"maxLength": 256,
"minLength": 1,
"description": "Optional Agent ID or agd_pass_ session key to inspect. Omit to check the default wallet derived from your client IP."
}
},
"additionalProperties": false
}{
"type": "object",
"required": [
"status"
],
"properties": {
"data": {
"type": "object",
"description": "Structured tool output payload."
},
"status": {
"type": "string",
"description": "Execution status ('ok' or 'payment_required')."
},
"roi_proof": {
"type": "object",
"description": "Token compression and cost-savings verification metrics."
}
}
}{
"title": "Get agent wallet status",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}Prompts
2 advertised
distill-url-to-markdown
Distill a bloated webpage URL into clean, token-efficient Markdown.
- url
- Webpage URL to distill (required)
bm25-budget-research
Extract only the sections matching a query within a strict token budget.
- url
- Webpage URL to distill (required)
- query
- BM25 search query (required)
Resources
10 advertised
widget-result — Execution Output & ROI Proof Card
Interactive card rendering distilled Markdown or structured B2A JSON output alongside token savings and SHA-256 ROI proof.
ui://agentdiet/v1/resultwidget-marketplace — X402-Broker 8,300+ Tool Explorer
Interactive catalog table of 8,300+ indexed MCP, A2A, and x402 endpoints with SLA trust scores and per-call pricing.
ui://agentdiet/v1/marketplacewidget-wallet — Agent Wallet & Quota Ledger
Interactive balance card displaying remaining free trial calls, prepaid agd_pass_ USD credit, and cumulative token savings.
ui://agentdiet/v1/walletdocs-llms-txt — AgentDiet LLM System Prompt & Quickstart
Machine-readable integration guide for autonomous agents calling AgentDiet over MCP, A2A, and HTTP 402.
agentdiet://docs/llms-txtdocs-openapi — OpenAPI 3.1 Specification
Complete REST API specification for all 24 AgentDiet B2A endpoints and billing routes.
agentdiet://docs/openapipricing-x402 — x402 v2 Base & Solana USDC Settlement Terms
Base Mainnet USDC (0xec5275d5b03bc390fca63d902d0b2d0db2eb5573) and Solana SPL USDC per-call rates and EIP-3009 parameters.
agentdiet://pricing/x402pricing-mpp — Stripe Machine Payments Protocol (MPP) Challenges
JSON-RPC _meta org.paymentauth challenge schema and $2.00 Stripe session pass top-up flow.
agentdiet://pricing/mpprubric-tdqs — 6-Dimension Tool Documentation Quality Rubric
Specification of parameter constraints, disambiguation guidelines, output schemas, and safety annotations.
agentdiet://rubric/tdqsdocs-a2a-card — A2A v1.0 JWS-Signed Agent Card
Ed25519 JWS-signed AgentCard discovery manifest and supported JSON-RPC skill interfaces.
agentdiet://docs/a2a-carddocs-mcp-lock — SHA-256 Tool Schema Integrity Policy
Canonical SHA-256 tools/list hash verification rules to prevent silent tool poisoning and schema drift.
agentdiet://docs/mcp-lock90-day uptime
A lightweight connection check about every six hours, sampled on hosts with many listings. It shows the server answered, not that its tools work.
- 2026-11-18: 5 of 5 checks answered
- 2026-11-19: 4 of 4 checks answered
- 2026-11-20: 3 of 3 checks answered
- 2026-11-21: 4 of 4 checks answered
- 2026-11-22: 4 of 4 checks answered
- 2026-11-23: 3 of 3 checks answered
- 2026-11-24: 4 of 4 checks answered
- 2026-11-25: 4 of 4 checks answered
- 2026-11-26: 4 of 4 checks answered
- 2026-11-27: 4 of 4 checks answered
- 2026-11-28: 2 of 2 checks answered
30-day availability
Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.
- Successful checks
- 2 of 2 (100%)
- Average latency
- 762 ms
- 95th percentile latency
- 843 ms
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · probe · passed · 672 ms · 4 tool(s), 10 resource(s), 2 prompt(s); warnings: Advertises resources/templates/list but does not implement it
- · probe · passed · 852 ms · metadata changed · 4 tool(s), 10 resource(s), 2 prompt(s); warnings: Advertises resources/templates/list but does not implement it
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
claude mcp add --transport http agentdiet-mcp-run https://agentdiet-72343955726.us-central1.run.app/mcpCodex
codex mcp add agentdiet-mcp-run --url https://agentdiet-72343955726.us-central1.run.app/mcpCursor
{
"mcpServers": {
"agentdiet-mcp-run": {
"url": "https://agentdiet-72343955726.us-central1.run.app/mcp"
}
}
}Cline
{
"mcpServers": {
"agentdiet-mcp-run": {
"type": "streamableHttp",
"url": "https://agentdiet-72343955726.us-central1.run.app/mcp",
"disabled": false
}
}
}VS Code
{
"servers": {
"agentdiet-mcp-run": {
"type": "http",
"url": "https://agentdiet-72343955726.us-central1.run.app/mcp"
}
}
}Gemini CLI
gemini mcp add --transport http agentdiet-mcp-run https://agentdiet-72343955726.us-central1.run.app/mcpClaude Desktop
https://agentdiet-72343955726.us-central1.run.app/mcpWindsurf
{
"mcpServers": {
"agentdiet-mcp-run": {
"serverUrl": "https://agentdiet-72343955726.us-central1.run.app/mcp"
}
}
}Let your agent find its tools
Find servers like AgentDiet MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.