原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。使用 Google 登录即可撰写评价。原型 · 每 30 分钟更新
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Merge PDF

作者:theluckystrike版本 0.21.1i★ 2 (整个仓库的星标)i电脑或云端
注册名称io.github.theluckystrike/merge-pdf

安装方法

What it does

Merge, split, extract, rotate, reorder and stamp PDF pages from your AI chat, all offline.

  • Connects 电脑或云端
  • Account or key Cloud: Needs Authorization · Local: No key needed
  • Category 文档、表格与办公

安装

选择你使用的 AI 应用,然后复制设置。

通过 5/5 项检查 · 你的提问会经过开发者的服务器(mcp.zovo.one) · ✓ 命令已检查 2026年11月13日

第一步:你用哪个 AI?

选择你用的应用,步骤会显示在下方。

可连接 Claude · 约 5 分钟

需要 Merge PDF 的密钥(在开发者网站创建) · 在 claude.ai 或桌面应用设置一次,即可在聊天中使用 · 免费账户可添加 1 个 · Team/Enterprise 方案由所有者(Owner)添加

  1. 注册并创建 Merge PDF 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Merge PDF 网站 ↗

  2. 打开 Claude 的 Connectors 页面

    CustomizeConnectors

    CustomizeConnectors1Add2https://…3Add4
  3. 点击“Add” → “Custom” → “Web”,填写这 2 项

    把这里的内容复制到 Claude 中同名的输入框,然后点击 Continue

    Name · 名称Merge PDF
    Remote MCP server URL · 地址https://mcp.zovo.one/mcp/merge-pdf

    在 Request headers 下添加这个名称和值

    Header 名称Authorization
    值Bearer <在这里粘贴你的密钥>

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

    在 Claude 检测到的登录设置页点击 Continue · Authentication 按作者说明选择(Sign in now、Sign in when needed 或 No sign in),然后点击 Add

  4. 在聊天中开启

    +ConnectorsMerge PDF

  5. 试一试

    用 Merge PDF 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude 说正在使用 Merge PDF,或回答中出现 Merge PDF 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

ChatGPT 暂时无法连接 Merge PDF

Merge PDF 连接时需要你自己的密钥,但 OpenAI 帮助页面只说明了 OAuth 登录,没有我们能核实的填密钥方式

你可以改用这些方式

A · 使用能连接 Merge PDF 的应用

  • 需要 Merge PDF 的密钥(在开发者网站创建) · 在 claude.ai 或桌面应用设置一次,即可在聊天中使用 · 免费账户可添加 1 个 · Team/Enterprise 方案由所有者(Owner)添加
  • 需要 Merge PDF 的密钥(在开发者网站创建)
  • 需要 Merge PDF 的密钥(在开发者网站创建)
  • 需要 Merge PDF 的密钥(在开发者网站创建)

B · 文档、表格与办公 类中能连接 ChatGPT 的其他服务器

从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的

可连接 Claude Code · 约 5 分钟

需要 Merge PDF 的密钥(在开发者网站创建)

  1. 注册并创建 Merge PDF 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Merge PDF 网站 ↗

  2. 打开终端

    Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell

  3. 粘贴这条命令并按 Enter

    claude mcp add --transport http --scope user merge-pdf https://mcp.zovo.one/mcp/merge-pdf --header 'Authorization: Bearer your-value'

    按 Enter 前,把“your-value”改成你的密钥

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  4. 在 Claude Code 中输入 /mcp

    应能看到 Merge PDF 在列表中并显示已连接

  5. 试一试

    用 Merge PDF 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude Code 说正在使用 Merge PDF,或回答中出现 Merge PDF 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

可连接 Cursor · 约 5 分钟

