Web2MD MCP server for converting web pages to Markdown

Web2MD MCP server for converting web pages to Markdown

web2md•byio-oi-ai

An MCP server that exposes 12 tools to MCP clients for converting pages and files to Markdown, running semantic search, and syncing a library.

License: MIT•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Exposes a set of 12 tools to any MCP client, covering URL and file conversion, semantic search, conversion retrieval, agents, skills and library operations.
  • •bridge_convert_url reads pages through the user's own signed-in Chrome session, reaching pages behind logins or heavy JavaScript that server-side fetches cannot.
  • •agent_batch_convert accepts up to 50 URLs in one call and returns Markdown with token counts for each.
  • •convert_url works without an account, while library and hosted API tools need a free key.

BEST FOR

  • •Agents that need to read web pages requiring a login or heavy JavaScript rendering.
  • •Batch converting many URLs to Markdown with token counts in a single call.
  • •Searching and syncing a personal library of converted pages from an MCP client.

ABOUT WEB2MD

Web2MD MCP server for converting web pages to Markdown is cataloged as an MCP server attributed to io-oi-ai. An MCP server that exposes 12 tools to MCP clients for converting pages and files to Markdown, running semantic search, and syncing a library. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Web2MD MCP server for converting web pages to Markdown are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does the MCP server require an account or API key?

convert_url works without an account; tools that touch the library or hosted API need a free key, which the setup command can handle or you can set yourself.

Upstream README

View this exact version on GitHub

README.md · 1310446f7b95 · Fetched 2026-11-13 11:42:59 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Web2MD — open source

Two packages live here, both MIT:

PackageWhat it isInstall
web2md-coreThe HTML → Markdown engine. Pure library, no network.npm install web2md-core
web2md-mcp-serverMCP server so Claude Code, Cursor, and other agents can convert pages.npx web2md-mcp-server

Both are extracted from Web2MD, a Chrome extension that converts web pages to Markdown for AI tools.


web2md-mcp-server

An MCP server exposing 12 tools to any MCP client — Claude Code, Claude Desktop, Cursor, Cline, and others.

npx -p web2md-mcp-server web2md-mcp-setup

That writes the config for your client and, if a tool needs an account, opens the browser for OAuth — no password is typed anywhere.

Or configure it by hand (the binary is web2md-mcp):

{
  "mcpServers": {
    "web2md": { "command": "npx", "args": ["-y", "-p", "web2md-mcp-server", "web2md-mcp"] }
  }
}

Tools: convert_url, convert_file, semantic_search, get_conversion, bridge_convert_url, agent_convert, agent_batch_convert, list_skills, get_skill, search_library, get_library_items, sync_library.

Two of these are worth calling out:

  • bridge_convert_url connects to your own signed-in Chrome session, so an agent can read pages that need a login or run heavy JavaScript — the ones a server-side fetch gets a login wall or an empty shell for.
  • agent_batch_convert takes up to 50 URLs in one call and returns Markdown plus token counts for each.

convert_url works without an account. Tools that touch your library or the hosted API need a free key — the setup command above handles that, or set WEB2MD_API_KEY yourself.


web2md-core

Turn messy HTML into clean, LLM-ready Markdown.

This is the extraction and conversion engine behind Web2MD. It is a pure library — give it an HTML string, get Markdown back. No network calls, no API key, no account. Nothing in this package talks to a server.

npm install web2md-core

Why convert at all

Feeding raw HTML to a language model wastes most of your context window on markup, navigation, and ads. Converting first cuts that down and gives the model a document it can actually follow.

The library reports both numbers so you can see the difference:

import { convertToMarkdown } from 'web2md-core'

const result = convertToMarkdown(html, { url: 'https://example.com/post' })

console.log(result.markdown)
console.log(result.metadata.originalTokenCount, '→', result.metadata.tokenCount)
// e.g. 417 → 281

convertToMarkdown returns null when it cannot find a main content block — check for that rather than assuming a result.

What it does

  • Finds the actual article. Strips navigation, sidebars, ads, cookie banners, and footers, keeping the content a reader came for.
  • Preserves structure. Headings, lists, tables, and fenced code blocks survive the round trip — that structure is what lets a model answer questions about one specific section.
  • Reports tokens. Estimated counts for both the original HTML and the cleaned Markdown, plus helpers to split or trim for a target context window.
  • Runs anywhere. Uses linkedom for parsing, so it works in Node without a browser.

API

convertToMarkdown(html, options?)

The main entry point. Note the signature takes two arguments — the URL goes inside options, not as a positional parameter:

convertToMarkdown(html, { url: 'https://example.com/post' })
OptionDefaultMeaning
url—Source URL. Used to resolve relative links and fill metadata.url.
includeLinksfalseKeep <a> as Markdown links. Off by default because link URLs are often the bulk of the tokens on navigation-heavy pages.
includeImagesfalseKeep images. Off by default for the same reason.
includeMetafalsePrepend a metadata block (title, source, timestamp).
customRule—A CustomRule for site-specific extraction.
detectCodeLanguagefalseTry to infer the language of fenced code blocks.

includeLinks and includeImages default to off. That is deliberate — the primary use case is feeding an LLM, where both are usually noise. Turn them on when you are archiving rather than summarising.

Other exports

quickConvert(html, url?)        // same result, but with links, images and
                                // metadata turned ON — the "archive it" preset
extractContent(html, url?)      // main content element, before conversion
htmlToMarkdown(html, options?)  // low-level conversion, no extraction
countTokens(text)               // token estimate
splitByTokens(md, limit)        // chunk for RAG ingestion
optimizeForContextWindow(md, model)
htmlLooksLikeLoginWall(html)    // detect login walls so you can fail loudly
MODEL_CONTEXT_LIMITS            // context sizes for common models

Markdown → sanitized HTML (via DOMPurify), for previewing output:

renderMarkdownSync(md)
renderMarkdownFull(md)          // async; includes syntax highlighting
renderMarkdownWithFormulas(md)  // KaTeX math

getPageHTML() and getSelectionHTML() read document directly and therefore only work in a browser. They throw in Node — that boundary is intentional.

Site-specific extraction

Generic extraction handles most pages. When a site needs special treatment, pass a rule:

convertToMarkdown(html, {
  url: 'https://example.com/thread',
  customRule: {
    name: 'Example forum',
    domain: 'example.com',
    contentSelector: '.thread-body',
    removeSelectors: ['.signature', '.ad-slot'],
  },
})

Scope

This package covers extraction and conversion. It does not include Web2MD's browser extension, hosted API, or account system — those stay in the product.

Contributions to extraction quality are especially welcome: if a site converts badly, an issue with the URL and what went wrong is genuinely useful.

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Web2MD MCP server for converting web pages to Markdown from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/web2md)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools