PDF 拆分 MCP 服务
仅提供一个工具:split_pdf_file,用于按页面或页面范围拆分 PDF。
运行
uv run pdf-mcp-server
或:
$env:PYTHONPATH="src"; python -c "import pdf_mcp.server; pdf_mcp.server.main()"
工具:split_pdf_file
input_path(str) 输入 PDF 文件路径output_dir(str) 输出目录路径split_mode(str) 拆分模式:pages或rangesranges(list[str], 可选) 页面范围,如"1-3","5","7-10"prefix(str, 可选) 输出文件名前缀
示例:
- 每页一个文件:
split_mode="pages" - 指定范围每页一个文件:
split_mode="pages",ranges=["1-3", "7-9"] - 按范围生成多个文件:
split_mode="ranges",ranges=["1-5", "10-15"]
依赖
fastmcppikepdf
License
MIT
Metadata
Release files for pdf-mcp-split 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pdf_mcp_split-0.1.4.tar.gz | 7.3 kB | Without provenance | Details for pdf_mcp_split-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pdf_mcp_split-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for pdf_mcp_split-0.1.4-py3-none-any.whl |
Total release size: 16.3 kB
Release files / pdf_mcp_split-0.1.4.tar.gz
| Download URL | pdf_mcp_split-0.1.4.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0ea252550e85cae5b20e5ee75d980ac1ceaec7e5783d62bdc8c4eaf44f5f34f6
|
|
BLAKE2b-256 checksum How to use checksums |
e5f4b2292fc1b89ee9265205d9cc048d215cc71dbc5ab3877c1cd3dc2df2bcc2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / pdf_mcp_split-0.1.4-py3-none-any.whl
| Download URL | pdf_mcp_split-0.1.4-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a0dbacafe402595ac0e7afa02ce0ac611e6e940ba55ed9edac234a4e925ddd9d
|
|
BLAKE2b-256 checksum How to use checksums |
4b9972cda457687ccd30eeb793f2919d4fbfc204c26e9f8beebc8b03750d6b86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Security for pdf-mcp-split 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.