mcpField
S
StayPut

StayPut

Local
stayput.devProductivity0Updated 1d ago

About StayPut

StayPut is an MCP server for processing PDFs and photos locally, for people using clients such as Claude, Cursor, or VS Code. Files are read from and written to disk without uploads, and tools create new files rather than modifying inputs.

Key features

  1. 01Merge, split, and rotate PDFs
  2. 02Extract, reorder, or drop PDF pages
  3. 03Add page numbers to PDFs
  4. 04Convert JPG and PNG images to PDF
  5. 05Inspect and remove photo metadata

Use cases

  1. 01Combine local invoice PDFs
  2. 02Extract selected pages from a contract
  3. 03Add page numbers to a thesis
  4. 04Check photo GPS data and create a cleaned copy

MCP support

The MCP server provides local PDF and photo tools to MCP-compatible clients. It reads and writes files on the machine and makes no network requests.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"keenanlk-stayput": {
"command": "npx",
"args": [
"-y",
"stayput-mcp"
]
}
}
}
Run commandnpx -y stayput-mcp

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmstayput-mcp0.1.0

Tools

9

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
pathstringYesPath to the PDF.
passwordstringNoPassword for a PDF that asks for one when opened. Used only on this machine.

Details

From the project README

Stayput MCP server

Local PDF and photo tools for Claude, Cursor, VS Code and any other app that speaks the Model Context Protocol. Ask your assistant to merge PDFs, pull out pages, or remove the GPS location from a photo, and it does the work on your own machine.

It runs the same code as stayput.dev, the browser version. Your files are read from disk and written back to disk; nothing is uploaded, and the server makes no network requests. It is free and open source (MIT), with no account and no API key.

Tools

ToolWhat it does
merge_pdfsCombine PDFs into one, in the order given
extract_pdf_pagesKeep only some pages, reorder them ("3,1,2") or drop pages
split_pdfSplit into one file per page, or every N pages
rotate_pdfRotate all pages or chosen pages by 90, 180 or 270 degrees
number_pdf_pagesStamp page numbers, e.g. "Page {n} of {total}"
pdf_infoPage count, page sizes and title
images_to_pdfJPG and PNG images into one PDF, one per page, no re-compression
inspect_image_metadataShow GPS location, camera, capture time and other hidden metadata in a photo
strip_image_metadataWrite a copy of a JPG, PNG or WebP with EXIF, GPS, XMP and comments removed, without re-encoding

Every tool writes a new file and returns its path. Input files are never modified, and an existing file is never overwritten (you get file-1.pdf instead). Encrypted PDFs (bank statements, forms with printing restrictions) are decrypted locally with qpdf; for PDFs that need a password to open, the assistant passes it in the password argument.

Install

Requires Node.js 20 or newer.

Claude Code

claude mcp add stayput -- npx -y stayput-mcp

Claude Desktop, Cursor, Windsurf and other JSON configs (claude_desktop_config.json, .cursor/mcp.json, ...)

{
  "mcpServers": {
    "stayput": {
      "command": "npx",
      "args": ["-y", "stayput-mcp"]
    }
  }
}

VS Code

code --add-mcp '{"name":"stayput","command":"npx","args":["-y","stayput-mcp"]}'

Then ask things like:

  • "Merge invoice-march.pdf and invoice-april.pdf in ~/Downloads"
  • "Take pages 2 to 5 out of contract.pdf"
  • "Does IMG_2041.jpg have a location in it? If so, make a copy without it"
  • "Number the pages of thesis.pdf, starting on page 3"

Relative paths are resolved from the folder the server was started in, so absolute paths or ~/... are the safest thing to give it.

Not covered here

HEIC, WebP and AVIF conversion, compression, PDF to image and PDF signing need a browser engine. They are on stayput.dev, which works the same way: in your browser, nothing uploaded.

Development

cd mcp
npm install
npm test   # builds dist/index.js and runs the end-to-end tests

The tests use the site's fixtures; generate them first from the repository root with python3 tests/fixtures/make-fixtures.py && node tests/fixtures/make-pdf.mjs (needs Pillow and pillow-heif).

The server imports the PDF and metadata code from ../src/lib and bundles it with esbuild (build.mjs). Two browser-only modules are swapped at build time: src/unlock.ts loads qpdf from node_modules instead of a <script> tag, and src/no-canvas.ts stands in for the canvas helpers that only PDF compression uses.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.