
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.
概览
本地 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 参数传入密码。
安装
在 SourceWeft 中
- 打开 控制台中的 StayPut,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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
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 Desktop, Cursor, Windsurf and other JSON configs (claude_desktop_config.json, .cursor/mcp.json, ...)
VS Code
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
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版本历史
1- v0.1.0最新Sep 29, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分