MCP文件转Markdown服务
一个强大的MCP服务器,将多种文件格式转换为Markdown描述。
快速入门
- 安装:
- 使用 Smithery 自动安装:
npx -y @smithery/cli install @FradSer/mcp-server-to-markdown --client claude
- 或手动全局安装:
npm install -g mcp-server-to-markdown
- 使用 Smithery 自动安装:
- 配置 Cloudflare 凭证:
- 复制
.env.example
文件为.env
- 设置
CLOUDFLARE_API_TOKEN
和CLOUDFLARE_ACCOUNT_ID
- 复制
- 构建项目:
- 执行
npm install
安装依赖 - 执行
npm run build
编译代码
- 执行
- 使用示例:
const result = await toMarkdown({ filePaths: [ "/path/to/document.pdf", "/path/to/image.jpg" ] });