Skip to main content

MCP服务:PDF 添加文字水印,仅提供 add_text_watermark_direct

Project description

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

Project details


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.3.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.3-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pdf_mcp_watermark_text-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 edef92741467cde018efd1f0fb877de3437c8403aedafb2c15f5ca8e1bc952a8
MD5 cb2173ce938150baf0fde6dee1a81efe
BLAKE2b-256 19eb9354f71b72460c8b3010505e70fe013fe71ad99a63ba5c35263dffa9847b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pdf_mcp_watermark_text-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f40f907a48bfed0b8f3e528376f751c3eb2b59356ca7279799be1e4a6a0af328
MD5 cfa9d24c2bdebb5fc02280cd134fc95f
BLAKE2b-256 3b2ec0d5e6fff31ead71066c20b52760719494f085dce58c5261894b5ace0244

See more details on using hashes here.

Supported by

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