Purpose
url-to-markdown-mcp is an MCP (Model Context Protocol) server that converts any web page URL into clean Markdown or plain text, making it easy for AI assistants to read and cite web content. It targets Claude, Cursor, Windsurf, Cline, VS Code Copilot, and other MCP clients, providing them with a unified web page main-content extraction capability.
Key capabilities
- Single tool
extract_url: fetches a page and returns only the main content, removing navigation, ads, cookie banners, sidebars, footers, and comments. - Returns metadata: title, author, publication date, word count, and reading time, output as a short metadata header followed by the body text.
- LLM-friendly Markdown: preserves headings, lists, code blocks, and absolute links; output length can be controlled via
max_charsto fit the token budget. - Performance: the official figures report extraction times of p50 about 230 ms and p95 about 650 ms measured on 20 real article URLs (measurement date 2026-10-22).
- Security: read-only, with SSRF protection that rejects localhost and private IPs.
- Lightweight: one tool, stdio transport, two runtime dependencies (
@modelcontextprotocol/sdkandzod). - Error handling: errors are returned as MCP tool errors (
isError: true) with readable messages so the model can recover. Covers missing key, private or localhost URLs, non-HTML targets, unreachable sites, Zyla quota or rate limits, and the API's 502 errors:upstream_blocked(the site returns 401/403/429/451 or a bot challenge page) andempty_content(about 0 words, e.g., a client-rendered page). Zyla bills only for successful calls; blocked or empty-content pages are not charged.
Usage
Requires Node.js 18 or later. All clients use the same command:npx -y @kitedesk-erm/url-to-markdown-mcp, and provide the key via the environment variable ZYLA_API_KEY .
- Claude Desktop: edit
claude_desktop_config.json(macOS:~/Library/Application Support/Claude/,Windows:%APPDATA%\Claude\). - Cursor: use
~/.cursor/mcp.jsonfor global configuration and.cursor/mcp.jsonfor a single project. - VS Code (GitHub Copilot agent mode): add the configuration in
.vscode/mcp.json; VS Code will prompt for the key and store it securely. - Windsurf, Cline, Continue, Zed, etc.: most clients accept the same
mcpServersconfiguration block as Claude Desktop and Cursor (Windsurf uses~/.codeium/windsurf/mcp_config.json; Cline uses its MCP Servers → Configure panel). The general form is:args: ["-y", "@kitedesk-erm/url-to-markdown-mcp"]env: ZYLA_API_KEY=<your key>transport: stdio
- Smithery / Docker: the repository includes
smithery.yamlandDockerfile. It can also be run with Docker:docker build -t url-to-markdown-mcp . && docker run -i --rm -e ZYLA_API_KEY url-to-markdown-mcp. - Install before the npm release: can be built from source.
Example prompts:
- "Read https://go.dev/blog/go1.22 and summarize what changed in loops."
- "Pull the text of these three articles and compare their arguments" (each uses
max_chars: 6000). - "Save this page as a Markdown note with title and author front matter."
Use cases
Suitable for having an AI assistant read and summarize web articles, batch-extract the text of multiple articles for comparison, save web pages as Markdown notes with title and author front matter, and provide web page body text as input to models in MCP clients.
Limitations
- Does not execute JavaScript rendering: pages whose content is built only in the browser (some SPAs) return very little text.
- Paywalled or bot-protected sites return only publicly available content; blocked or challenged requests return a
upstream_blockedtool error and are not billed. - The Zyla plan determines quota and rate limits; only successful (200) calls count toward the plan.
- Requires a Zyla API Key; the official offering includes a 7-day free trial; specific pricing details are not provided.
- Tests use a fake key against a local mock, so no real key is needed; the Zyla endpoint is in the
src/config.tsconstant, andZYLA_ENDPOINTcan be overridden but only for testing. - When changing the GitHub handle or namespace,
package.json'smcpNameis the source of truth; runningnpm run set-github-handle -- <handle>can rewritepackage.json、server.json、README.mdandsmithery.yaml,npm testchecks that they are consistent, which is also an MCP Registry requirement.