by zcaceres
Markdownify is a Model Context Protocol (MCP) server that converts various file types and web content to Markdown format, providing tools to transform PDFs, images, audio files, web pages, and more into easily readable and shareable Markdown text.
Markdownify-mcp is a Model Context Protocol (MCP) server designed to convert a wide array of content, including various file types and web content, into Markdown format. It acts as a central hub for transforming diverse information into a standardized, easily readable, and shareable text format.
To use Markdownify-mcp, you need to:
pnpm install
to set up all necessary packages, including Python dependencies via uv
.pnpm run build
to compile the TypeScript code.pnpm start
to launch the Markdownify-mcp server.For integration with a desktop application, configure your app's server settings to point to the dist/index.js
file and optionally set the UV_PATH
environment variable.
Markdownify-mcp offers a comprehensive set of features for content conversion:
MD_SHARE_DIR
).Markdownify-mcp can be used in various scenarios, including:
Q: What is MCP? A: MCP stands for Model Context Protocol, which is a protocol for servers that convert various types of content into a format suitable for AI models.
Q: Can I contribute to Markdownify-mcp? A: Yes, contributions are welcome. You can submit Pull Requests on the project's GitHub repository.
Q: Is there support for Windows? A: The project is seeking help from Windows users to add and test Windows support. Interested individuals can post on the designated GitHub issue.
Q: How can I restrict the directory for retrieving Markdown files?
A: You can set the MD_SHARE_DIR
environment variable when starting the server to restrict the directory from which files can be retrieved.
Help! I need someone with a Windows computer to help me add support for Markdownify-MCP on Windows. PRs exist but I cannot test them. Post here if interested.
Markdownify is a Model Context Protocol (MCP) server that converts various file types and web content to Markdown format. It provides a set of tools to transform PDFs, images, audio files, web pages, and more into easily readable and shareable Markdown text.
pnpm install
Note: this will also install uv
and related Python depdencies.
pnpm run build
pnpm start
pnpm run dev
to start the TypeScript compiler in watch modesrc/server.ts
to customize server behaviorsrc/tools.ts
To integrate this server with a desktop app, add the following to your app's server configuration:
{
"mcpServers": {
"markdownify": {
"command": "node",
"args": [
"{ABSOLUTE PATH TO FILE HERE}/dist/index.js"
],
"env": {
// By default, the server will use the default install location of `uv`
"UV_PATH": "/path/to/uv"
}
}
}
}
youtube-to-markdown
: Convert YouTube videos to Markdown
pdf-to-markdown
: Convert PDF files to Markdown
bing-search-to-markdown
: Convert Bing search results to Markdown
webpage-to-markdown
: Convert web pages to Markdown
image-to-markdown
: Convert images to Markdown with metadata
audio-to-markdown
: Convert audio files to Markdown with transcription
docx-to-markdown
: Convert DOCX files to Markdown
xlsx-to-markdown
: Convert XLSX files to Markdown
pptx-to-markdown
: Convert PPTX files to Markdown
get-markdown-file
: Retrieve an existing Markdown file. File extension must end with: *.md, *.markdown.
OPTIONAL: set MD_SHARE_DIR
env var to restrict the directory from which files can be retrieved, e.g. MD_SHARE_DIR=[SOME_PATH] pnpm run start
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
Reviews feature coming soon
Stay tuned for community discussions and feedback