Word to Markdown
Lets your AI agent convert Word (.docx) documents on your computer into clean Markdown.
270 stars on GitHubby Ben BalterLicense Apache-2.0Updated 20 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add word-to-markdown -- npx -y word-to-markdown mcp
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Convert /Users/me/report.docx to Markdown and summarize it.
Convert this contract to a .md file and extract the images to a folder.
What it is
This server has one tool that reads a .docx file from your disk and returns it as Markdown, locally, without uploading anything. It keeps headings, lists, tables, links, footnotes and equations. It is also a command-line tool and a Node library.
What it can do
convert_docx_to_markdown: convert a .docx file to Markdown- Write the result to a .md file with output_path
- Extract images to a folder with image_dir
- Options for bullet lists and footnotes
When to use
- βΊWhen you want an agent to read a Word report and work with its text
- βΊWhen you need to turn a long contract or paper into Markdown for editing
- βΊWhen you want images from a document pulled out into files
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
convert-word-to-mdConverts Word documents into plain text (Markdown) for analysis. Makes it easy to read, summarize, or extract data from .docx files.md-to-docxLets your agent convert Markdown files into Word (.docx) documents. It creates well-formatted documents with images included.markitdownHelps your agent convert PDFs, Word and PowerPoint files, spreadsheets, images, and other formats into clean Markdown text.Frequently asked questions
Is it free?
Yes. It is an open source package on npm with a license shown in the readme badges.
Are my documents uploaded?
No. The server reads and converts the file locally.
What does it keep?
Paragraphs, headings, bold and italic, lists, tables, links, footnotes, images and equations (as LaTeX).
What is dropped?
Comments, headers and footers are dropped, underline is dropped by default, and text boxes without a Word fallback are dropped. Warnings report some of these.
Does it overwrite files?
Not by default. The overwrite option is off, so the tool refuses to replace an existing file.
Does it handle old .doc files?
No. Only .docx is supported; re-save older files as .docx first.
If it does not work
- βΊUse an absolute path for the .docx file because relative paths use the server's working directory.
- βΊIf it fails, check that the file is a valid .docx and not an older .doc.
- βΊCheck that your Node.js is version 22.13 or newer.
5 new skills a week. 1 minute to read.