需要 Merge PDF 的密钥(在开发者网站创建)

  1. 注册并创建 Merge PDF 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Merge PDF 网站 ↗

  2. 点击这个按钮打开 Cursor

    在 Cursor 中打开

    Cursor 会请你确认安装,点击 Install

  3. 填写你的密钥

    在 Merge PDF 的设置中,Authorization 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  4. 在 Cursor 中以 Agent 模式打开 AI 聊天

  5. 试一试

    用 Merge PDF 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Cursor 说正在使用 Merge PDF,或回答中出现 Merge PDF 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同

可连接 VS Code · 约 5 分钟

需要 Merge PDF 的密钥(在开发者网站创建)

  1. 注册并创建 Merge PDF 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Merge PDF 网站 ↗

  2. 点击这个按钮打开 VS Code

    在 VS Code 中打开

    VS Code 会请你确认安装,点击 Install

  3. 填写你的密钥

    在 Merge PDF 的设置中,Authorization 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  4. 在 VS Code 中以 Agent 模式打开 AI 聊天

  5. 试一试

    用 Merge PDF 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 VS Code 说正在使用 Merge PDF,或回答中出现 Merge PDF 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同

其他支持 MCP 的应用(如 Windsurf、Zed、Gemini CLI)添加方式各不相同,请在应用列表中查看

查看所有支持 MCP 的应用 →

通过网页连接的应用使用的地址

地址https://mcp.zovo.one/mcp/merge-pdf

JSON 设置在下方“开发者专用”中

卡住了?问问正在用 Merge PDF 的人💬 讨论 →
开发者专用:终端命令和 JSON 设置

通过网页连接

Claude Code

claude mcp add --transport http --scope user merge-pdf https://mcp.zovo.one/mcp/merge-pdf --header 'Authorization: Bearer your-value'

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "merge-pdf": {
      "url": "https://mcp.zovo.one/mcp/merge-pdf",
      "headers": {
        "Authorization": "Bearer your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "merge-pdf": {
      "type": "http",
      "url": "https://mcp.zovo.one/mcp/merge-pdf",
      "headers": {
        "Authorization": "Bearer your-value"
      }
    }
  }
}

需要你填写的值

  • MCP_LICENSE_KEY 机密 env
    Optional Pro license key (MCPL1....). Verified offline.
  • Authorization 机密 必填 HTTP header
    Bearer

说明仍为英文原文。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

一览

GitHub 星标i
2 (整个仓库的星标)
该仓库包含多个 MCP 条目,星标在排名中只计算一次
每周下载量i
不在 npm/PyPI 上
连接方式
电脑或云端
传输方式
stdio, streamable-http
最新版本i
0.21.1
发布到注册中心i
2026年9月23日
代码最后更新i
2026年11月14日
作者
theluckystrike
软件包
mcpb: …/pdf.mcpb
注册状态
活跃

哪些应用可以使用它

依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。

通过互联网连接,适用于

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast

在你的电脑上运行,适用于

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

全部应用及其优缺点 →

它能做什么

