MCP服务:PDF 页面转图片,仅提供 convert_pdf_to_images
Project description
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
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_mcp_images-0.1.4.tar.gz
(6.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pdf_mcp_images-0.1.4.tar.gz.
File metadata
- Download URL: pdf_mcp_images-0.1.4.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1228449edd5ae21fca6c0f641ea3336e001a91151beb5c7c73fe7b9fbbc24ed
|
|
| MD5 |
8caf6f7427a33f456e985a82e9da7e91
|
|
| BLAKE2b-256 |
dda02dc4c74330ff9daa9e9e212b67cd8998670a6ba3fa979a8a13045f5b4fc2
|
File details
Details for the file pdf_mcp_images-0.1.4-py3-none-any.whl.
File metadata
- Download URL: pdf_mcp_images-0.1.4-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f905259c96d4fd729b272d785ebca3ee3c803009c437ad5af060757f822ce998
|
|
| MD5 |
c5f5722eadb04f822706ab049a19a021
|
|
| BLAKE2b-256 |
3595479dcff5668b750e10a8925fdb6c73cd4d2ac08460bfb8cbb329060a996e
|