dompruner-mcp
dompruner-mcp
한국어 | English

LLM 웹 파이프라인을 위한 DOM AST 미들웨어 — 레이아웃 노이즈(nav, scripts, sidebars)를 제거하고 원본 텍스트를 그대로 전달합니다. BM25로 관련 섹션만 필터링하는 쿼리를 추가할 수 있습니다.
LLM이 내장 WebFetch를 사용하면, 더 작은 모델이 HTML을 전처리하고 요약된 결과를 반환합니다 — 요청하지 않은 지연 시간, 비용, 해석이 추가되는 셈입니다. DomPruner는 이를 완전히 건너뜁니다: DOM AST 파싱이 노이즈를 제거하고 원본 콘텐츠를 모델에 직접 전달합니다.
호출 | 동작 |
| 레이아웃 노이즈 제거 → 추출된 전체 콘텐츠 반환 |
| 레이아웃 노이즈 제거 → BM25로 관련 섹션 필터링 (일치 항목이 없으면 전체 콘텐츠로 폴백) |
> [DomPruner] docs.python.org
> | Raw HTML | 44,316 tokens |
> | DomPruner | 1,328 tokens |
> | Reduction | 97.0% |
> Fetch: 194ms · Parse: 11.2ms평균적으로 WebFetch보다 컨텍스트 토큰 93.5% 절감. 엔드투엔드 45% 더 빠름. → 전체 벤치마크
빠른 시작
설치 불필요, API 키 불필요:
npx -y dompruner-mcpClaude Code
{
"mcpServers": {
"dompruner": {
"type": "stdio",
"command": "npx",
"args": ["-y", "dompruner-mcp"]
}
}
}프로젝트 루트의 .mcp.json에 추가하거나, 전역으로 사용하려면 ~/.claude/.mcp.json에 추가하세요. 확인하려면 /mcp를 실행하세요.
Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json(macOS) 또는 %APPDATA%\Claude\claude_desktop_config.json(Windows)을 편집하세요:
{
"mcpServers": {
"dompruner": {
"command": "npx",
"args": ["-y", "dompruner-mcp"]
}
}
}Cursor / Windsurf / 기타 MCP 클라이언트
{
"mcpServers": {
"dompruner": {
"type": "stdio",
"command": "npx",
"args": ["-y", "dompruner-mcp"]
}
}
}원격 HTTP (설치 불필요, 항상 최신 버전)
HTTP 전송을 지원하는 클라이언트용 — Node.js 설치가 필요 없으며, 항상 최신 버전이 실행됩니다:
{
"mcpServers": {
"dompruner": {
"url": "https://dompruner-mcp.vercel.app/api/mcp"
}
}
}LangChain / LangGraph
langchain-mcp-adapters는 모든 MCP stdio 서버를 LangChain 도구로 자동 래핑합니다:
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"dompruner": {
"command": "npx",
"args": ["-y", "dompruner-mcp"],
"transport": "stdio",
}
})
tools = await client.get_tools()Related MCP server: Scrapi MCP Server
AI가 항상 DomPruner를 사용하도록 보장하기
DomPruner의 도구 설명은 이미 클라이언트가 WebFetch보다 dompruner_fetch를 선호하도록 안내합니다. 클라이언트가 여전히 폴백한다면, 해당 클라이언트의 지시 파일에 다음을 추가하세요:
When retrieving a URL, always use dompruner_fetch instead of WebFetch.
- URL known → dompruner_fetch(url, query?)
- URL unknown → search for the URL first, then dompruner_fetch(url)클라이언트 | 지시 파일 |
Claude Code |
|
Cursor |
|
Windsurf |
|
Cline |
|
GitHub Copilot |
|
도구
도구 | 설명 |
| URL 가져오기 → DOM 정제 Markdown. 선택적 |
| sitemap.xml의 모든 페이지 가져오기 → 페이지별 정제 Document 1개 반환. |
| 전체 콘텐츠 없이 URL의 토큰 절감 보고서. |
→ 전체 도구 참조
벤치마크 요약
지표 | WebFetch | DomPruner |
평균 컨텍스트 토큰 | ~15,735 | ~1,019 (93.5% 절감) |
답변 품질 (10개 쿼리) | 9 / 10 | 8 / 10 |
평균 응답 시간 | 5,811 ms | 3,168 ms (45% 더 빠름) |
콘텐츠 충실도 | 소형 모델이 요약 | 원본 텍스트 보존 |
추가 API 키 / 인프라 | 없음 | 없음 |
관련 프로젝트
dompruner-py — Python 포트. LangChain용
DomPrunerLoader,DomPrunerSitemapLoader,DomPrunerFetchTool.pip install dompruner.LangChain 통합 — dompruner-py가 서드파티 웹 로더로 등재됨.
Glama 점수
라이선스
MIT
Maintenance
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that fetches web pages and extracts clean, AI-friendly Markdown content using Mozilla Readability. It provides secure web access for LLMs with built-in SSRF protection and automated content cleaning for improved context retrieval and summarization.1314MIT
- AlicenseAqualityCmaintenanceMCP server that converts URLs to clean Markdown/Text for LLM agents.5875MIT
- AlicenseAqualityDmaintenanceMCP server that converts URLs into token-minimized clean text for LLMs, providing a receipt of token and cost savings.163MIT
- AlicenseNot gradedqualityBmaintenanceMCP server that fetches web pages, extracts clean markdown (reducing token count), caches results, and provides searchable reading history.MIT
Related MCP Connectors
Web scraping for AI agents. Converts URLs to clean, LLM-ready Markdown with anti-bot bypass.
Jina AI Reader/Search MCP — turn any URL into clean LLM-ready markdown, plus web search.
Web tools for agents: fetch URL as markdown (free MCP) + x402 scrape, links, AI JSON, snapshot.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dong7812/dompruner-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server