工具名称和描述与服务器在 2026年11月14日 报告的完全一致。这些内容由作者撰写,不是我们写的;我们以纯文本形式显示。

  • pdf_info

    Call this tool to inspect a PDF: page count, page sizes in points/mm, paper name, metadata (title, author, producer, dates) and whether it is encrypted. Read-only, never modifies the file. Free tier: unlimited.

  • pdf_count

    Page count per file plus the total, for any number of PDFs, with how many were readable. A file that cannot be read is reported on its own row and the others still count. Read-only. Free and unlimited.

  • pdf_merge

    Call this tool to join several PDFs into one, in the order given. Page sizes are kept as-is, so a merged file may have mixed sizes, and the answer says so. Inputs are never modified. Free tier: up to 5 files per merge.

  • pdf_split

    Call this tool to write one new PDF per range. Ranges are 1-based and may be open-ended: "1-3,5,7-" gives pages 1-3, page 5, and 7 to the end. The input is never modified. Free tier: files up to 30 pages.

  • pdf_pages

    Call this tool to pull selected pages into one new PDF, in the order written: "2,4-6" gives four pages. Asking for a page twice copies it twice. The input is never modified. Free tier: files up to 30 pages.

  • pdf_rotate

    Call this tool to turn pages by a multiple of 90 degrees, clockwise for positive. Rotation is added to whatever the page already had, for a sideways scan. Writes a new file. Free tier: files up to 30 pages.

  • pdf_stamp

    Call this tool to draw a word such as PAID or DRAFT across the pages, in a colour and position you choose. Writes a new file; input untouched. Free tier: the PAID and DRAFT presets in their preset colours.

  • pdf_watermark_business

    Call this tool to put your business name and VAT id in the footer of every page, from the shared profile mcp-invoice and mcp-docx write. Use it before sending a document out. Pro.

  • pdf_reorder

    Call this tool to write a new PDF with pages in the order you give. The order must name every page exactly once, so nothing drops by accident; use pdf_pages for a subset. Pro.

  • pdf_text

    Call this tool for best-effort text extraction from standard-font PDFs. Returns nothing for a scan (no OCR), or glyph indices for a custom-encoded font, and says which case applies. Read-only. Free tier: unlimited.

  • license_status

    Report this endpoint's licence state for your token as JSON: the product, the tier free or pro, why it is not Pro, and the checkout URL. Call it to explain a free-tier refusal. No arguments, nothing changes.

  • license_activate

    Turn Pro on for this connection with key, an MCPL1. . issued at checkout for this server or the bundle. Data under your token stays; a wrong or expired key changes nothing. license_status confirms it.

  • pdf_upload

    Send a PDF to this hosted endpoint. There is no filesystem here, so instead of a path you upload the file once with pdf_upload and then pass its name as `path` (or inside `paths`) to pdf_info, pdf_count, pdf_merge, pdf_split, pdf_pages, pdf_rotate, pdf_stamp, pdf_reorder and pdf_

  • pdf_files

    List the PDFs stored for your token: what you uploaded, and what this server has written, with their sizes.

  • pdf_delete_upload

    Delete one PDF stored for your token, uploaded or generated.

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月16日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 theluckystrike 验证,该账户拥有此仓库

  • ✓ 通过

    仍在维护

    代码最后更新于前天

  • ✓ 通过

    有许可证

    使用 MIT

  • ✓ 通过

    端点有响应

    在 7 毫秒内响应(HTTP 200)

  • – 不适用

    使用 OAuth 登录

    无需登录

  • ✓ 通过

    工具描述中没有隐藏指令

    已读取 15 个工具描述,未发现针对 AI 的隐藏指令

已公开的漏洞(OSV.dev)

未检查:只能检查标明版本的 npm 和 PyPI 包

我们检查什么 → · JSON

作者:申请重新检查或报告信息错误

讨论

提问、分享技巧或报告无法使用。按“有帮助”数量排序。

还没有帖子,欢迎第一个提问或分享。

此处内容由用户撰写,不代表 PopNx 团队。

登录后发帖

用户评价

还没有评价

登录后写评价

与“文档、表格与办公”中的其他服务器比较i

  • 星标数多于此分类中其他 3974 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 3974 个服务器的 35% 更新
  • 基础检查结果等于或优于此分类中其他 3974 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Merge PDF 安全吗?

它在 5 项适用的基础检查中通过了 5 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:Authorization

它在我的电脑上运行还是在云端?

两种方式都可以:安装在你的电脑上,或者连接云端版本。

它还在维护吗?

GitHub 仓库最后更新于前天,最新版本(0.21.1)于2个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,因此也能用于接受远程 MCP 的应用,例如网页版 ChatGPT(Business 及以上为完整 MCP;Pro 为只读)。

有什么可以替代它?

同一分类中有:Puter MCP, XcodeBuildMCP, Anki MCP Server, Sosumi, Zapier

功能相近的其他选择

同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Puter MCP

Puter MCP enables AI tools to interact with Puter: manage files, websites, workers, and more

