md-viewer
Minimalist editorial Markdown studio & reader with native Mermaid diagrams, KaTeX math formulas, password-protected sharing, and Model Context Protocol (MCP) support.
Install / Use
claude mcp add ekacahya21 -- npx -y github:ekacahya21/md-viewerIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
Content & MediaSupported Platforms
Our assessment of md-viewer
md-viewer scores 78/100 on our quality scale, 1052nd of 1,181 Content & Media skills we index.
Its MCP Server is 4.8 KB long, well organised into 27 sections with 9 code examples: a solid amount of guidance for an agent.
It has 3 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated 8 days ago, so md-viewer is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 92/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
md-viewer compared with similar skills
All 4 of these similar skills score higher than md-viewer; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| md-viewer (this skill)by ekacahya21 | 78 | 3 | 8d ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 100.1k | today | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 76.5k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.5k | today | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 88.8k | 1d ago | MCP Server |
Frequently asked questions
- How do I install md-viewer?
- Run
claude mcp add ekacahya21 -- npx -y github:ekacahya21/md-viewer. The install tabs above show the steps for each supported agent. - Which AI agents does md-viewer work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is md-viewer safe to use?
- It is MIT-licensed and scores 92/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is md-viewer still maintained?
- The repository was last updated 8 days ago, so md-viewer is actively maintained.
Skill content
View source on GitHubMD Viewer
A minimalist Markdown editor and reader with native math, Mermaid diagrams, and instant zero-account link sharing.

Features
- Reader & Split Views: Seamlessly switch between reading mode, distraction-free editing, and synchronized split view.
- Math & Diagrams: Native rendering for KaTeX LaTeX formulas (
$...$and$$...$$) and Mermaid diagrams (flowcharts, sequence, state, ER, class, Gantt). - Zero-Account Sharing: Generate a short link (
/s/:id) with an optional QR code in one click. No registration required. - Re-publish Shared Docs: Authors receive an edit token saved locally in the browser/CLI, allowing you to update a shared document without changing its URL.
- Multi-Format Export: Export clean print-formatted PDFs, standalone offline HTML files, or raw Markdown.
- Themes: Paper (light), Charcoal (dark), and Sepia.
- Command Palette: Press
Cmd+K/Ctrl+Kfor fast navigation, theme switching, and actions. - Terminal CLI (
mdv): Publish and update documents directly from your terminal or shell pipelines. - Model Context Protocol (MCP): Built-in stdio MCP server for Claude Desktop, Cursor, and other AI coding assistants.
Quickstart
Prerequisites
- Node.js 22.5+ (uses native
node:sqlite) - npm or pnpm
Development
git clone https://github.com/ekacahya21/md-viewer.git
cd md-viewer
npm install
npm run dev
Open http://localhost:5173 in your browser.
Production Build
npm run build
node server.mjs
Docker & Self-Hosting
A production-ready multi-stage Dockerfile is included:
# Build Docker image
docker build -t md-viewer .
# Run with persistent SQLite data directory
docker run -d \
--name md-viewer \
-p 3015:80 \
-v $(pwd)/data:/data \
--restart unless-stopped \
md-viewer
Command Line Tool (mdv)
mdv lets you publish markdown files or piped output directly from your terminal.
Installation
curl -fsSL https://md-viewer.e21.dev/install.sh | bash
Usage
# Publish a local file (title auto-detected from first heading)
mdv README.md
# Publish with custom title and expiration
mdv notes.md -t "Project Roadmap" -e 7d
# Pipe from standard input
cat draft.md | mdv
git diff | mdv -t "Current Diff"
# Update an existing document using your saved edit token
mdv -u abc1234 updated.md
# List your recent uploads
mdv --list
Model Context Protocol (MCP)
mdv includes a built-in MCP server that allows AI assistants to publish, read, and update shared Markdown documents.
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"md-viewer": {
"command": "mdv",
"args": ["--mcp"]
}
}
}
Cursor
Add to .cursor/mcp.json in your workspace:
{
"mcpServers": {
"md-viewer": {
"command": "mdv",
"args": ["--mcp"]
}
}
}
Run mdv mcp config in your terminal for system-specific path suggestions.
Configuration
Copy .env.example to .env to customize settings:
cp .env.example .env
| Variable | Default | Description |
| :--- | :--- | :--- |
| PORT | 80 | Port for the Node.js production server |
| DB_PATH | /data/shared_docs.db | Path to the SQLite database file |
| VIEW_SALT | md-viewer-view-salt-2026 | Salt used to hash visitor IP for view deduplication |
| GOOGLE_SITE_VERIFICATION | "" | Optional Google Search Console verification meta tag |
| LOCAL_LLM_HOST | http://127.0.0.1:20128/v1 | Optional OpenAI-compatible endpoint for AI summary |
| LOCAL_LLM_KEY | "" | Optional API key for LLM endpoint |
| LOCAL_LLM_MODEL | ag/gemini-3.7-flash-low | LLM model name for document summarization |
Testing
# Run unit and integration tests (Node 22 test runner)
npm test
# Run linter
npm run lint
# Run type check
npx tsc --noEmit
Contributing
Contributions are welcome. Please see CONTRIBUTING.md for details on development workflow and coding standards.
License
This project is open source and available under the MIT License.
Related Skills
Agent-Reach
100.1kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
76.5kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
CowAgent
47.5kOpen-source personal AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Scrapling
88.8k🕷️ A Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
