Render markdown into email-safe HTML
claude mcp add emailmd -- npx -y emailmd{
"mcpServers": {
"emailmd": {
"command": "npx",
"args": ["-y", "emailmd"]
}
}
}MCP Servers overview
# emailmd
### Write markdown. Ship emails. No HTMHELL.
emailmd converts markdown into responsive, email-safe HTML that works across Gmail, Outlook, Apple Mail, Yahoo, and every other client.

## Install
```bash
npm install emailmd
```
## Quick Start
```typescript
import { render } from "emailmd";
const { html, text } = await render(`
# Welcome!
Thanks for signing up.
[Get Started](https://example.com){button}
`);
// html → complete email-safe HTML
// text → plain text version for text/plain MIME part
```
> **v0.3.0 migration:** `render()` is now async. Update calls from `render(md)` to `await render(md)`. Requires Node 20+ (MJML 5).
## CLI
emailmd also ships with a command-line interface.
```bash
# Render to HTML
emailmd input.md
# Write to file
emailmd input.md -o output.html
# Plain text output
emailmd input.md --text
# Pipe from another command
echo "# Hello" | emailmd
```
Run `emailmd --help` for all options.
## React
[`@emailmd/react`](https://www.emailmd.dev/docs/react) provides a live-preview hook (`useEmailmd`), an `<EmailPreview />` iframe component, and `<EmailmdBuilder />` — the full [builder](https://www.emailmd.dev/builder) as a drop-in component for your own app.
```bash
npm install @emailmd/react emailmd
```
## Learn More
- [Docs](https://www.emailmd.dev/docs) — full syntax reference, theming, frontmatter, directives, and API
- [Templates](https://www.emailmd.dev/templates) — ready-made email templates you can copy and customize
- [Builder](https://www.emailmd.dev/builder) — live editor to write and preview emails in your browser
## MCP
emailmd ships a [Model Context Protocol](https://modelcontextprotocol.io) server, so an AI assistant can render, lint, and preview emails for you. It exposes three tools — `render` (markdown to email-safe HTML), `lint` (flag deliverability problems without rendering), and `read_docs` (look up emailmd syntax) — over either transport:
```bash
# Hosted (Streamable HTTP)
https://www.emailmd.dev/api/mcp
# Or run it locally over stdio
npx emailmd mcp
```
Published to the official MCP registry as `dev.emailmd/emailmd`. See the [MCP docs](https://www.emailmd.dev/docs/mcp) for per-client setup.
## AI
Prefer plain context over tools? emailmd is just markdown, so AI is great at writing templates. Feed the full docs to your AI tool:
```
https://www.emailmd.dev/llms-full.txt
```
## Contributing
Contributions are welcome! Feel free to open an [issue](https://github.com/anypost/emailmd/issues) or submit a [pull request](https://github.com/anypost/emailmd/pulls).
> emailmd is under active development. The API may change between minor versions until we hit 1.0 — breaking changes are always called out in the changelog. See [Stability & Versioning](https://www.emailmd.dev/docs/stability) for what the semver contract covers.
## Acknowledgements
- Built with [MJML](https://mjml.io) under the hood
- Sponsored by [Anypost](https://anypost.com/)
## License
MIT
What people ask about emailmd
What is anypost/emailmd?
+
anypost/emailmd is mcp servers for the Claude AI ecosystem. Render markdown into email-safe HTML It has 1.3k GitHub stars and was last updated today.
How do I install emailmd?
+
You can install emailmd by cloning the repository (https://github.com/anypost/emailmd) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is anypost/emailmd safe to use?
+
anypost/emailmd has not been audited yet by our security agent. Review the original repository on GitHub before using it in production.
Who maintains anypost/emailmd?
+
anypost/emailmd is maintained by anypost. The last recorded GitHub activity is from today, with 0 open issues.
Are there alternatives to emailmd?
+
Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.
Deploy emailmd to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/anypost-emailmd)<a href="https://claudewave.com/repo/anypost-emailmd"><img src="https://claudewave.com/api/badge/anypost-emailmd" alt="Featured on ClaudeWave: anypost/emailmd" width="320" height="64" /></a>More MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
The fastest path to AI-powered full stack observability, even for lean teams.
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface