Markdown For Agents MCP logo

Markdown For Agents MCP

Fetches JavaScript-rendered pages with Playwright and returns clean, compact markdown through MCP tools.

Install Markdown For Agents MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "markdown-for-agents-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "markdown-for-agents-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y markdown-for-agents-mcp

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

markdown-for-agents-mcp uses Playwright and Chromium to fetch URLs after JavaScript execution, then converts the rendered page into compact markdown. It is suited to React, Vue, Angular, single-page applications, lazy-loaded content, and other pages that plain HTTP fetchers may not fully capture. Available tools cover single and batch URL fetching, DuckDuckGo search, file downloads, and health metrics. Use it when an agent needs readable web content rather than raw HTML, especially across dynamic pages.

Use cases

  • Fetch JavaScript-rendered documentation pages
  • Convert SPA routes into agent-readable markdown
  • Search DuckDuckGo and fetch selected results
  • Batch-fetch several web pages concurrently
  • Inspect fetch and cache health metrics

Key features

  • Playwright-powered Chromium rendering
  • Main-content extraction and markdown conversion
  • Concurrent multi-URL fetching
  • DuckDuckGo search with optional page fetching
  • LRU caching and domain filtering
  • Stdio and Streamable HTTP transports

Tools2

What Markdown For Agents MCP lets your agent do. Expand a tool for its parameters.

Self-reported~22 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

6/6 checks healthy over the last 22d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 5d ago via OSV.dev · markdown-for-agents-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads136Package downloads in the last 30 days.
Last commit3mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed2Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Markdown For Agents MCP works

What markdown-for-agents-mcp does

markdown-for-agents-mcp gives MCP clients access to browser-rendered web content. It launches Chromium through Playwright, waits for the page to render, identifies the main content area, removes common boilerplate, and converts the result to markdown for agent use. The extraction logic prioritizes elements such as main, article, and #content before falling back to the page body.

Rendering makes the server suitable for sites whose useful content is inserted by JavaScript, including React, Vue, Angular, single-page applications, lazy-loaded pages, and infinite-scroll pages. The output is designed to use fewer tokens than raw HTML; the project reports reductions of up to 80 percent in its benchmarks.

How it works

The primary fetch_url tool accepts a URL and an optional timeout in milliseconds. It returns markdown text and, for MCP SDK clients that support structuredContent, fields such as the source URL, page title, fetched timestamp, markdown, and content size.

fetch_urls accepts an array of URLs and processes them concurrently. Each result includes success information and the combined response contains a summary of successful and failed fetches. The default maximum parallelism is five and can be adjusted with MAX_CONCURRENT_FETCHES.

web_search queries DuckDuckGo over a plain HTTP endpoint. It can return search results alone or fetch and convert the top result pages through Playwright. Search requests support result limits, domain allowlists, domain blocklists, and a timeout. Other available tools include download_file for downloading files and health_check for exposing cache and fetch metrics.

A 50 MB in-memory LRU cache with a 15-minute TTL can avoid repeated fetches. Domain filtering includes a built-in blocklist for tracker and social domains, with request-level allow and block lists and a server-level allowlist mode. Browser traffic can be routed through a proxy, and browser identification includes user-agent rotation and webdriver spoofing.

Setup and configuration

Install the package globally with npm and use the markdown-mcp command, or run it through npx:

Terminal
npm install -g markdown-for-agents-mcp
npx markdown-for-agents-mcp

Chromium is downloaded automatically by the package's postinstall process. The server runs over stdio by default, so an MCP client can launch it with the markdown-mcp command or a local dist/index.js path.

It also supports Streamable HTTP mode. Start it on a selected port with markdown-mcp --http 3456 or set HTTP_PORT. MCP traffic uses /mcp. Set MCP_AUTH_TOKEN to require a bearer token on requests, and set PLAYWRIGHT_PROXY to route browser traffic through a proxy. FETCH_TIMEOUT_MS provides the default request timeout, while a tool-level timeout overrides it. LOG_LEVEL controls logging, and MAX_CONCURRENT_FETCHES controls batch-fetch parallelism.

Tools and capabilities

  • Fetch one JavaScript-rendered URL as clean markdown.
  • Fetch multiple URLs concurrently with per-request results and totals.
  • Search DuckDuckGo and optionally convert the top results to markdown.
  • Download files through the server's available download tool.
  • Inspect cache and fetch statistics with health_check.
  • Return text output plus typed structured content when supported by the MCP client.
  • Run through stdio or Streamable HTTP with optional bearer authentication.
  • Filter domains, cache repeated requests, and use a Playwright proxy.

Limitations and notes

Search itself uses plain HTTP rather than Playwright; browser rendering applies when search results are optionally fetched. Structured output requires an MCP SDK 1.11 or newer client capability. Browser-based fetching requires Chromium, which the installation process normally downloads automatically. HTTP deployments should protect the endpoint with MCP_AUTH_TOKEN when bearer authentication is needed.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Markdown For Agents MCP

markdown-for-agents-mcp is an MCP server that connects AI agents to web pages through Playwright and Chromium. Its main tools fetch single or multiple URLs, render JavaScript-heavy sites, convert pages to compact markdown, search DuckDuckGo, download files, and expose fetch and cache health metrics.

Install it globally with `npm install -g markdown-for-agents-mcp`, then run `markdown-mcp`; alternatively, use `npx markdown-for-agents-mcp`. Chromium is downloaded automatically by the package's postinstall process.

Yes, markdown-for-agents-mcp works with Cursor through its MCP configuration. After installing globally, configure Cursor to launch the `markdown-mcp` command, or provide the path to a local `dist/index.js` build.

Call the `fetch_url` tool with a URL, and optionally provide `timeout` in milliseconds. The server renders the page in Chromium before extracting its main content and returning clean markdown.

Yes, use `fetch_urls` with a string array of URLs. Requests run concurrently, with parallelism controlled by `MAX_CONCURRENT_FETCHES`, which defaults to five; each result reports its status and the response includes totals.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMarkdown For Agents MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/markdown-for-agents-mcp?style=directory)](https://allmcps.com/mcp/markdown-for-agents-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/markdown-for-agents-mcp"><img src="https://allmcps.com/api/badge/markdown-for-agents-mcp?style=directory" alt="Markdown For Agents MCP on AllMCPs" /></a>