作者:HeyPuter广泛使用★ 4.4万5个月前更新

在云端运行✓ 服务方 · puter.com

XcodeBuildMCP

XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.

作者:getsentry广泛使用↓ 13万/周 共用包的下载量★ 65764个月前更新

在你的电脑上运行✓ 服务方 · xcodebuildmcp.com

Anki MCP Server

MCP server for Anki flashcards: adaptive review, notes, media, and deck management via AnkiConnect.

作者:ankimcp正在增长↓ 1136/周★ 55942天前更新

在你的电脑上运行✓ 服务方 · ankimcp.ai

Sosumi

Search and read Apple developer documentation, HIG, and WWDC transcripts as Markdown.

作者:NSHipster正在增长★ 4927天前更新

在云端运行✓ 服务方 · sosumi.ai

Zapier

Hosted MCP server connecting AI assistants to 9,000+ apps and 40,000+ actions via Zapier.

作者:zapier正在增长★ 4604个月前更新

在云端运行✓ 服务方 · zapier.com
  • Puter MCP — 在云端运行,无需安装 · 不需要密钥
  • XcodeBuildMCP — 需要安装在电脑上 · 不需要密钥
  • Anki MCP Server — 需要安装在电脑上 · 不需要密钥
  • Sosumi — 在云端运行,无需安装 · 不需要密钥
  • Zapier — 在云端运行,无需安装 · 不需要密钥 · 在 Claude 的目录中

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

Merge, split and fill PDF forms from Claude

Say "stamp PAID on that invoice and save a copy" or "pull pages 2 to 6 out of this scan and merge them with the contract" and it happens, on your machine, in a second. This MCP server does the small PDF jobs that otherwise send you to a web uploader: merge, split by page range, extract or reorder pages, rotate a sideways scan, stamp PAID or DRAFT or any text you like, put your business name and VAT id in the footer, count pages across a folder of files, and read a PDF's text back as text. No upload, no account, no native dependency, no office install.

