with one click
fetch-url
// Fetch a single URL and convert its content to Markdown. Use when you need to read a web page, documentation page, or API reference without indexing it. The content is returned as plain Markdown text on stdout.
// Fetch a single URL and convert its content to Markdown. Use when you need to read a web page, documentation page, or API reference without indexing it. The content is returned as plain Markdown text on stdout.
Manage the Grounded Docs MCP Server documentation index. Covers scraping and indexing documentation from URLs or local files, refreshing existing indexes with changed content, and removing libraries from the index. Use when you need to add, update, or delete indexed documentation.
Search and query the Grounded Docs MCP Server documentation index. Covers listing indexed libraries, searching documentation content, and resolving library versions. Use when you need to look up API references, find code examples, or check which documentation is available in the local index.
| name | fetch-url |
| description | Fetch a single URL and convert its content to Markdown. Use when you need to read a web page, documentation page, or API reference without indexing it. The content is returned as plain Markdown text on stdout. |
| compatibility | Requires Node.js 22+ and npx |
| metadata | {"author":"grounded.tools"} |
Fetch a single URL and convert its content to clean Markdown. This does not add anything to the documentation index; it is a one-shot read operation.
If you need to index the content for repeated searching, use the docs-manage
skill (scrape command) instead.
npx @arabold/docs-mcp-server@latest fetch-url <url> [options]
| Flag | Default | Description |
|---|---|---|
--follow-redirects | true | Follow HTTP redirects |
--no-follow-redirects | Disable following redirects | |
--scrape-mode auto|fetch|playwright | auto | HTML processing strategy |
--header "Name: Value" | Custom HTTP header (repeatable) | |
--quiet | Suppress non-error diagnostics | |
--verbose | Enable debug logging |
| Mode | When to use |
|---|---|
auto | Default. Tries a simple HTTP fetch first, falls back to Playwright for JS-rendered pages. |
fetch | Force a plain HTTP fetch. Fastest, but misses content rendered by JavaScript. |
playwright | Force a headless browser. Use for SPAs or pages that require JavaScript to render. |
# Fetch a documentation page
npx @arabold/docs-mcp-server@latest fetch-url https://react.dev/reference/react/useEffect
# Fetch with custom auth header
npx @arabold/docs-mcp-server@latest fetch-url https://docs.internal.com/api \
--header "Authorization: Bearer tok_xxx"
# Force Playwright for a JS-heavy page
npx @arabold/docs-mcp-server@latest fetch-url https://some-spa.dev/docs --scrape-mode playwright
# Disable redirect following
npx @arabold/docs-mcp-server@latest fetch-url https://example.com/old-page --no-follow-redirects
The command writes the converted Markdown text directly to stdout. The
global --output flag is accepted but has no effect because the result is
already plain text, not structured data.
Diagnostics and errors go to stderr and are suppressed by default in
non-interactive sessions. Use --verbose (or set LOG_LEVEL=INFO) to
re-enable them. Use --quiet to suppress all non-error diagnostics
regardless of session type.
npx @arabold/docs-mcp-server@latest fetch-url <url> > page.mdsearch
returns a relevant URL.--header to pass cookies or tokens.