io.github.zp130221/pdfedit-mcp
Edit text inside existing PDFs: replace, delete, redact, insert, fill forms; original fonts kept.
التثبيت
أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: .cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).
claude mcp add --transport http pdfedit-mcp 'https://pdfedit-mcp-remote.niubai-pdfedit-remote-worker.workers.dev/mcp'
{
"mcpServers": {
"pdfedit-mcp": {
"type": "http",
"url": "https://pdfedit-mcp-remote.niubai-pdfedit-remote-worker.workers.dev/mcp"
}
}
}
@niubai/pdfedit-mcpclaude mcp add pdfedit-mcp -e 'PDFEDIT_API_KEY=<your pdfedit_api_key>' -e 'PDFEDIT_BASE_URL=http://localhost:8000' -- npx -y @niubai/pdfedit-mcp@0.1.10
{
"mcpServers": {
"pdfedit-mcp": {
"command": "npx",
"args": [
"-y",
"@niubai/pdfedit-mcp@0.1.10"
],
"env": {
"PDFEDIT_API_KEY": "<your pdfedit_api_key>",
"PDFEDIT_BASE_URL": "http://localhost:8000"
}
}
}
}
متغيرات البيئة
PDFEDIT_API_KEYسري API key for the PDF Edit API. Optional: without one the hosted API serves the keyless free tier (20 pages a day per IP, outputs watermarked TEST).PDFEDIT_BASE_URLGateway base URL. Defaults to http://localhost:8000; set it to the hosted API or to your own deployment.
التوثيق
مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.
pdfedit-mcp
The agent-facing half of the PDF Edit API (https://api.niubai.vip): edit text
inside PDFs that already exist -- replace, delete, redact, insert, fill forms --
keeping the original fonts and layout, with every change verified before it is
returned.
Try it in 30 seconds, no key
The server works with no key at all: 20 pages a day per IP, outputs marked
SAMPLE, local files included. Nothing to sign up for:
Claude Code
claude mcp add pdfedit -- npx -y @niubai/pdfedit-mcp
Cursor / VS Code / Claude Desktop — the buttons above, or this server entry:
{ "pdfedit": { "command": "npx", "args": ["-y", "@niubai/pdfedit-mcp"] } }
Then ask your agent: "In ./contract.pdf replace 'Acme Ltd' with 'Acme GmbH' and
redact the IBAN." The edited PDF is written next to the original and a before/after
picture of every change comes back. A free API key (200 pages a month, no watermark on
ordinary documents) takes one email at https://api.niubai.vip; set it as
PDFEDIT_API_KEY. Web clients that cannot run a local server (claude.ai) use the hosted
endpoint https://pdfedit-mcp-remote.niubai-pdfedit-remote-worker.workers.dev/mcp with PDF URLs.
No Node? Install the skill
The same API as an Agent Skill: a SKILL.md plus a stdlib-only Python script, for Claude Code, Codex, Cursor, Gemini CLI and any other agent that runs shell commands. Nothing to install but the skill itself:
npx skills add zp130221/pdfedit-mcp
Claude Code can also take the whole thing as a plugin, MCP server and skill together:
/plugin marketplace add zp130221/pdfedit-mcp
/plugin install pdfedit@pdfedit
| What | Where |
|---|---|
| The whole API in one file, for an AI assistant (give it to a model and it knows how to call the API) | api.niubai.vip/llms-full.txt |
MCP server (npx -y @niubai/pdfedit-mcp) for Claude Code, Cursor, Claude Desktop | mcp/pdfedit-mcp/ |
Agent skill (npx skills add zp130221/pdfedit-mcp), no Node needed | skills/pdfedit/ |
TypeScript SDK (@niubai/pdfedit) | sdk/typescript/ |
| Python SDK | sdk/python/ |
| OpenAPI document the SDKs and tool schemas are generated from | openapi/openapi.json |
| What it does, pricing, ten before/after examples | docs/public/ |
Everything here is MIT. The editing engine behind the API is AGPL-3.0; the API
serves its complete source to its users at GET /source (any API key, a free
test key included).
The API is operated by Niubai (https://niubai.vip), support <zp130221@163.com>; payments are collected by Creem as merchant of record, so card details never reach the service and the cancel link is on the receipt. Terms, privacy and refunds: https://api.niubai.vip/legal. Documents are deleted within 24 hours and are never used for training.
الأسئلة الشائعة
ما هو io.github.zp130221/pdfedit-mcp؟
Edit text inside existing PDFs: replace, delete, redact, insert, fill forms; original fonts kept.
كيف أثبّت io.github.zp130221/pdfedit-mcp؟
يعمل كخادم بعيد. في Claude Code: claude mcp add --transport http pdfedit-mcp 'https://pdfedit-mcp-remote.niubai-pdfedit-remote-worker.workers.dev/mcp'. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.
هل يحتاج io.github.zp130221/pdfedit-mcp إلى مفتاح API؟
نعم. يتطلب PDFEDIT_API_KEY، وتضبطها في إعداداته.
هل io.github.zp130221/pdfedit-mcp مفتوح المصدر؟
نعم. شيفرته متاحة على GitHub بترخيص MIT.
من يصون io.github.zp130221/pdfedit-mcp؟
ينشره zp130221. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.
من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.