Markdownify MCP Server 是一款能将多种文件格式转换为 Markdown 的实用工具。本项目在原作者 Zach Caceres 工作的基础上,对 UTF-8 支持进行了增强优化,为用户提供更优质的文件转换体验。
# 转换 DOCX 文件
python convert_utf8.py "document.docx"
# 转换 PDF 文件
python convert_utf8.py "document.pdf"
# 转换 PowerPoint 文件
python convert_utf8.py "presentation.pptx"
# 转换 Excel 文件
python convert_utf8.py "spreadsheet.xlsx"
python convert_utf8.py "https://www.youtube.com/watch?v=VIDEO_ID"
# 设置 UV 工具路径
export UV_PATH="/custom/path/to/uv"
# 设置输出目录
export MARKDOWN_OUTPUT_DIR="/custom/output/path"
export DEBUG=true
python convert_utf8.py "your_file.docx"
git clone https://github.com/JDJR2024/markdownify-mcp-utf8.git
cd markdownify-mcp-utf8
pip install -r requirements.txt
node --version
npm --version
python server.py
python convert_utf8.py "https://example.com"
python convert_utf8.py "path/to/your/file.docx"
在桌面应用程序中集成本服务器,可将以下配置添加到你的服务器配置文件中:
{
"mcpServers": {
"markdownify": {
"command": "node",
"args": [
"{ABSOLUTE_PATH}/dist/index.js"
],
"env": {
"UV_PATH": "/path/to/uv"
}
}
}
}
PYTHONIOENCODING 环境变量已设置为 utf-8。chcp 65001 启用 UTF-8 支持。欢迎提交修复和新功能!在发起 Pull Request 前,请:
如需反馈或帮助,可通过以下方式联系: