PDF 添加图片水印 MCP 服务
仅提供一个工具:add_pdf_watermark,用于为 PDF 添加图片或由文字生成的水印。
运行
uv run pdf-mcp-server
或:
$env:PYTHONPATH="src"; python -c "import pdf_mcp.server; pdf_mcp.server.main()"
工具:add_pdf_watermark
input_path(str) 输入 PDF 文件路径output_path(str) 输出 PDF 文件路径watermark_text(str, 可选) 水印文字(将生成图片叠加)watermark_image_path(str, 可选) 水印图片路径opacity(float) 不透明度 (0.0-1.0)font_size(int) 文字水印基础字号position(str) 位置:center,top-left,top-right,bottom-left,bottom-rightrotation(float) 旋转角度layout(str) 布局:single、corners、tile
示例
给 report.pdf 添加 "机密文件" 图片水印,居中并 45° 旋转
依赖
fastmcppymupdf(fitz)pillow
License
MIT
Metadata
Release files for pdf-mcp-watermark-image 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_watermark_image-0.1.4.tar.gz | 7.6 kB | Without provenance | Details for pdf_mcp_watermark_image-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pdf_mcp_watermark_image-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for pdf_mcp_watermark_image-0.1.4-py3-none-any.whl |
Total release size: 17.2 kB
Release files / pdf_mcp_watermark_image-0.1.4.tar.gz
| Download URL | pdf_mcp_watermark_image-0.1.4.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ea1c984ac306b47f10ecf4e98981e2a17e6c1bcd877ab7bddd58d2e14e064b6
|
|
BLAKE2b-256 checksum How to use checksums |
95c838609b62a889e91701bab3261d0e3c3bf828a19803b9b781451fea0439e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Release files / pdf_mcp_watermark_image-0.1.4-py3-none-any.whl
| Download URL | pdf_mcp_watermark_image-0.1.4-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0e3f5b0726ba771797c5c786ad49ee1499a117677d77e7b1732a2e368ad316ef
|
|
BLAKE2b-256 checksum How to use checksums |
5c758f65e80b67e7d68fd64a5ca92c0f841de8c778355e8b8b87dffdf05bd95a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Security for pdf-mcp-watermark-image 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.