Stashpad
概览
作者提供的说明(英文原文)
Local memory for any AI agent: Markdown files with sources, a review queue and search.
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i1 项中通过 1 项依据公开信息检查;尚未扫描代码
- 使用情况i非常新↓ 279/周 · ★ –
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 文档、表格与办公
- 你需要填写:STASHPAD_PASSPHRASE
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:1 项中通过 1 项
- 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
- 需要你自己填写:
STASHPAD_DIR,STASHPAD_PASSPHRASE
标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
- npm已安装 Node.js(用于 npx 命令)
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"stashpad": {
"command": "npx",
"args": [
"-y",
"stashpad",
"mcp"
],
"env": {
"STASHPAD_DIR": "your-value",
"STASHPAD_PASSPHRASE": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add stashpad --env STASHPAD_DIR=your-value --env STASHPAD_PASSPHRASE=your-value -- npx -y stashpad mcp运行前请先填写空着的值。
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"stashpad": {
"command": "npx",
"args": [
"-y",
"stashpad",
"mcp"
],
"env": {
"STASHPAD_DIR": "your-value",
"STASHPAD_PASSPHRASE": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"stashpad": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"stashpad",
"mcp"
],
"env": {
"STASHPAD_DIR": "your-value",
"STASHPAD_PASSPHRASE": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
需要你填写的值
STASHPAD_DIRenvFolder where the memories live (default: ./.stashpad/memories in the working folder)- Only for a store encrypted with 'stashpad encrypt'
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 laaielichter 验证,该账户拥有此仓库
- … 尚未检查
仍在维护
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与“文档、表格与办公”中的其他服务器比较i
- 星标数多于此分类中其他 3577 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 3577 个服务器的 87% 更新
- 基础检查结果等于或优于此分类中其他 3577 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Stashpad 安全吗?
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
你需要填写:STASHPAD_PASSPHRASE
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于–,最新版本(0.3.0)于4天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
有什么可以替代它?
同一分类中有:Agent-Native Calendar, Excel MCP Server, MCP Server for Excel
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Excel MCP Server
Create and edit Excel files with AI: charts, PivotTables, formulas. No Excel needed.
MCP Server for Excel
Excel automation for AI - Sheets, Power Query, DAX, VBA, Tables, Ranges and more. Windows only.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Stashpad Good work. Worth remembering. Project website · Get started · Connect your agent · Contribute
Local memory for any AI coding agent: an MCP server and CLI that keep plain Markdown notes with sources, a review queue and search.
Works with Claude Code, Codex, Cursor, VS Code, Gemini CLI and any other MCP client, or with no MCP at all (plain commands and an AGENTS.md block). No model, no cloud, no dependencies: Node 20 or newer.
Quickstart
npm install -g stashpad
stashpad setup # prints the MCP settings for your agent app (generic, claude-code, vscode, codex) stashpad doctor --client # starts the server the way your agent app does and checks it answers
Expected: client start: the server answered with 8 tools in ... ms and Nothing is broken.
Claude Code users can install the plugin instead, which also adds the hooks below: /plugin marketplace add laaielichter/stashpad, then /plugin install stashpad@stashpad (or stashpad@reverseport from the ReversePort marketplace).
Why Stashpad?
- Your agent stops forgetting after compaction. Pinned rules and the latest handoff come back at the start of every session and right after
/compact. - Rules you set stay in front of the agent.
stashpad pinkeeps the few rules that matter in every brief; each prompt gets only the memories that clearly match it, once per session. - Memory that knows when the code moved on. Anchor a memory to its files and recall says "changed since saved", follows a renamed file and skips a memory whose files are gone. Decisions keep why they were made and what lost (
stashpad decide). - Nothing ends up in memory behind your back. Agent, tool and web notes wait for a person; near-copies, secrets and hidden text are refused.
- You can read, fix and keep it. Memories are Markdown files with a source and dates, in your project, in git if you want. Old facts are ended, never overwritten.
- You see what the agent got.
stashpad shownlists which memories were put in front of the agent and how many characters, and a status line keeps the review queue in view. - It keeps working. One store per project (worktrees share it), a lock for parallel writers, snapshots before changes,
doctorthat says what to fix.
How it compares
| Stashpad | mem0 (open source) | MCP reference memory server | CLAUDE.md / AGENTS.md by hand | |
|---|---|---|---|---|
| Needs | Node 20 | an LLM and an embedding/vector store | Node | nothing |
| Network | none: no network calls, no telemetry | calls an LLM and embedding provider (a hosted API by default; local models can be configured) | none | none |
| Account | no | no for the open-source library (the hosted platform needs one) | no | no |
| Storage | Markdown files, one per memory | vector store (+ history DB) | one JSON Lines graph file | one Markdown file |
| What gets saved | what a person writes, or an agent proposes and a person accepts | facts an LLM extracts from conversations | what the agent writes | what you write |
| Agent writes | wait for a person to accept them | stored directly | stored directly | the agent can edit the file if it may write files |
| Search | words (BM25) + synonyms; misses some rewordings | semantic (embeddings) | substring match | the agent reads all of it |
| Old facts | ended with dates and a supersede chain | updated or deleted | edited in place | edited by hand |
| Compaction | brief and pins come back right after it; an automatic handoff is left before it; per-prompt recall starts over | depends on the client | depends on the client | yes (always loaded) |
| Safety | review queue, secret and hidden-text checks, fenced and defused output, optional encryption | depends on setup | none built in | none |
| License | MIT | Apache-2.0 | MIT / Apache-2.0 | – |
What Stashpad does not do: semantic search (word search finds about 2 of 3 reworded questions in our eval), automatic extraction of memories from chats (by design), sync between computers (use git), or a shared server for a team.
Start and end of a session
stashpad brief # short summary: pinned rules, newest memories, open handoff
stashpad recall "add a postgres migration" # the few memories that clearly match a request stashpad decide "We use Postgres" --why "several workers write at once" --rejected SQLite # a decision with its reason stashpad handoff leave --text "Half done: auth. Next: tests." # a note the next session reads once stashpad sync-agents AGENTS.md # put the brief in a file agents already read (no MCP needed)
With the Claude Code plugin these run as hooks: at session start and after compaction, on each prompt (each memory once per session), and before compaction and at session end (an automatic handoff with the branch and uncommitted files; a session that crashed is noticed at the next start). Pause them per project with stashpad hooks off; add stashpad setup claude-code --status-line for a status bar line. See docs/HOOKS.md. Agents: read AGENT-GUIDE.md.
Develop
Requires Node 20 or newer. No other dependencies.
npm test # run the tests
npm run build # build dist/ node bin/stashpad.mjs --help
Memories live in .stashpad/memories of the project: the nearest folder above that has one, else the git root, so subfolders and git worktrees share one store. stashpad where shows which store a folder uses and why. Set STASHPAD_DIR or pass --dir to choose yourself. What is true in every project (your language, your commit style) goes in the global store: add --global (or -g).
Use it
stashpad save db-choice --kind decision --source-type user --source-ref "statement in chat" --text "We keep data in SQLite."
stashpad search "sqlite" --json stashpad save db-choice-v2 --kind decision --source-type user --source-ref "later statement" --text "We keep data in Postgres." --supersedes db-choice stashpad history db-choice-v2 stashpad search database --kind decision --as-of 2026-03-01 --explain # what was decided on that day, and why it matched stashpad entities # names, tools and files the memories talk about stashpad about Postgres # every memory about it, and what is mentioned with it stashpad confirm db-choice-v2 # still true; doctor flags agent memories nobody confirmed for 180 days stashpad anchor tax-rules src/billing/tax.ts # recall and lint say when that file changes; confirm re-anchors stashpad anchors --changed # anchored memories whose files changed, moved or are gone stashpad shown # what was put in front of the agent: memory ids and sizes, never text stashpad handoff leave --text "Half done: auth. Next: tests." # a note the next session reads once stashpad handoff claim # take it (a person's notes first); listing never takes one stashpad feedback db-choice --signal stale # helpful, stale or wrong; wrong also asks for it to end stashpad feedback --last --signal wrong # about the memory the prompt hook gave last stashpad lint # what deserves a look; changes nothing
The command line, the MCP server and the review page can run at the same time: every write takes a short lock on the store.
Writes from agents, tools and the web wait in review:
stashpad review
stashpad accept stashpad reject --reason "not verified" stashpad audit
Use it from an MCP client
stashpad setup prints the right block for your client, with the full path to Node (a bare node is the most common reason a server does not connect). It looks like this:
{
"mcpServers": { "stashpad": { "command": "/full/path/to/node", "args": ["/full/path/to/stashpad/bin/stashpad.mjs", "mcp"] } } }
Eight tools: stashpad_search, stashpad_get, stashpad_recent, stashpad_about, stashpad_save, stashpad_forget, stashpad_handoff, stashpad_feedback. stashpad_save takes optional files (read when a person accepts) and, for decisions, why and rejected.
Check it, import into it
stashpad eval # 40 notes, 33 queries (English and Dutch), safety checks; no language model is called. Paraphrased questions are measured too (about 2 of 3 found): word search misses some rewordings, and that is reported openly.
stashpad import notes.jsonl # queue memories from an export; they wait for review stashpad export --out memories.jsonl # back up current memories as JSON Lines (--all adds ended ones) stashpad save --kind fact --source-type user --source-file notes.txt --text "..." # keeps a copy of the raw source
stashpad review also shows when a waiting memory may conflict with a current one, and whether accepting it would end that one.
Review in a page
stashpad ui # opens http://127.0.0.1:4317/ to review, search and read the audit log
stashpad ui --open # the same, and opens the page in your browser
Only this computer can reach the page. It is a small local page with no outside resources. See the decision.
Imports come in as JSON Lines (id, kind, text, optional valid_from, source_ref) or as plain text, one fact per paragraph.
Principles
- Plain files first. The files are the source of truth.
- Nothing from an agent, tool or web page is stored until a person accepts it.
- Secrets are refused at write time: provider keys and tokens (OpenAI, Anthropic, GitHub, GitLab, AWS, Google, Stripe, Slack, npm, Hugging Face, SendGrid and more), JWTs, Bearer tokens, passwords in connection strings, on command lines and in sentences, and the values of this computer's own secret-named environment variables and
.envfiles (compared in memory, never stored). The automatic handoff masks a secret as[REDACTED]instead of dropping the request. - Invisible characters are refused, and look-alike or split-up words cannot hide an instruction or a secret.
- Instruction-like text (English and Dutch) is flagged for the reviewer.
- A gatekeeper refuses agent notes that are too short or near-copies of an existing or waiting memory, and logs the refusal in the audit log. Notes a person writes are never blocked.
- Limits: 4000 characters per memory, 200 writes waiting for review.
- Recalled text is labelled as data, not instructions, and comes inside one
block; tags that could pass for the agent app's own text (,, …) are defused. - Paths a memory is anchored to sta
只显示了开头部分;其余内容请在仓库中阅读