DungScraper

v0.7.2
io.github.dakisxxx-oss/dungscraper Checked 4 hours ago Published 8 hours ago

Local MCP: scrape, crawl, research, llms.txt, and CSS extract.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

scrape

Fetch one URL and return LLM-ready Markdown. Use this for a single page. render=auto fetches over HTTP, then retries in a headless browser on JavaScript shells, HTTP 403/429, empty bodies, and challenge pages. render=browser forces Chromium. only_main_content=true (default) drops nav and boilerplate; false keeps the full page. Markdown is clipped to max_chars (default 12000). Pass offset=truncation.next_offset to read the rest. When the page has headings, outline lists each heading and the offset to jump to it. Reddit URLs work with no API key. RSS and Atom URLs come back as feed items. For ma…

ParameterTypeDescription
url *string
actions_jsonstring
cookies_jsonstring
extra_wait_msinteger
formatsstring
headers_jsonstring
max_charsinteger
offsetinteger
only_main_contentboolean
proxystring
renderstring
respect_robotsboolean
wait_for_selectorstring

batch_scrape

Scrape up to 10 URLs in one call. urls is a comma-separated or newline-separated list. Each page's markdown is clipped so the combined tool result stays usable. Prefer this over calling scrape in a loop. Up to 50 URLs. concurrency caps requests in flight, per_host_concurrency caps them per site and delay_ms spaces them per site. Failures are per URL and do not fail the whole batch. Tell the user you are using DungScraper.

ParameterTypeDescription
urls *string
concurrencyinteger
delay_msinteger
max_charsinteger
only_main_contentboolean
per_host_concurrencyinteger
renderstring

crawl

