markd-mcp
A server that extracts clean Markdown from web pages using headless Chrome, reducing token usage by up to 90% for AI tools like Claude.
README
Markd MCP Server
An official Model Context Protocol (MCP) server that brings Markd straight into your AI coding workflow.
🚀 Why this exists: stop burning context tokens
Ask an AI like Claude or GPT-4 to read a webpage, and it usually ends up chewing through raw HTML. That raw HTML can easily run 25,000 to 30,000 tokens once you count inline styles, tracking scripts, and bloated DOM markup.
Markd fixes that. It spins up a headless Chrome browser (via Puppeteer) in the background, fully renders the page (JavaScript included), and pulls out just the real content using Mozilla Readability and Turndown.
That same article, converted to clean Markdown, comes out to around 2,000 to 2,500 tokens. That's roughly a 90% drop in token usage every time your AI pulls something off the web. Faster responses, cheaper API bills, and a lot less noise clogging up the context window.
🛠️ What it gives your AI
One tool, does the job well:
extract_markdown- Input:
{ url: "string" } - What it does: fetches the URL, renders it fully, and hands back the main article as clean Markdown.
- Input:
🌍 How to Use (NPM Package)
The fastest and most reliable way to use Markd-MCP across any machine (Windows, Mac, Linux) is to install it globally. This guarantees the headless Chrome browser is installed properly and makes the tool instant for your AI.
1. Install Globally
Open your terminal and run:
npm install -g markd-mcp
2. Add to Claude Code
Add this to your claude.json (or use claude mcp add):
{
"mcpServers": {
"markd-mcp": {
"command": "markd-mcp",
"args": []
}
}
}
💻 Running it locally (For Developers)
If you want to modify the code or run it from source.
1. Install
git clone https://github.com/mayankfulwariya/markd-mcp.git
cd markd-mcp
npm install
npx puppeteer browsers install chrome
2. Point your AI client at it
Claude Code
Add this to your claude.json, or use the claude mcp add command:
{
"mcpServers": {
"markd-mcp": {
"command": "node",
"args": ["/absolute/path/to/markd-mcp/src/index.js"]
}
}
}
Claude Desktop
Same snippet, different file:
- Mac:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Just swap in the real path to wherever you cloned the repo.
Under the hood
- Puppeteer – renders JS-heavy sites (React, Next.js docs, that kind of thing) fully before anything gets extracted.
- Mozilla Readability – the same engine behind Firefox's Reader View. Strips out sidebars, headers, footers, ads, all the junk.
- Turndown – turns the clean HTML into proper Markdown.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.