Skip to main content
Glama

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.

Install in Cursor Install in VS Code npm MIT

M8ven Score

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.

Related MCP server: pdf-edit-mcp

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 hosted API itself is a proprietary service.

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.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables editing text in existing PDFs by modifying content stream operators, preserving original fonts and positions. Provides fidelity reports on every edit, indicating font preservation, substitution, overflow, and other degradations.
    2
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Enables AI agents to permanently remove personally identifiable information from PDF documents, returning redacted files with the sensitive text deleted rather than merely covered. Supports scanned documents, multiple languages, entity types, and optional human review.
    9
    100 npm
    1
    MIT