In the [official MCP Registry](https://registry.modelcontextprotocol.io/v0.1/servers/io.github.theluckystrike%2Fpdf-merge-split-stamp-extract-pages/versions/latest) (io.github.theluckystrike/pdf-merge-split-stamp-extract-pages).

Listed on the [AI Product Index](https://index.percall.dev/l/zovo-pdf.html) - live remote endpoint at mcp.zovo.one/s/pdf, free tier, no signup.

The PDF chores of a freelance business, done from chat instead of from a browser tab you do not trust with an invoice.

60-second install

npm publish for @theluckystrike/mcp-pdf is pending. Until then, the .mcpb one-click bundle or a clone+build is the working path, both are verified below.

One-click (.mcpb): download pdf.mcpb from the latest release and double-click it in Claude Desktop: https://github.com/theluckystrike/mcp-servers/releases/latest

(claude_desktop_config.json):

{

"mcpServers": { "pdf": { "command": "npx", "args": ["-y", "@theluckystrike/mcp-pdf"] } } }

Claude Code:

claude mcp add pdf -- npx -y @theluckystrike/mcp-pdf

(.cursor/mcp.json):

{

"mcpServers": { "pdf": { "command": "npx", "args": ["-y", "@theluckystrike/mcp-pdf"] } } }

The npx form above starts working the moment the package is published. Until then, use the .mcpb bundle above, or build from source with exactly these three commands:

git clone https://github.com/theluckystrike/mcp-servers.git && cd mcp-servers

npm install npm run build -w packages/mcp-license -w servers/pdf

Then point your client's command at node with one arg: the absolute path to servers/pdf/dist/index.js.

To run in Pro mode set MCP_LICENSE_KEY in the same config block, or call license_activate once with your key.

Tools

ToolWhat it does
pdf_infoPage count, every page's size in points and millimetres, the paper name (A4, Letter, custom), the rotation already on each page, the metadata (title, author, producer, dates) and whether the file is encrypted
pdf_countPage count per file plus the total, for any number of PDFs. A file it cannot read is reported per file; the rest still count
pdf_mergeJoin PDFs into one, in the order given. Page sizes are kept as they are, and a merged file with mixed sizes says so
pdf_splitOne new file per range. "1-3,5,7-" gives pages 1-3, page 5, and page 7 to the end. out_path_pattern takes {n}, {range} and {name}
pdf_pagesExtract selected pages into one new PDF, in the order you write them. "5,1,1" puts page 5 first and page 1 in twice
pdf_rotateTurn pages by a multiple of 90 degrees, added to the rotation the page already had, which is what a sideways scan needs
pdf_stampDraw text on the pages: PAID and DRAFT presets, or any text, colour, position, opacity and size. Centre stamps go on the 45-degree diagonal
pdf_watermark_businessYour business name and VAT id in the footer of every page, from the shared profile mcp-invoice and mcp-docx write
pdf_textBest-effort text extraction from the page content streams. See the honest caveats below
pdf_reorderWrite a new PDF with the pages in a new order. The order must name every page exactly once, so nothing is dropped by accident
license_statusShow free or Pro mode
license_activateActivate a Pro key (verified offline)

Resource: pdf://recent returns the last 25 operations, newest first, with the inputs, the files written and when. Prompt: mark_invoice_paid chains mcp-invoice's invoice_get into pdf_stamp PAID and saves the stamped copy beside the original.

What you can say

You sayTool
"Mark invoice INV-2026-0007 as paid."mark_invoice_paid prompt, then pdf_stamp
"Stamp DRAFT across this contract before I send it."pdf_stamp
"Join these three PDFs into one file."pdf_merge
"Split the scan: pages 1-3 are the invoice, 4 onwards is the receipt."pdf_split
"Pull pages 2 to 6 out of this and save them separately."pdf_pages
"This scan is sideways, turn it."pdf_rotate
"How many pages are in all of these?"pdf_count
"What does page 1 of this PDF say?"pdf_text
"Put my company name and VAT number in the footer."pdf_watermark_business
"Move the cover page to the front."pdf_reorder

Worked example

You: Stamp PAID on ~/invoices/INV-2026-0007.pdf and save a copy.

pdf_stamp { path: "~/invoices/INV-2026-0007.pdf", text: "PAID", position: "center", out_path: "~/invoices/INV-2026-0007-paid.pdf" } -> Stamped "PAID" on 1 page -> ~/invoices/INV-2026-0007-paid.pdf, 0.9 MB

The stamp is drawn text, not a flattened image: it can be selected and searched, it is drawn on the 45-degree diagonal in the preset green, and the original file is byte-for-byte unchanged.

Free vs Pro

FreePro
pdf_info, pdf_count, pdf_textUnlimitedUnlimited
pdf_mergeUp to 5 files per callAny number of files
pdf_split, pdf_pages, pdf_rotateFiles up to 30 pagesAny length
pdf_stampThe PAID and DRAFT presets in their preset coloursAny text, any colour, any size
pdf_watermark_business-Your business name and VAT id in the footer
pdf_reorder-Yes

A tier limit is an answer, not an error, and nothing is written when one refuses a call.

Pro is a one-time $19, or $39 for every server in the collection, lifetime.

pdf_text is best effort, and here is exactly what that means

A PDF does not store text. It stores drawing operators, and the text you see is bytes handed to a font. This server decompresses each page's FlateDecode content stream with node:zlib and reads the four text-showing operators -- Tj, TJ, ' and ", plus the positioning operators that end a line. That is a parser written here, in about two hundred lines, with no pdfjs and no native module, and it has three real limits the tool states in its own answer every time:

  • A scan has no text. An image-only page carries no text operators, so nothing comes back. There is no OCR here and there will not be one; the answer says the page is probably a scan rather than returning an empty string with no explanation.
  • A custom or CID encoding returns glyph indices, not letters. Subset-embedded and CJK fonts map bytes to glyph numbers through a table this parser does not read. When the output has no readable characters, the answer says the font is the reason.
  • Reading order is drawing order. There is no column detection and no layout reconstruction. Word spaces are recovered from the large negative kerns a TJ array uses for them, so a PDF that positions every word separately can come back with words run together.

PDFs written by word processors, invoicing tools and report generators, everything with a standard or fully embedded font, read back cleanly. Anything else tells you why it did not.

Encrypted PDFs are refused, not guessed

pdf-lib cannot decrypt, and loading an encrypted file while ignoring the encryption produces pages of garbage that would be written straight into the output. So a file whose trailer names an /Encrypt dictionary is refused by every tool that writes, with the reason and the fix in the message: open it in a reader with the password, export or print to a new PDF, and use that file. pdf_info still answers, with encrypted: true, because reporting is its whole job, and pdf_count reports it as one unreadable file while still counting the rest.

Existing files are never overwritten, and inputs are never modified

Every tool writes a new file and leaves its inputs byte-for-byte alone, there is no in-place mode, on purpose. An out_path that already exists is refused:

Error: /path/merged.pdf already exists and nothing was written.

Pass overwrite: true to replace it, or give a different out_path.

The path is reserved with an exclusive create, not an existence check, so two processes writing the same out_path at the same time cannot clobber each other: one wins, the other is refused and writes nothing. pdf_split reserves every one of its output paths before it writes any of them, so a collision on part 3 does not leave parts 1 and 2 behind as a half-done split, and the reservations are released, so nothing empty is left on disk either.

Pass overwrite: true when replacing the file is what you want.

overwrite: true still does not let an output be an input. Writing the result of an operation back over one of its own sources destroys that source, the pages are already in memory and get written over the file they came from, which takes a three-page file to the one page you extracted, and every later read of that path is then quietly wrong. So an out_path that resolves to (or shares an inode with) any input of the same call is refused before any work happens:

Error: out_path /path/scan.pdf is also an input of this operation, so writing it would destroy the source.

Nothing was written. Write beside it instead - /path/scan-out.pdf - and, if the result really is meant to take the original's place, rename it yourself once you have checked it.

Limits

  • Inputs over 100 MB are refused: rewriting a PDF needs several times its size in memory.
  • A file that does not start with %PDF- is refused before anything is read.
  • Rotation is recorded as page metadata, in multiples of 90 degrees, which is all the format has. Nothing is redrawn.
  • Stamp text goes through a built-in PDF font, which carries WinAnsi and its 256 code points. A character outside it is transliterated where it has an obvious Latin body, Polish OPŁACONE stamps as OPLACONE, and the answer says so and prints what was actually drawn, and removed and counted where it does not, so there is no CJK stamp. A newline is a word separator, never a deletion.
  • font_size must be between 1 and 1600 points. A stamp too long to fit even at the smallest size this server will use is still drawn, and the answer says how far past the edge it runs, so you can shorten it.
  • pdf_text caps one answer at 200,000 characters and names the pages argument that continues from where it stopped. Nothing is missing from the file; the cut is in the answer, not the read.
  • No page numbering, no signatures, no redaction, no compression. This server does the page-level jobs; it is not a PDF editor. It does not *write* PDF/A: pdf_info reports a file's own pdfa_claim, and every tool that writes says plainly that its output no longer holds that claim.
  • Forms are read, not filled: pdf_text prints the AcroForm field values, which live in the fields rather than in the page content stream and are therefore not part of the page text.
  • No OCR. See the pdf_text section.

How it stores data

Only a register of what it did: ${XDG_DATA_HOME:-~/.local/share}/mcp-servers/pdf/operations.json, the last 500 operations, as plain JSON. Your PDFs stay where you put them. Every write to the register runs inside an advisory lock on .../pdf/.lock, so two clients on one data directory cannot lose a reco

只显示了开头部分;其余内容请在仓库中阅读