jfernandez/mdserve
jfernandez/mdserve · 420 stars · 1 plugin
Marketplace [Archived] Markdown preview server for AI coding agents.
Install
/plugin marketplace add jfernandez/mdserveRun inside Claude Code, then install plugins from it. Check the repo's README before you run it.
Plugins 1
After adding the marketplace, install one with /plugin install <name>@mdserve.
- 1mdserve
/plugin install mdserve@mdserve
Files
mdserve
Important
This project is archived and no longer maintained (September 2026).
mdserve was built to give humans a live rendered view of the markdown that AI coding agents produce. Two things have changed since. Agent CLIs now ship their own rendering, such as Artifacts in Claude Code, and agents are outgrowing markdown and reaching for HTML when they want to show something. The gap mdserve filled has closed.
The code stays available under the MIT license. The v1.1.0 release and the existing packages on crates.io, Homebrew, Arch and nixpkgs will keep working, but there will be no further releases, bug fixes, or security updates. Forks are welcome.
Markdown preview server for AI coding agents.
Follow along as your AI agent writes markdown, rendered live in the browser instead of raw text in the terminal.
Features
Zero config. mdserve file.md just works. No config files, no flags
required, no setup steps.
Single binary. One statically-compiled executable. Install it and forget about it. No runtime dependencies to manage.
Instant live reload. File changes appear in the browser immediately via WebSocket. This is the core interaction: an agent writes, a human reads.
Ephemeral sessions. Start it during a coding session, kill it when you're done. mdserve is not a long-running server and doesn't need to be.
Agent-friendly content. Full GFM support (tables, task lists, code blocks), Mermaid diagrams, and directory mode with sidebar navigation - the kinds of content AI coding agents actually produce.
What mdserve is not
- Not a documentation site generator. Use mdBook, Docusaurus, or MkDocs for that.
- Not a static site server or something you deploy to production.
- Not a general-purpose markdown authoring tool with heavy customization for manual writing workflows.
Installation
macOS (Homebrew)
brew install mdserve
Linux
curl -sSfL https://raw.githubusercontent.com/jfernandez/mdserve/main/install.sh | bash
This will automatically detect your platform and install the latest binary to your system.
Alternative Methods
Using Cargo
cargo install mdserve
Arch Linux
sudo pacman -S mdserve
Nix Package Manager
nix profile install github:jfernandez/mdserve
From Source
git clone https://github.com/jfernandez/mdserve.git cd mdserve cargo build --release cp target/release/mdserve <folder in your PATH>
Manual Download
Download the appropriate binary for your platform from the latest release.
Claude Code Plugin
mdserve includes a Claude Code plugin that teaches the agent when and how to launch markdown previews during coding sessions. With the plugin installed, Claude Code will automatically serve markdown files when the content benefits from rendered presentation (tables, diagrams, long documents) and skip the preview for short responses that read fine in the terminal.
Install the plugin
In Claude Code, run:
/plugin install mdserve@mdserve
This installs to user scope by default (available across all projects). To install at a different scope:
/plugin install mdserve@mdserve --scope project # for all collaborators
/plugin install mdserve@mdserve --scope local # for yourself in this repo
Note: The
mdservebinary must also be installed on your system (see Installation above).
Usage
Basic Usage
# Serve a single markdown file on default port (3000) mdserve README.md # Serve all markdown files in a directory mdserve docs/ # Serve on custom port mdserve README.md --port 8080 mdserve docs/ -p 8080 # Serve on custom hostname and port mdserve README.md --hostname 0.0.0.0 --port 8080 # Open in browser automatically mdserve README.md --open
Single-File vs Directory Mode
Single-File Mode: When you pass a file path, mdserve serves that specific markdown file with a clean, focused view.
Directory Mode: When you pass a directory path, mdserve automatically:
- Scans and serves all
.mdand.markdownfiles in that directory - Displays a navigation sidebar for easy switching between files
- Watches for new markdown files added to the directory
- Only monitors the immediate directory (non-recursive)
Themes
Five built-in themes (light, dark, and Catppuccin variants) accessible from the theme picker in the top-right corner. Your choice persists across sessions.
Documentation
For detailed information about mdserve's internal architecture, design decisions, and how it works under the hood, see Architecture Documentation.
Development
Prerequisites
- Rust 1.85+ (2024 edition)
Building
cargo build --release
Running Tests
# Run all tests cargo test # Run integration tests only cargo test --test integration_test
Contributing
Contributions should enhance the agent-companion workflow. The best PRs improve rendering of content that agents produce (code blocks, diagrams, tables, math), make live reload more robust, or refine the zero-config experience. Features that push mdserve toward being a documentation platform or a configurable server are out of scope.
We use conventional commits (feat:,
fix:, chore:, etc.). All commits are automatically validated against this
format in CI. See CONTRIBUTING.md for details.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- Built with Axum web framework
- Markdown parsing by markdown-rs
- Catppuccin color themes
- Inspired by various markdown preview tools
{
"name": "mdserve",
"owner": {
"name": "Jose Fernandez"
},
"plugins": [
{
"name": "mdserve",
"source": "./"
}
]
}Facts
- Kind
- Marketplace
- Repo
- jfernandez/mdserve
- Group
- Uncategorized
- Stars
- 420
- Marketplace name
- mdserve
- Owner
- Jose Fernandez
- License
- MIT
- Language
- Rust
- Created
- 2025-09-22
- Last push
- 2026-09-11
- Forks
- 55
- Plugins
- 1
Next on this shelf
- 216aws-solutions-library-samples/guidance-for-claude-code-with-amazon-bedrockaws-solutions-library-samples/guidance-for-claude-code-with-amazon-bedrockThis Guidance demonstrates how organizations can implement secure enterprise authentication for Amazon Bedrock using industry-standard protocols and AWS services412
- 217dcramer/dexsyntaxfm/dexTask tracking for Agents411
- 218Context-Engine-AI/Context-EngineContext-Engine-AI/Context-EngineContext-Engine MCP - Agentic Context Compression Suite401
- 219humanplane/homunculushumanplane/homunculusA Claude Code plugin that watches how you work, learns your patterns, and evolves itself to help you better.399
- 220AlexGladkov/claude-in-mobileAlexGladkov/claude-in-mobileMCP server for mobile and desktop automation — Android (via ADB), iOS Simulator (via simctl), and Desktop (Compose Multiplatform). Like Claude in Chrome but for mobile devices and desktop apps385
- 221zxkane/aws-skillszxkane/aws-skillsClaude Code plugins and agent skills for AWS development — IaC(CDK/SST), serverless, cost ops, and Bedrock AgentCore379

