Convert Markdown into WhatsApp formatting: tables drawn to fit the phone's monospace width.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Convert standard Markdown into WhatsApp's formatting syntax β as a web page, an npm library, a command line tool or an MCP server for agents.
npm i markdown-to-whatsapp Β· npx markdown-to-whatsapp mcp
WhatsApp uses a non-standard syntax for text formatting (e.g., *bold*, _italic_, ~strikethrough~). This is similar, but not identical, to standard Markdown.
This tool provides a simple way to convert text from Markdown sources (like text editors, Google Docs, etc.) into the format that WhatsApp expects, saving the need for manual correction.
The entire conversion process runs locally in your browser using JavaScript, and the parser ships with the page. No data is ever sent to a server β the only request that leaves the page is for the font.
The script uses the marked library for proper AST-based parsing and handles:
**text** β *text**text* or _text_ β _text_~~text~~ β ~text~`code` β `code`***text*** β _*text*_ (preserves both styles)Headings are converted to bold text with level-specific emoji prefixes:
# H1 β *π H1*## H2 β *π H2*### H3 β *π‘ H3*The emoji prefix can be turned off in the UI (Headings Β· Emoji), leaving plain *Title*.
* prefix with β¦ for nested levels
* Item* ⦠Item* ⦠⦠Item⦠marking nested levels
1. A / β¦ 1. A1 / β¦ β¦ 1. A1a / 2. B- [x] β β, - [ ] β β, also inside ordered lists (1. β done)A WhatsApp bubble fits a fixed number of monospace characters on one line β about 26 on a 360 px phone, which is the default. Measure yours by sending yourself a code block and counting where it breaks, then set Width in the bar to that (the ? next to it says the same). The field accepts 10 to 80: no phone is outside that range.
The number is a property of the phone, not of any one table, so it governs everything monospace: tables degrade to stay under it, and the preview draws every code block exactly that wide, wrapping where the recipient's WhatsApp will wrap.
A table is rendered in one of two styles, chosen in the UI for the whole document or for one table at a time:
Auto (default): a drawn table inside a monospace block, as wide as it needs and never wider than the bubble β and the bulleted list when no box can be drawn at all.
List: always the bulleted list.
How the list is laid out
A list can group the cells in three ways. The converter guesses from the headers and the bold cells, and the guess can be overridden per table (Layout: Auto Β· Rows Β· Columns Β· Pairs):
Pairs β 2 columns, whatever the headers: each row is a key: value line. Spelling the headers out on every row reads worse than Italy: Rome in nearly every table.
Columns β 3+ columns whose first header is empty or names a property ("Feature", "Spec", "Parameter"β¦), or whose first column is bold: a comparison matrix, where the things compared are the columns, so each column becomes a group.
Rows β everything else: one group per row, labelled by its first cell.
The property words are matched word by word ("Species" does not count as "spec") in 11 languages: English, Italian, Spanish, French, Portuguese, German, Russian, Arabic, Hindi, Bengali, and Indonesian. Pairs need exactly two columns; asked for on a wider table, it reads as Rows.
How the box degrades
The box is not drawn at any width: it degrades until it fits monoWidth, and becomes a list when nothing does. There is no way to ask for a table wider than the bubble.
Whether a tall wrapped box reads better than the list is a judgement the preview lets you make: that table's own panel switches it to List. A table that cannot fit any box says so in its panel and offers the list layout instead of a style that could not change anything.
Additional table behaviour
β
, ζ₯ζ¬θͺ count as two columns) β as far as the phone allows: those glyphs come from a fallback font too, so the alignment is best effort, unlike the ASCII borders.:---, :---:, ---:) is honoured in the box and compact styles.<br> inside a cell becomes a space, and an escaped \| becomes Β¦ so it cannot fake an extra column.+-|=), on purpose. WhatsApp's monospace font has no box-drawing glyphs: a phone takes β and β from whatever fallback font it has, at whatever width that font gives them, and a rule of 26 of them wraps onto two lines while the text rows next to it do not. +-| are the only characters whose width a monospace font actually promises β which is also why the escaped pipe becomes Β¦, a Latin-1 character from the same font as Γ .Fenced and indented blocks reach WhatsApp verbatim: the converter never re-wraps or re-indents them, since a line break inside code is content, not layout. WhatsApp wraps long lines by itself, mid-word, and a chat bubble has no horizontal scroll β so the preview reproduces that wrap at monoWidth instead of scrolling, and shows exactly where the recipient will see the break.
[text](url) β text (url); autolinks, <https://x>, [url](url) and <me@x.com> render as the bare URL or address (no duplication, no mailto: leak)café β cafΓ©, © β Β©, A β A). Rarer references (Greek, mathematical) are left as written.<b>/<strong> β *, <i>/<em> β _, <s>/<del> β ~, <code> β `, <br> β newline; comments and other tags are stripped> prefix, supports nesting (> > nested)ΛΛΛ so it cannot close the block early--- β ββββββββββββββββ, οΌΏ, βΌ) so WhatsApp won't interpret them as formattingNo reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/markdown-to-whatsapp)<a href="https://allmcps.com/mcp/markdown-to-whatsapp"><img src="https://allmcps.com/api/badge/markdown-to-whatsapp?style=directory" alt="Markdown To Whatsapp on AllMCPs" /></a>