Web2MD
Integrates with the Web2MD API on RapidAPI to fetch web pages and convert them into clean Markdown, plain text, token-bounded RAG chunks, or page metadata. It enables reading URL content, chunking pages for embeddings, converting raw HTML, and retrieving metadata such as title, author, date, description, language, and reading time.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Web2MD fetch https://example.com as clean Markdown"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Web2MD MCP server
An MCP server that turns any web page into clean Markdown, plain text or token-bounded RAG chunks, using the Web2MD API on RapidAPI.
What it does
read_url: fetch a web page and return its main content as Markdown or plain text, without nav, ads or boilerplate.chunk_url: fetch a web page and split it into heading-aware chunks sized in tokens, for RAG and embeddings.convert_html: convert raw HTML you already have into Markdown or plain text.page_metadata: get a page's title, author, published date, description and similar fields without the full content.
Related MCP server: com.goaimoat/web-scrape
Setup in 3 steps
Subscribe to Web2MD on RapidAPI. The BASIC plan is free and includes 500 requests per month.
Copy your
X-RapidAPI-Keyfrom the Endpoints tab of the listing.Add the server to your client.
Requires Node.js 22 or newer.
Claude Code:
claude mcp add web2md -e RAPIDAPI_KEY=your-key -- npx -y web2md-rag-mcpClaude Desktop (claude_desktop_config.json) and Cursor (~/.cursor/mcp.json) use the same JSON:
{
"mcpServers": {
"web2md": {
"command": "npx",
"args": ["-y", "web2md-rag-mcp"],
"env": { "RAPIDAPI_KEY": "your-key" }
}
}
}Windsurf: put the same block in ~/.codeium/windsurf/mcp_config.json.
Tools
Tool | What it does | Arguments | Returns |
| Fetch a page as clean Markdown or text |
| Title, token count and the content; |
| Split a page into RAG chunks |
| JSON with |
| Convert raw HTML |
| Same as |
| Get page metadata |
| JSON with title, author, date, description, site name, language, canonical URL, image, word count, reading time |
Limits and plans
Plan | Price | Requests per month |
BASIC | $0 | 500 |
PRO | $9 | 10,000 |
ULTRA | $29 | 60,000 |
MEGA | $79 | 250,000 |
RapidAPI rate limit: 1,000 requests per hour.
Pages up to 5 MB.
robots.txt is respected.
JavaScript-heavy pages may return
no_content. Rendering support is planned.
Errors
Tool errors look like Web2MD error [code]: message. Input-validation failures (a bad URL, out-of-range numbers) come from the MCP SDK as MCP error -32602: Input validation error ... instead.
Code | Meaning |
|
|
|
|
| RapidAPI rejected the key, or you are not subscribed |
| Your plan's quota or rate limit is used up |
| The request failed validation (HTTP 422) |
| 400: not http/https, has credentials, no host, bad port, or longer than 2048 chars |
| 400: host resolves to a private, loopback, link-local or metadata address; port not 80/443; localhost/.local/.internal. Applies to every redirect |
| 400: the host does not resolve |
| 403: the site's robots.txt disallows the |
| 413: page larger than 5 MB |
| 415: not HTML |
| 422: fewer than 10 words of main content, often a JavaScript-only page |
| 429: per-target-site limit that protects the sites fetched. It is not your quota |
| 502: the site answered 401/403/429/503, often a bot wall |
| 502: the site answered another 4xx/5xx |
| 502: could not connect, or TLS failed |
| 502: more than 5 redirects |
| 504: the fetch took more than 15 s |
| The Web2MD request timed out |
| The request could not reach the API |
| The API returned a non-JSON success response |
| Any other HTTP failure, with a short snippet of the response |
| An unexpected error inside the MCP server |
Privacy
Your key is sent only to the RapidAPI gateway (web2md-webpage-to-markdown-rag-chunks.p.rapidapi.com) and is never logged.
Development
npm ci
npm test
npm run lint
npm run build
RAPIDAPI_KEY=your-key npm run smokeLicence
MIT
Available Tools
4 toolschunk_urlChunk web page for RAGARead-only
Fetch a web page and split its main content into heading-aware, token-bounded chunks for RAG/embeddings. Each chunk has its heading path and token count.
Inputs: url (required), max_tokens, include_links, include_images, +2 more.
convert_htmlConvert HTML to MarkdownARead-only
Convert raw HTML you already have into clean Markdown (or plain text). Pass url to resolve relative links.
Inputs: html (required), url, format, include_links, +2 more.
page_metadataGet web page metadataARead-only
Get a web page's metadata (title, author, published date, description, site name, language, canonical URL, image, word count, reading time) without the full content.
Inputs: url (required).
read_urlRead web page as MarkdownARead-only
Fetch a web page and return its main content as clean Markdown (or plain text), with boilerplate, nav and ads removed. Includes title and token count. Use for reading articles, docs and blog posts.
Inputs: url (required), format, include_links, include_images, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
read_url, chunk_url, page_metadata, and convert_html have clear distinct outputs: full Markdown, RAG chunks, metadata only, and conversion of raw HTML. However, read_url and chunk_url both fetch the page's main content, which could cause minor confusion if the agent does not attend to the output format.
Three tools follow a verb_noun pattern (read_url, chunk_url, convert_html), while page_metadata is a noun phrase, breaking the convention. The deviation is minor and still readable, but a name like get_page_metadata would have been more consistent.
Four tools is well-scoped for a web-to-Markdown server, covering the core actions of reading, chunking, inspecting metadata, and converting raw HTML. Each tool earns its place without redundancy or excess.
The surface covers fetching content, chunking for RAG, extracting metadata, and converting provided HTML. A minor gap is the absence of a way to fetch raw HTML from a URL for use with convert_html, but the core read/convert workflows are well supported.
Maintenance
Related MCP Connectors
Turn any webpage into clean Markdown for LLM/agent pipelines. Free tier; paid 1 USDC = 1000 req.
Cloud scraping & crawling API for AI agents. Turn any URL into clean, LLM-ready markdown.
Read any public web page as clean Markdown for LLMs. Respects robots.txt. Free tier; x402 paid API.
Web pages as Markdown, site maps and crawls, AI data extraction and screenshots.
Related MCP Servers
- AlicenseAqualityDmaintenanceConverts URLs and raw HTML to clean Markdown, enabling AI assistants to read web pages for summarization, analysis, or ingestion.27 npm1MIT
- AlicenseNot gradedqualityCmaintenanceEnables converting any URL or website into clean, LLM-ready Markdown, supporting single-page scraping and full-site crawling for AI agents.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI editors and agents to read public web pages as clean Markdown and convert URLs, HTML, or Markdown into PDF, Word, Markdown, HTML, or JSON documents.MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI agents and LLM pipelines to fetch and crawl web pages, extract readable content, and convert it into clean Markdown with preserved links while minimizing token usage.MIT