
通用内存协议(UMP)——代理内存的开放标准。第三层互操作层,位于MCP(工具)和A2A(协调)之后。
概览
为人工智能智能体设计便携式存储器。教一个工具,下一个工具就能调用。 稳定版 v1.0 ·https://universalmemoryprotocol.io ·@universalmemoryprotocol/核心 ·MCP,HTTP,文件导出 你的AI工具会学习一些东西——比如这个仓库用的是pnpm,你喜欢简洁的发布说明,上周给你咬的陷阱——但一旦你从Claude Code切换到Cursor再到Codex,所有这些都会丢失。这些知识被困在恰巧学会它的那个工具里。 UMP 解决了这个问题。它定义了内存和操作内存(回忆、记忆、获取、修订、遗忘、反馈),并绑定了 MCP、HTTP 和普通文件。任何会说 UMP 的代理或存储都能读取并扩展相同的内存,所以你教一个工具的事实,下一个工具也能理解。 它是一种协议,而非产品:无需运行数据库,无需注册服务。参考实现将内存保存在你拥有的可携带、签名文件(~/.ump/memory.ump.json)。
概述(AI 翻译)
人工智能代理的便携式存储器。教一个工具,下一个工具就能回忆。
状态: 稳定v1.0 ·站点: ·包: @universalmemoryprotocol/core ·绑定: MCP、HTTP、文件导出
你的AI工具会学习一些东西——比如这个仓库用pnpm,你喜欢简洁的发布 笔记,上周咬你的陷阱——然后一出现就全都失去了 从Claude Code切换到Cursor再到Codex。知识被困在其中 无论哪个工具恰好学会了它。
UMP解决了这个问题。它定义了一个记录格式用于内存和六个操作 用于处理它(回忆、记忆、理解、修改、遗忘、反馈),用 用于MCP、HTTP和纯文件的绑定。任何支持UMP的代理或存储都可以 读取并扩展相同的记忆,所以你教的是一个事实,一个工具是为 下一个。
它是一个协议,而非产品:无需运行数据库,无需注册服务。
参考实现将内存保存在你拥有的可携带、签名文件中
(~/.ump/memory.ump.json)。复制该文件,你就移动了你的代理人的内存
对任何说UMP的手段来说。
已经有内存了 CLAUDE.md/AGENTS.md、Recall 导出、Obsidian、Postgres,
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Universal Memory Protocol (UMP)
Portable memory for AI agents. Teach one tool, recall it in the next.
Status: Stable v1.0 · Site: · Package: @universalmemoryprotocol/core · Bindings: MCP, HTTP, file export
Your AI tools learn things - that this repo uses pnpm, that you like terse release notes, the gotcha that bit you last week - then lose all of it the moment you switch from Claude Code to Cursor to Codex. The knowledge is trapped inside whichever tool happened to learn it.
UMP fixes that. It defines one record format for a memory and six operations for working with it (recall, remember, get, revise, forget, feedback), with bindings for MCP, HTTP, and plain files. Any agent or store that speaks UMP can read and extend the same memory, so a fact you teach one tool is there for the next one.
It is a protocol, not a product: no database to run, no service to sign up for.
The reference implementation keeps memory in a portable, signed file you own
(~/.ump/memory.ump.json). Copy that file and you have moved your agent’s memory
to any other tool that speaks UMP.
Already have memory in CLAUDE.md/AGENTS.md, Recall exports, Obsidian, Postgres, Redis, SQLite, or a vector DB? UMP wraps those rather than replacing them - see Existing Memory Imports and Store Implementations.
Use It Now
Add persistent UMP memory to any MCP host:
{
"mcpServers": {
"ump": { "command": "npx", "args": ["-y", "@universalmemoryprotocol/core", "ump-memory"] }
}
}
The server exposes:
ump.capabilitiesump.recallump.rememberump.getump.reviseump.forgetump.feedback
By default, ump-memory stores portable records in ~/.ump/memory.ump.json.
Set UMP_STORE=markdown to store human-editable *.ump.md records instead.
Implement It
Use the MCP server for immediate agent integration, the TypeScript SDK for a native UMP implementation, or the HTTP binding from any language.
// MCP host config: Claude Code, Codex, Cursor, or any MCP client.
{
"mcpServers": {
"ump": {
"command": "npx",
"args": ["-y", "@universalmemoryprotocol/core", "ump-memory"]
}
}
}
import {
JsonFileStore,
UmpServer,
generateKeyPair,
} from "@universalmemoryprotocol/core";
const key = generateKeyPair();
const store = await JsonFileStore.open(".ump/memory.ump.json");
const ump = new UmpServer({
name: "my-agent",
version: "1.0.0",
conformance: "L2",
store,
key,
});
await ump.remember({
kind: "procedural",
body: { text: "Use pnpm for this repository." },
scope: { owner: key.did, project: "github.com/acme/app", visibility: "private" },
provenance: { actor: key.did, actor_kind: "user", method: "user_correction" },
});
const memories = await ump.recall({
query: "package manager",
安装
npx -y @universalmemoryprotocol/core ump-memory配置
{
"mcpServers": {
"ump": { "command": "npx", "args": ["-y", "@universalmemoryprotocol/core", "ump-memory"] }
}
}