MCP服务:PDF拆分,仅提供 split_pdf_file
Project description
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
Project details
Release history Release notifications | RSS feed
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_split-0.1.3.tar.gz
(7.3 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_split-0.1.3.tar.gz.
File metadata
- Download URL: pdf_mcp_split-0.1.3.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ace94664c480334c8b9897c319a63ff1fb5a3ed4740537a62a58584a62f77dc
|
|
| MD5 |
d8ba78b47845b2b593434ea1c143db82
|
|
| BLAKE2b-256 |
f6619e2f5db728fd7634e79d72c5501808c586b6cf80f6e6c067fcb0c331f952
|
File details
Details for the file pdf_mcp_split-0.1.3-py3-none-any.whl.
File metadata
- Download URL: pdf_mcp_split-0.1.3-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e2ae76926ba9110abf7230770e871c4e61f577d3a4252af79563e7135c38e3f
|
|
| MD5 |
520f7965156c1ab1724376e86d120a0e
|
|
| BLAKE2b-256 |
d13c43ba0ea0a1b7fa06f75c0d190af62cde1d8cfe2c49c961ec136aca12e412
|