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 | |
|---|---|---|---|
| pdf_mcp_watermark_text-0.1.4.tar.gz | 8.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pdf_mcp_watermark_text-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
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
|