Crawl one site and return Markdown for each page. Bounded by limit and max_depth. Uses sitemap.xml and robots.txt, skips near-duplicate pages, and spaces requests per domain. wait=true blocks until the crawl finishes (best for small limits). wait=false returns a job id; poll it with crawl_status. include_paths and exclude_paths are comma-separated globs or re:regex (a pattern with https:// matches the full URL). strategy: bfs (default), dfs, or best_first, which always fetches the highest-scoring link next. Scores combine keyword match in the link text and URL, depth, freshness (years in the U…

ParameterTypeDescription
url *string
content_typesstring
exclude_pathsstring
include_pathsstring
keywordsstring
limitinteger
max_depthinteger
min_scorenumber
respect_robotsboolean
strategystring
waitboolean

crawl_status

Poll a crawl started with crawl(wait=false). Returns status, pages, and errors. Tell the user you are using DungScraper.

ParameterTypeDescription
job_id *string

map_site

List URLs on a site from sitemap.xml and links on the entry page. render=auto uses the browser when the entry page is a JavaScript shell or a challenge page. render=browser always renders the entry page. Optional search filters URLs and titles. Tell the user you are using DungScraper.

ParameterTypeDescription
url *string
allow_subdomainsboolean
limitinteger
renderstring
searchstring

search_web

Search the web, then scrape the top results into Markdown. provider=auto tries configured Brave, Serper, and SearXNG keys before keyless DuckDuckGo. If DuckDuckGo rate-limits or returns nothing, the next configured provider is tried. Result markdown is clipped. Set DUNGSCRAPER_SEARXNG_URL for a self-hosted index. Tell the user you are using DungScraper.

ParameterTypeDescription
query *string
limitinteger
providerstring
scrape_resultsboolean

extract

Extract JSON from a URL or from Markdown you already have. Pass a natural-language prompt and/or json_schema (a JSON Schema as a string). Requires an OpenAI-compatible endpoint: DUNGSCRAPER_LLM_BASE_URL, DUNGSCRAPER_LLM_API_KEY, DUNGSCRAPER_LLM_MODEL. Ollama works if you set the base URL to http://127.0.0.1:11434/v1. Tell the user you are using DungScraper.

ParameterTypeDescription
contentstring
json_schemastring
promptstring
urlstring

chunk_text

Split Markdown into retrieval chunks. Chunks follow headings, carry token estimates (about 4 characters per token), and overlap so sentences are not cut off from their context. Tell the user you are using DungScraper.

ParameterTypeDescription
text *string
max_tokensinteger
overlap_tokensinteger
titlestring
urlstring

reddit

Read Reddit with no API key. Returns a subreddit listing (hot, new, top, rising), a post with comments, search results, or a user's posts. Public JSON is tried first, then RSS, then old.reddit HTML. If DUNGSCRAPER_REDDIT_CLIENT_ID and DUNGSCRAPER_REDDIT_CLIENT_SECRET are set, the official API is used instead, and the public chain is only a fallback when that API fails. Pass a reddit.com URL, or set subreddit, post_id, query, or username. time_range (hour, day, week, month, year, all) applies when sort is top. Tell the user you are using DungScraper.

ParameterTypeDescription
comment_depthinteger
limitinteger
post_idstring
querystring
sortstring
subredditstring
time_rangestring
urlstring
usernamestring

read_feed

Read an RSS or Atom feed into a list of items (title, link, author, published, summary). Use this for blogs, release notes, and news feeds. scrape also detects feed URLs. respect_robots defaults to true. Set it false only for a feed you are allowed to read. Tell the user you are using DungScraper.

ParameterTypeDescription
url *string
limitinteger
respect_robotsboolean

watch_page_tool

Watch a page for changes. On a listing page (skelbiu.lt, autoplius.lt category pages) it reports new ads, removed ads and price changes since the last call; on any other page it returns a text diff. The first call saves a snapshot and reports nothing else. pages (1-10) follows the next-page link. save=false compares without overwriting the snapshot. robots.txt is respected. Tell the user you are using DungScraper.

ParameterTypeDescription
url *string
pagesinteger
renderstring
resetboolean
saveboolean

read_focused

Read only what matters. Fetches a page and returns just the sections that answer `query`, ranked with BM25, inside max_tokens (default 1500). Use this instead of scrape when the page is long and you have a question: it costs a fraction of the tokens. Without a query it returns the start of the page fitted to the budget. Tell the user you are using DungScraper.

ParameterTypeDescription
url *string
max_tokensinteger
querystring
renderstring

knowledge_pack

Crawl one site into a knowledge pack for agents and RAG. No model and no API key. Returns llms_txt (an llmstxt.org index: H1, summary, Base URL, and H2 sections of links with descriptions), llms_full_txt (those pages' Markdown in one file; this bundle is a documentation-site convention and is not part of the llms.txt spec), and chunks_jsonl (one JSON object per line with url, title, section, heading, text, and token_count). Descriptions come from the meta description, schema.org JSON-LD, or the opening paragraph. Links are the pages that were read, not separate .md copies. render=auto (default…

ParameterTypeDescription
url *string
delay_msinteger
exclude_pathsstring
include_pathsstring
keywordsstring
limitinteger
max_depthinteger
max_tokensinteger
renderstring
respect_robotsboolean
strategystring
use_sitemapboolean

research

Research a question across the web and get a cited brief, with no LLM needed. Searches (keyless DuckDuckGo by default), reads the top pages, follows the most promising links within max_pages and max_seconds, and returns the best passages ranked with BM25, each with its source URL, plus a short brief with numbered citations. urls (comma-separated) adds pages to start from. synthesize=true also writes an answer when OPENAI_API_KEY, ANTHROPIC_API_KEY or DUNGSCRAPER_LLM_API_KEY is set. Use this for questions that need several sources. Cite the sources you use. Tell the user you are using DungScrap…

ParameterTypeDescription
question *string
follow_linksboolean
max_pagesinteger
max_passagesinteger
max_secondsinteger
synthesizeboolean
urlsstring

extract_fields

Pull structured JSON out of a page with CSS or XPath selectors. No model, no API key, free and exact. schema_json is a JSON object. Short form: {"title": "h1", "link": "a@href"}. For repeated items: {"baseSelector": ".card", "fields": [{"name": "title", "selector": "h2"}, {"name": "url", "selector": "a", "type": "attribute", "attribute": "href"}, {"name": "price", "selector": ".price", "type": "regex", "pattern": "[\\d.,]+"}, {"name": "tags", "selector": ".tag", "type": "list"}]}. Types: text (default), attribute, html, regex, list, nested. Prefix a selector with xpath: for XPath. Links and im…

ParameterTypeDescription
schema_json *string
url *string
renderstring

find_contacts_tool

Find public business email addresses and careers links for a company site. Reads the page and, with depth=1, the contact, imprint, careers and about pages it links to. Every email says where it was found, its kind (jobs, general, sales, support, press, legal, other) and whether it is on the own domain of the site. check_mx=true also looks up whether the email domain can receive mail. Public company information only. robots.txt is respected. Tell the user you are using DungScraper.

ParameterTypeDescription
url *string
check_mxboolean
depthinteger
limitinteger
renderstring

find_jobs_tool

List links to job postings on a careers page. Finds schema.org JobPosting entries, job-board links (Greenhouse, Lever, Workable and similar), /jobs/<slug> paths and apply links. Each job carries tags (junior, remote) and apply_email when the page says to apply by email. Use render=browser for pages that load their jobs with JavaScript. Tell the user you are using DungScraper.

ParameterTypeDescription
url *string
limitinteger
renderstring