mcp-pdf-utils

mcp-pdf-utils

An MCP server for local PDF manipulation including merging, splitting, rotating, watermarking, and text extraction. It works with various MCP-compatible clients and processes PDFs entirely on-device without cloud services.

Category
访问服务器

README

<div align="center">

mcp-pdf-utils

MCP server for PDF manipulation. Merge, split, rotate, watermark, extract text, and more.

Works with Claude Desktop, Cursor, VS Code, ChatGPT, and any MCP-compatible client.

npm License: MIT

</div>


Why

PDF manipulation is one of the most common developer tasks, yet there's no good MCP server for it. The existing options have 1 star. This one actually works.

Everything runs locally. No API keys. No cloud services. Your PDFs never leave your machine.

Tools

Tool Description
pdf_info Get metadata, page count, file size
pdf_extract_text Extract text content from pages
pdf_merge Combine multiple PDFs into one
pdf_split Split PDF into individual page files
pdf_extract_pages Extract a page range into a new PDF
pdf_rotate Rotate pages by 90°, 180°, or 270°
pdf_add_watermark Add text watermark (e.g. DRAFT, CONFIDENTIAL)
pdf_delete_pages Remove specific pages
pdf_reorder Rearrange page order
pdf_set_metadata Set title, author, subject, keywords
pdf_create Create a new PDF from plain text

Quick Start

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "pdf-tools": {
      "command": "npx",
      "args": ["-y", "mcp-pdf-utils"]
    }
  }
}

That's it. Restart Claude Desktop and start asking it to work with PDFs.

Claude Code

claude mcp add pdf-tools -- npx -y mcp-pdf-utils

Cursor

Add to your Cursor MCP settings:

{
  "mcpServers": {
    "pdf-tools": {
      "command": "npx",
      "args": ["-y", "mcp-pdf-utils"]
    }
  }
}

VS Code

Add to your VS Code MCP config:

{
  "mcp": {
    "servers": {
      "pdf-tools": {
        "command": "npx",
        "args": ["-y", "mcp-pdf-utils"]
      }
    }
  }
}

Usage Examples

Once connected, just talk to your AI naturally:

  • "Merge invoice_jan.pdf and invoice_feb.pdf into combined.pdf"
  • "Extract pages 3-7 from report.pdf"
  • "Add a CONFIDENTIAL watermark to contract.pdf"
  • "How many pages does presentation.pdf have?"
  • "Rotate all pages in scan.pdf by 90 degrees"
  • "Remove page 5 from my document"
  • "Extract all the text from this PDF"
  • "Reorder the pages: put page 3 first, then 1, then 2"

Development

git clone https://github.com/zekovdev/mcp-pdf-utils.git
cd mcp-pdf-utils
npm install
npm run dev

Test with MCP Inspector

npm run inspect

This opens the official MCP Inspector where you can test every tool visually.

How It Works

The server uses pdf-lib for PDF manipulation and pdf-parse for text extraction. Both run locally with zero external dependencies — no API keys, no network calls, no cloud services.

Communication uses the MCP stdio transport, meaning the server runs as a local process that your AI client spawns and talks to via stdin/stdout.

Roadmap

  • [ ] PDF compression (reduce file size)
  • [ ] Image extraction from PDFs
  • [ ] PDF to images (page thumbnails)
  • [ ] Add page numbers
  • [ ] PDF encryption / password protection
  • [ ] Fill PDF form fields
  • [ ] OCR for scanned PDFs (via Tesseract)
  • [ ] Image to PDF conversion

Contributing

PRs welcome. Run npm run inspect to test your changes before submitting.

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选