SuperAPIAI Directory

url-to-markdown-mcp

github.com · AI developer platforms

url-to-markdown-mcp is an MCP server that converts any URL into clean Markdown or plain text for use with MCP clients such as Claude, Cursor, Windsurf, Cline, and VS Code Copilot. It provides a single tool, extract_url, which fetches a web page and returns the main content (removing navigation, ads, cookie banners, sidebars, footers, and comments), along with the title, author, publication date, word count, and reading time. The tool is powered by the hosted Article Extractor and URL to Markdown API on Zyla API Hub and requires a Zyla API Key (a 7-day free trial is available). Its features include: fast extraction (p50 about 230 ms, p95 about 650 ms), LLM-friendly Markdown output (with headings, lists, code blocks, and absolute links), support for max_chars to control the token budget, read-only operation with SSRF protection (rejecting localhost and private IPs), and a small footprint (single tool, stdio transport, two runtime dependencies). It requires Node.js 18 or later and runs via the npx command.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux · API

About this tool

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_chars to 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/sdk and zod).
  • 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) and empty_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 mcpServers configuration 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.yaml and Dockerfile. 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_blocked tool 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.ts constant, andZYLA_ENDPOINT can be overridden but only for testing.
  • When changing the GitHub handle or namespace,package.json 's mcpName is the source of truth; running npm run set-github-handle -- <handle> can rewrite package.json、server.json、README.md and smithery.yaml,npm test checks that they are consistent, which is also an MCP Registry requirement.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools