# web2md [Health: Active]

**Category:** 🔎 Search & Data Extraction  
**Repository:** https://github.com/io-oi-ai/web2md  
**GitHub Stars:** 1  
**npm Downloads (last month):** 622  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/web2md

## Description
MCP Server for Web2MD — convert URLs to Markdown from Claude Desktop, Cursor, etc.

## Tools
Capabilities this server exposes over MCP:

- **convert_url** — Convert a public webpage to clean Markdown. START HERE for any URL — it needs no browser, no extension, and no setup. Returns Markdown plus metadata (title, word count, reading time). If the page needs your login session or renders only after JavaScript runs (Reddit, X, paywalled articles, internal dashboards), this returns a login wall or an empty shell — switch to agent_convert in that case.
- **convert_file** — Convert a local document file to clean Markdown. Supports Word (.docx/.doc), PowerPoint (.pptx/.ppt), Excel (.xlsx/.xls), OpenDocument (.odt/.ods/.odp), RTF, EPUB, CSV, and PDF. Tables, headings, lists and footnotes are preserved. Fast, fully local — the file never leaves the machine.
- **semantic_search** — [deprecated: use search_library/get_library_items] Search your saved conversions using natural language. Works across languages.
- **get_conversion** — [deprecated: use search_library/get_library_items] Retrieve the full Markdown content of a previously saved conversion by its ID.
- **bridge_convert_url** — FALLBACK for agent_convert when the native host is not installed. Same capability — reads the page through the user's signed-in Chrome — but it works by opening a browser tab, so it is visible and takes focus. Prefer agent_convert whenever the native host is available; use this one if agent_convert reports the host is missing, or on a machine where you cannot install it. Needs only the Web2MD extension installed and signed in; the extension is found automatically via the API key.
- **agent_convert** — Convert one URL through the user's own signed-in Chrome, reading the page exactly as they see it. USE THIS when convert_url hits a login wall or returns an empty shell — Reddit, X, paywalled articles, internal wikis, dashboards. Runs silently in the background over a local connection; it does not open or steal focus from any tab. Requires Chrome running with the Web2MD extension and the native host installed (npx -p web2md-mcp-server web2md-mcp-setup). For several URLs at once use agent_batch_convert; if the native host is not installed use bridge_convert_url.
- **agent_batch_convert** — The multi-URL form of agent_convert: up to 50 URLs in one call, each read through the user's signed-in Chrome. USE THIS instead of calling agent_convert in a loop — one call, one round trip, and each result carries its own token count. URLs are processed one after another, so a long list takes a while. Same requirements as agent_convert (Chrome + extension + native host).
- **list_skills** — List the skills saved in your Web2MD cloud account. Returns a compact list (id, name, description). Use get_skill to fetch the full SKILL.md body of one.
- **get_skill** — Fetch the full content of a single Web2MD skill by id (or name). Returns its name, description, and complete SKILL.md body. Use list_skills first to find ids.
- **search_library** — Search your Web2MD library (saved conversions) by keyword (matches title and full page content) and/or tag, newest first. Returns item metadata: id, title, url, date, tags. Use get_library_items to fetch full markdown.
- **get_library_items** — Fetch full markdown content for library items by id (max 20 per call). Use search_library first to find ids. Responses can be very large — for long pages, batch 5 or fewer ids per call.
- **sync_library** — Sync your Web2MD library to a local directory as markdown files (organized by tag, with frontmatter). Incremental by default; keeps state in <dir>/.web2md-sync.json.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

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

**Requires environment variables:** `WEB2MD_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What web2md does

web2md turns web and document content into Markdown that an MCP client can pass to an AI agent. Public pages can be fetched directly with `convert_url`, which returns Markdown and metadata such as the title, word count, and estimated reading time. Local files can be processed with `convert_file`, including Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, CSV, and PDF formats.

The server also connects agents to a Web2MD library. Agents can search saved conversions, retrieve their full Markdown, and synchronize the library to a local directory. Saved skills are available through separate listing and retrieval tools.

## How it works

For ordinary public webpages, start with `convert_url`. It requires no browser, extension, or account. Pages that depend on a login or JavaScript rendering may produce a login wall or an incomplete shell instead. In those cases, `agent_convert` reads the page through the user's signed-in Chrome session. The background mode requires Chrome, the Web2MD extension, and the native host installed with `npx -p web2md-mcp-server web2md-mcp-setup`.

`agent_batch_convert` applies the Chrome-based method to up to 50 URLs in one call. URLs are processed sequentially, and each result includes its own token count. `bridge_convert_url` provides a fallback when the native host is unavailable; it opens a visible browser tab and may take focus, so it is less suitable for unattended use.

Local conversion stays on the machine. Library and hosted-API operations require a Web2MD account key, while direct public URL conversion does not.

## Setup and configuration

Run the setup command to write the MCP client configuration and handle account authorization when a tool requires it:

```bash
npx -p web2md-mcp-server web2md-mcp-setup
```

The server binary is `web2md-mcp`. A manual stdio configuration can invoke it through `npx`:

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

Set `WEB2MD_API_KEY` when configuring access to the hosted API or library. The setup flow can instead open the browser for OAuth without entering a password into the MCP configuration.

## Tools and capabilities

- `convert_url`: Fetch a public webpage and return clean Markdown with page metadata.
- `convert_file`: Convert supported local office, ebook, text, and PDF files while preserving tables, headings, lists, and footnotes.
- `agent_convert` and `agent_batch_convert`: Read authenticated or JavaScript-rendered pages through Chrome, for one URL or up to 50 URLs.
- `bridge_convert_url`: Use the Chrome extension through a visible browser-tab fallback.
- `search_library` and `get_library_items`: Find saved conversions and retrieve their Markdown; retrieval supports up to 20 IDs per call.
- `sync_library`: Export saved conversions as tagged Markdown files with frontmatter and incremental sync state.
- `list_skills` and `get_skill`: Discover and retrieve Web2MD skills.

`semantic_search` and `get_conversion` remain exposed as deprecated library tools; new workflows should use the newer library search and retrieval tools.

## Limitations and notes

Direct URL conversion is intended for public pages and cannot use a user's login session. Authenticated or JavaScript-heavy sites need the Chrome route, along with its local browser prerequisites. The browser fallback is visible and takes focus. Batch browser conversion is sequential, so larger URL sets can take longer. Library responses containing long pages can be large; retrieving five or fewer IDs at a time is recommended for long content.

_Full upstream README: https://allmcps.com/mcp/web2md/readme_

