Skip to main content

PDF 页面转图片 MCP 服务

仅提供一个工具:convert_pdf_to_images,用于将 PDF 页面渲染为 JPEG/PNG 图片。

运行

uv run pdf-mcp-server

或:

$env:PYTHONPATH="src"; python -c "import pdf_mcp.server; pdf_mcp.server.main()"

工具:convert_pdf_to_images

  • input_path (str) 输入 PDF 文件路径
  • output_dir (str) 输出目录路径
  • format (str) 图片格式:jpegpng
  • quality (int) JPEG 质量 (1-100)
  • dpi (int) 图片渲染 DPI
  • pages (str, 可选) 页面范围,如 "1-3,5,7-10""all"
  • prefix (str, 可选) 输出文件名前缀

依赖

  • fastmcp
  • pymupdf (fitz)

License

MIT

Download files

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

Source Distribution

pdf_mcp_images-0.1.6.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

pdf_mcp_images-0.1.6-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file pdf_mcp_images-0.1.6.tar.gz.

File metadata

  • Download URL: pdf_mcp_images-0.1.6.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for pdf_mcp_images-0.1.6.tar.gz
Algorithm Hash digest
SHA256 2dd8bf12a9149a0459f593537f11fcf3ea4c94ac9baf238f4264337d6b941c65
MD5 3dcc3e974e4a3da56b8c4b79c1ffcd83
BLAKE2b-256 5aed503505fbca13724d574df5a499c9ca0f587a8e81676c4d93c00128ed6560

See more details on using hashes here.

File details

Details for the file pdf_mcp_images-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: pdf_mcp_images-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for pdf_mcp_images-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 2f07d140e069ffe802d64125c576248675a302c581948db5fe10dab731572854
MD5 3fbb3e0dc4e71066ae490584fd06740e
BLAKE2b-256 af9d751718f888665008b79298344de9e44039da18129a9fdfd3f18285c66f3e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

Supported by

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