npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mcp-pdf-utils

v0.1.1

Published

Local MCP server for PDF manipulation — merge, split, rotate, extract, watermark, metadata. Zero API keys, fully offline. Works with Claude, Cursor, ChatGPT.

Readme

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


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