MCP connector
markdrop-mcp is a server for the Model Context Protocol (MCP), an open standard that lets apps use outside tools. Once you connect it to an MCP client, such as Claude Desktop or Claude Code, the client can convert files, whole folders, web pages and YouTube videos to Markdown on your computer.
Install
You need Python 3.10 or newer.
Download
markdrop_mcp-0.1.0-py3-none-any.whlfrom the latest release.Install it:
bashpip install markdrop_mcp-0.1.0-py3-none-any.whlThis adds the
markdrop-mcpcommand.
Connect it to a client
Claude Code
claude mcp add markdrop -- markdrop-mcp --root ~/your-folderReplace ~/your-folder with the folder whose files you want to convert.
Claude Desktop
Add an entry to claude_desktop_config.json and restart the app:
{
"mcpServers": {
"markdrop": {
"command": "markdrop-mcp",
"args": ["--root", "/home/you/Documents"]
}
}
}If the app cannot find markdrop-mcp, use its full path, which which markdrop-mcp prints.
Tools
| Tool | What it does |
|---|---|
convert_file | Converts a local file. Can save the result to output_path. |
convert_url | Converts a web page or a linked file. Can save to output_path. |
convert_to_markdown | Converts a file:, http:, https: or data: address. |
youtube_to_markdown | Gets a video's details and transcript, with include_timestamps for [hh:mm:ss] times. |
convert_directory | Converts every matching file in a folder, optionally filtered by glob, into .md files in output_dir, and returns a summary. |
list_supported_formats | Lists the formats it can convert and the folders it may read. |
You do not call these yourself. Ask the client in plain words, for example "convert the PDFs in my reports folder to Markdown", and it picks the tool.
Which folders it can read
markdrop-mcp only reads files inside allowed roots. By default these are the folder it was started in, ~/Documents and ~/Downloads.
- Give one or more folders with
--root DIR. You can repeat it. - Or set
MD_MCP_ROOTSto a list separated by colons, such as/home/you/notes:/home/you/papers.
The check follows the real location of every path, so a link inside an allowed folder cannot point it at a file outside.
Limits
- Web addresses on private or local networks are refused, and every redirect is checked.
- Downloads from the web are limited to 50 MB.
- Results returned directly to the client are cut at 100,000 characters (
MD_MCP_MAX_INLINE_CHARS). When you ask for anoutput_path, the complete file is always written.
Run it over HTTP
By default the client starts markdrop-mcp itself and talks to it directly. To run it as a network service instead:
MD_MCP_TOKEN=<token> markdrop-mcp --http --host 127.0.0.1 --port 3002The endpoint is http://127.0.0.1:3002/mcp, and clients must send Authorization: Bearer <token>.
WARNING
Always set MD_MCP_TOKEN in HTTP mode. Without it, anyone who can reach the port can read files in your allowed roots. Keep --host 127.0.0.1 unless you need access from other machines, and then only on networks you trust.
Command-line options
| Option | Default | What it does |
|---|---|---|
--root DIR | Current folder, ~/Documents, ~/Downloads | Allows file access under DIR. Repeat for more folders. |
--http | Off | Serves over HTTP instead of talking directly to one client. |
--host | 127.0.0.1 | The address to listen on in HTTP mode. |
--port | 3002 | The port to listen on in HTTP mode. |