PDF 添加文字水印 MCP 服务
仅提供一个工具:add_text_watermark_direct,直接在 PDF 上叠加可选择的文字水印。
运行
uv run pdf-mcp-server
或:
$env:PYTHONPATH="src"; python -c "import pdf_mcp.server; pdf_mcp.server.main()"
工具:add_text_watermark_direct
input_path(str) 输入 PDF 文件路径output_path(str) 输出 PDF 文件路径watermark_text(str) 水印文字内容opacity(float) 不透明度 (0.0-1.0),建议 0.03-0.1 获得“若隐若现”效果font_size(int) 字体大小position(str) 位置:center,top-left,top-right,bottom-left,bottom-rightcolor_r/color_g/color_b(float) 颜色分量 (0.0-1.0)layout(str) 布局:single、corners、tile
示例
为 report.pdf 添加可选择文字水印 "机密文件",整页平铺
依赖
fastmcppymupdf(fitz)
运行
uv run pdf-mcp-server
License
MIT
Metadata
Release files for pdf-mcp-watermark-text 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_text-0.1.4.tar.gz | 8.3 kB | Without provenance | Details for pdf_mcp_watermark_text-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pdf_mcp_watermark_text-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for pdf_mcp_watermark_text-0.1.4-py3-none-any.whl |
Total release size: 18.7 kB
Release files / pdf_mcp_watermark_text-0.1.4.tar.gz
| Download URL | pdf_mcp_watermark_text-0.1.4.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
721e22661417cc4323b8c696b846bc78619a54ee22423a6b8db344a07f141893
|
|
BLAKE2b-256 checksum How to use checksums |
2ead99d908a6d4e76b39da7adc125319713dae00b034706bad3817b1b97152f5
|
| 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_text-0.1.4-py3-none-any.whl
| Download URL | pdf_mcp_watermark_text-0.1.4-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c216271d558b908daa2fbf9ed155b0844060aa5c683e433c231cc971e9ca3172
|
|
BLAKE2b-256 checksum How to use checksums |
c453d0e8e575a8b1a3cf70838fb4b13410fb9e9b408cd9fa04eefdd77d264c00
|
| 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-text 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.