Skip to main content

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-right
  • color_r/color_g/color_b (float) 颜色分量 (0.0-1.0)
  • layout (str) 布局:singlecornerstile

示例

为 report.pdf 添加可选择文字水印 "机密文件",整页平铺

依赖

  • fastmcp
  • pymupdf (fitz)

运行

uv run pdf-mcp-server

License

MIT

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_watermark_text-0.1.4.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pdf_mcp_watermark_text-0.1.4-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file pdf_mcp_watermark_text-0.1.4.tar.gz.

File metadata

  • Download URL: pdf_mcp_watermark_text-0.1.4.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for pdf_mcp_watermark_text-0.1.4.tar.gz
Algorithm Hash digest
SHA256 721e22661417cc4323b8c696b846bc78619a54ee22423a6b8db344a07f141893
MD5 d20c8715791e414ce0257c44974ffea0
BLAKE2b-256 2ead99d908a6d4e76b39da7adc125319713dae00b034706bad3817b1b97152f5

See more details on using hashes here.

File details

Details for the file pdf_mcp_watermark_text-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for pdf_mcp_watermark_text-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c216271d558b908daa2fbf9ed155b0844060aa5c683e433c231cc971e9ca3172
MD5 faf5d13272abee2d0a8a0c938e502cfa
BLAKE2b-256 c453d0e8e575a8b1a3cf70838fb4b13410fb9e9b408cd9fa04eefdd77d264c00

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 files

0.1.3

2 files

0.1.2

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page