my-websearch

v1.6.1
io.github.wtznicy/my-websearch Checked 6 hours ago Published 12 days ago

MyWebSearch - multi-engine web search MCP server, CLI and local daemon.

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

fetchWebContent

Fetch readable web content/docs/PDFs. Auto-cleans ads, keeps code/tables. Supports outline mode & sectionId for long docs, BM25 focus, batch URLs (1-3), and startIndex paging.

ParameterTypeDescription
cachestringCache mode: 'default' uses disk Markdown cache; 'reload' forces re-fetching upstream
citationsbooleanRewrite inline links as numbered citations and append a '## References' list
extractobjectExtract structured JSON via CSS selectors without LLM
focusstringKeyword or topic to target. Uses BM25 semantic scoring to rank and extract relevant paragraphs, saving tokens on long pages
focusModestringFocus scoring algorithm (default 'bm25'; 'window' keeps ±2500 char slice around first match)
formatstringContent format: 'markdown' (default, keeps headings, code blocks, tables), 'text' (compact plain text), or 'raw' (unprocessed HTML/source)
includeLinksbooleanInclude extracted links array in metadata
maxCharsintegerMax characters to return (default 30000). Use with startIndex for paging
modestringExtraction mode: 'full' (default) returns content body; 'outline' returns H1-H4 heading tree with section slug IDs and char estimates — use on long docs to avoid burning tokens
rawboolean(Deprecated: use format='raw') Return raw response body without extraction
readabilitybooleanForce readability parser (default: auto-detected based on content)
retainLinksstringInline link style: 'all' (default), 'text' (strip URLs, saves tokens on index pages), 'none'
sectionIdstringDirectly extract a specific section by heading slug ID or title (from outline mode). Reads until next same-level heading
selectorstringCSS selector to narrow extraction to a specific DOM subtree
startIndexintegerCharacter offset to start reading from. Use nextStartIndex from a previous response to page through long content
urlPublic HTTP(S) URL or array of 1-3 URLs to fetch. Array fetches concurrently and splits maxChars budget
urlsarray(Optional alias for url array) Batch URLs (1~3 URLs run concurrently)

fetchGithubContent

Fetch GitHub/Gitee by URL: README, file (/blob/, lines), tree, issue, PR, commit, releases, or repo symbol search ('symbol'). Example: https://github.com/o/r/blob/main/src/index.ts — ref can be branch/tag/commit; not a repo clone.

ParameterTypeDescription
url *string
linesstringOptional source-file line range, 1-based inclusive (e.g. "120-180"). Only valid for /blob/ URLs; URL hash #L120-L180 also works.
maxResultsintegerOptional max number of symbol search results to return (1-20, default 5).
refstringOptional branch, tag, or commit for symbol search (defaults to repo default branch).
releaseLimitintegerOptional number of releases to return for /releases URLs (1-30, default 10).
symbolstringOptional code symbol to search in the repository (e.g. "Use", "RouterGroup", "createContext"). Performs fast whole-repo syntactic search.

queryDocs

Fetch docs, API references & syntax-extracted sections for packages/APIs/tools. Multi-source: 'auto' (smart fallback), 'official', 'docs.rs', 'pkg.go.dev', 'devdocs' (800+ tools/langs), 'mdn' (Web standards), 'javadoc', 'context7', 'npm', 'pypi'.

ParameterTypeDescription
cachestringUse the 24h local docs cache (default 'default') or bypass/refresh it with 'reload'
librarystringLibrary, package, middleware, or Web API name (e.g. 'react', 'fastapi', 'tokio', 'redis', 'docker', 'fetch', 'Array.prototype.map', 'org.apache.commons:commons-lang3'). Also supports ecosystem prefixe…
libraryIdstringLegacy alias for library (e.g. '/vercel/next.js')
limitintegerMaximum number of code snippets or sections to return (default 5)
querystringThe specific topic, method, command, or question to get relevant documentation for (e.g. 'hset', 'useMemo', 'middleware', 'asyncio'). For long documents (>8000 chars), syntax-level section extraction…
sourcestringDocumentation source: 'auto' (smart routing & cascade fallback: Context7 -> Official Site -> DevDocs -> Registry), 'official' (standalone doc site), 'docs.rs' (Rust crates), 'pkg.go.dev' (Go packages)…
strictbooleanIf true, rejects low-confidence matches with an error instead of returning loosely matched candidate docs or alternative libraries (default false)
versionstringOptional explicit version for consistent multi-source pinning (e.g. '18.2.0', '3.11', '1.38.0', 'v1.9.1'). Overrides an @version embedded in library