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) 图片格式:jpeg或pngquality(int) JPEG 质量 (1-100)dpi(int) 图片渲染 DPIpages(str, 可选) 页面范围,如"1-3,5,7-10"或"all"prefix(str, 可选) 输出文件名前缀
依赖
fastmcppymupdf(fitz)
License
MIT
Metadata
Release files for pdf-mcp-images 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pdf_mcp_images-0.1.6.tar.gz | 6.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pdf_mcp_images-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.3 kB
Release files / pdf_mcp_images-0.1.6.tar.gz
| Download URL | pdf_mcp_images-0.1.6.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2dd8bf12a9149a0459f593537f11fcf3ea4c94ac9baf238f4264337d6b941c65
|
|
BLAKE2b-256 checksum How to use checksums |
5aed503505fbca13724d574df5a499c9ca0f587a8e81676c4d93c00128ed6560
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.11
|
Release files / pdf_mcp_images-0.1.6-py3-none-any.whl
| Download URL | pdf_mcp_images-0.1.6-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2f07d140e069ffe802d64125c576248675a302c581948db5fe10dab731572854
|
|
BLAKE2b-256 checksum How to use checksums |
af9d751718f888665008b79298344de9e44039da18129a9fdfd3f18285c66f3e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.11
|