Skip to main content

MCP Server for high-quality PDF to Markdown conversion with image extraction

Project description

pdf-to-md-mcp

MCP Server for high-quality PDF to Markdown conversion. Powered by pymupdf4llm.

高质量 PDF 转 Markdown 的 MCP Server,基于 pymupdf4llm

Features / 功能

  • Heading hierarchy preservation (#, ##, ###) / 保留标题层级结构
  • Markdown table extraction / 提取 Markdown 格式表格
  • Image extraction to local files / 提取图片到本地文件
  • List structure preservation / 保留列表结构
  • Works with any MCP client (Kiro, Claude Desktop, Cursor, etc.) / 兼容所有 MCP 客户端

Quick Start / 快速开始

Using uvx (recommended / 推荐)

No installation needed / 无需安装:

{
  "mcpServers": {
    "pdf-to-md": {
      "command": "uvx",
      "args": ["pdf-to-md-mcp"]
    }
  }
}

Using pip

pip install pdf-to-md-mcp

Then configure your MCP client / 然后配置你的 MCP 客户端:

{
  "mcpServers": {
    "pdf-to-md": {
      "command": "pdf-to-md-mcp"
    }
  }
}

Tool: pdf_to_markdown

Parameter / 参数 Type / 类型 Default / 默认值 Description / 说明
pdf_path string (required / 必填) Path to the PDF file / PDF 文件路径
output_path string "" Output Markdown file path. Empty = return content only / 输出路径,为空则只返回内容
extract_images boolean true Extract images to local images/ directory / 是否提取图片到本地

Example / 示例

Convert test/sample.pdf to Markdown and save to docs/output.md
把 test/sample.pdf 转成 Markdown 保存到 docs/output.md

Images will be saved to docs/images/. 图片会保存到 docs/images/ 目录。

License / 许可证

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pdf_to_md_mcp-0.1.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pdf_to_md_mcp-0.1.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file pdf_to_md_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: pdf_to_md_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for pdf_to_md_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ecca30169c45571e010304ec46d9286dc1b3970cb5601f614f0ca77301d6ae8a
MD5 6a2138b48870edb1a7e9b574478bedcb
BLAKE2b-256 2b104ba1a8535ea98d77177c3f45a11661fb2908597401a243b4268a5547c69d

See more details on using hashes here.

File details

Details for the file pdf_to_md_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pdf_to_md_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for pdf_to_md_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e5e485cecc7eab513b55d04daabebccf45b15e505d3156d1c6e3defb3818ea27
MD5 1c5017c93a45f3de2496f7027f6b0b66
BLAKE2b-256 21330a68ceed403f9171e55f0ca40db5985cd0eb057fb2ed2222e0498b0291a7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page