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.4.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.4.tar.gz.
File metadata
- Download URL: pdf_mcp_split-0.1.4.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 |
0ea252550e85cae5b20e5ee75d980ac1ceaec7e5783d62bdc8c4eaf44f5f34f6
|
|
| MD5 |
97e3012fe3398d82cbd83d2c7366b991
|
|
| BLAKE2b-256 |
e5f4b2292fc1b89ee9265205d9cc048d215cc71dbc5ab3877c1cd3dc2df2bcc2
|
File details
Details for the file pdf_mcp_split-0.1.4-py3-none-any.whl.
File metadata
- Download URL: pdf_mcp_split-0.1.4-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 |
a0dbacafe402595ac0e7afa02ce0ac611e6e940ba55ed9edac234a4e925ddd9d
|
|
| MD5 |
3d6f48d88b18f533e1efa28e42f5c85e
|
|
| BLAKE2b-256 |
4b9972cda457687ccd30eeb793f2919d4fbfc204c26e9f8beebc8b03750d6b86
|