dompruner-mcp
Strips layout noise via DOM AST; with a query, BM25 filters to relevant sections. No model or API.
我該用這個嗎
品質與安全性
A
根據工具定義與協定合規性的自動化分析。
上下文成本
~585Token(工具定義)
~2.5 KB典型回應大小
極小的注意力影響(128k 上下文的 0.46%)
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"dompruner-mcp": {
"command": "npx",
"args": [
"dompruner-mcp"
]
}
}
}可執行的套件
npmdompruner-mcp
0.5.2stdio遠端端點
https://dompruner-mcp.vercel.app/api/mcpstreamable-http它能做什麼
工具清單
工具(2)
🟢 唯讀🟡 寫入🔴 刪除⚪ 未知
🟢dompruner_fetch(url, query)
Fetches a URL and returns DOM-pruned Markdown with 90%+ token reduction. Optimized for Developer Documentation, API Specs, and Technical Blogs (Next.js/Nuxt/SSR). Always prefer this over raw WebFetch when the URL is known.
輸入結構描述
{
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri",
"description": "URL to fetch and refine."
},
"query": {
"type": "string",
"description": "Search intent — enables BM25+ section filtering when provided."
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}輸出結構描述
{
"type": "object",
"properties": {
"markdown": {
"type": "string",
"description": "DOM-pruned Markdown content."
},
"stats": {
"type": "object",
"properties": {
"hostname": {
"type": "string"
},
"originalTokens": {
"type": "number"
},
"refinedTokens": {
"type": "number"
},
"savedTokens": {
"type": "number"
},
"reductionPercent": {
"type": "string"
},
"fetchMs": {
"type": "number"
},
"parseMs": {
"type": "number"
}
},
"required": [
"hostname",
"originalTokens",
"refinedTokens",
"savedTokens",
"reductionPercent",
"fetchMs",
"parseMs"
],
"additionalProperties": false
}
},
"required": [
"markdown",
"stats"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢dompruner_analyze(url)
Returns a token-reduction analysis report for a URL. Shows render type (SSR/CSR/SSG), original vs refined token counts, reduction ratio, and top Semantic Anchors.
輸入結構描述
{
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri",
"description": "URL to analyze."
}
},
"required": [
"url"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}輸出結構描述
{
"type": "object",
"properties": {
"url": {
"type": "string"
},
"renderType": {
"type": "string",
"description": "SSR, CSR, or SSG"
},
"originalTokens": {
"type": "number"
},
"refinedTokens": {
"type": "number"
},
"reductionPercent": {
"type": "string"
},
"fetchMs": {
"type": "number"
},
"parseMs": {
"type": "number"
},
"topAnchors": {
"type": "array",
"items": {
"type": "string"
},
"description": "Top 5 semantic section headings."
}
},
"required": [
"url",
"renderType",
"originalTokens",
"refinedTokens",
"reductionPercent",
"fetchMs",
"parseMs",
"topAnchors"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}社群
證據
近期觀測
已驗證未記錄版本2 個工具
已驗證未記錄版本2 個工具
已驗證未記錄版本2 個工具