StayPut

io.github.keenanlk由 GitHub 账号 keenanlk 发布v0.1.0更新于 Oct 24, 2026

Local PDF and photo tools: merge, split, rotate, number PDFs; strip photo GPS. No uploads.

已验证STDIO仅桌面文件与存储媒体与设计

概览

AI 生成的概览

本地 MCP 服务器,让助手在本机合并、拆分、旋转和编号 PDF,并清除照片中的 GPS 等元数据。

可以做什么
  • 合并 PDF、拆分、提取或重排页面、旋转页面、加盖页码,并读取页数、页面尺寸和标题
  • 把 JPG 和 PNG 图片合成一个 PDF,不重新压缩
  • 查看照片隐藏的元数据(GPS 位置、相机、拍摄时间),并输出去除 EXIF、GPS、XMP 和注释的副本
  • 每个工具都会写入新文件并返回其路径;输入文件不会被修改,已有文件也不会被覆盖
适用场景
适合让助手完成日常的 PDF 拼装、页面调整,以及在分享前清理照片隐私信息,而无需把文件上传到在线服务。常用于发票、合同、论文和需要去除位置信息的照片。
运行要求
需要 Node.js 20 或更高版本;以 npm 包 stayput-mcp 安装并通过 stdio 在本地运行(例如使用 npx)。无需账号、API 密钥或网络访问。加密 PDF 会在本地用 qpdf 解密;需要密码打开的 PDF 需通过 password 参数传入密码。
安装前请注意
工具会向磁盘写入新文件,请只指向你愿意被写入的目录;相对路径以服务器启动目录为基准解析。受密码保护的 PDF 密码会作为工具参数交给助手,因而出现在对话中。元数据检查会暴露照片的位置信息;服务器不发起网络请求,文件留在本地。

安装

在 SourceWeft 中

  1. 打开 控制台中的 StayPut,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

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

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

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

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

VS Code

sh
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

sh
cd mcpnpm installnpm 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.

来源:mcp/README.md,提交 49a7dce

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.0最新Sep 29, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分