Skip to main content
Glama
mnemoverse

Mnemoverse Memory

@mnemoverse/mcp-memory-server

npm version npm downloads MCP Registry License: MIT Research: SLoD arXiv Glama quality

面向 AI 智能体的托管记忆服务,能够学习哪些事实真正重要。反馈会对召回结果进行重排序——这是基于预测误差的 Rescorla-Wagner 更新,而非相似度评分——因此有帮助的记忆会上升,误导性的记忆会下沉,且召回更偏向近期记忆(指数级的新近性增强,半衰期约 30 天)。该引擎还内置了整合机制(HDBSCAN 聚类,并带有 Von Restorff 保护,使独特记忆在压缩中得以保留)。一个 API 密钥即可在 Claude、Cursor、VS Code、ChatGPT 以及任何 MCP 客户端中使用。

跨会话、跨项目、跨工具持久化的记忆——并且越用越好。托管式服务,无需自行搭建基础设施,也不锁定于单一云平台。

⭐ 如果 Mnemoverse 让你免于向智能体反复解释上下文,请给仓库点个星。这能帮助其他开发者发现它。

快速开始

1. 获取免费 API 密钥

console.mnemoverse.com 注册——只需 30 秒,无需信用卡。

2. 连接到你的 AI 工具

Claude Code — 通过 CLI 添加:

claude mcp add mnemoverse -s user \
  -e MNEMOVERSE_API_KEY=mk_live_YOUR_KEY \
  -e MNEMOVERSE_API_URL=https://core.mnemoverse.com/api/v1 \
  -- npx -y @mnemoverse/mcp-memory-server@latest

Cursor — 点击安装,或添加到 .cursor/mcp.json

Add to Cursor

{
  "mcpServers": {
    "mnemoverse": {
      "command": "npx",
      "args": [
        "-y",
        "@mnemoverse/mcp-memory-server@latest"
      ],
      "env": {
        "MNEMOVERSE_API_KEY": "mk_live_YOUR_KEY",
        "MNEMOVERSE_API_URL": "https://core.mnemoverse.com/api/v1"
      }
    }
  }
}

VS Code — 添加到 .vscode/mcp.json(注意:VS Code 使用 servers,而非 mcpServers):

{
  "servers": {
    "mnemoverse": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mnemoverse/mcp-memory-server@latest"
      ],
      "env": {
        "MNEMOVERSE_API_KEY": "mk_live_YOUR_KEY",
        "MNEMOVERSE_API_URL": "https://core.mnemoverse.com/api/v1"
      }
    }
  }
}

Windsurf — 添加到 ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mnemoverse": {
      "command": "npx",
      "args": [
        "-y",
        "@mnemoverse/mcp-memory-server@latest"
      ],
      "env": {
        "MNEMOVERSE_API_KEY": "mk_live_YOUR_KEY",
        "MNEMOVERSE_API_URL": "https://core.mnemoverse.com/api/v1"
      }
    }
  }
}

更多 MCP 客户端 — 同一个服务器,不同的配置文件:

Zed — 添加到 ~/.config/zed/settings.json(Zed 使用 context_servers,且必须设置 "source": "custom"):

{
  "context_servers": {
    "mnemoverse": {
      "source": "custom",
      "command": "npx",
      "args": [
        "-y",
        "@mnemoverse/mcp-memory-server@latest"
      ],
      "env": {
        "MNEMOVERSE_API_KEY": "mk_live_YOUR_KEY",
        "MNEMOVERSE_API_URL": "https://core.mnemoverse.com/api/v1"
      }
    }
  }
}

JetBrains(AI Assistant)— Settings → Tools → AI Assistant → Model Context Protocol (MCP),然后粘贴:

{
  "mcpServers": {
    "mnemoverse": {
      "command": "npx",
      "args": [
        "-y",
        "@mnemoverse/mcp-memory-server@latest"
      ],
      "env": {
        "MNEMOVERSE_API_KEY": "mk_live_YOUR_KEY",
        "MNEMOVERSE_API_URL": "https://core.mnemoverse.com/api/v1"
      }
    }
  }
}

ClineMCP Servers → Configure(或编辑 cline_mcp_settings.json)。Cline 会按字面值读取 env 变量,因此请粘贴你的真实密钥——而不是 ${VAR} 引用:

{
  "mcpServers": {
    "mnemoverse": {
      "command": "npx",
      "args": [
        "-y",
        "@mnemoverse/mcp-memory-server@latest"
      ],
      "env": {
        "MNEMOVERSE_API_KEY": "mk_live_YOUR_KEY",
        "MNEMOVERSE_API_URL": "https://core.mnemoverse.com/api/v1"
      }
    }
  }
}

Continue — 添加 ~/.continue/mcpServers/mnemoverse.yaml(Continue 使用 YAML):

mcpServers:
  - name: mnemoverse
    command: npx
    args:
      - "-y"
      - "@mnemoverse/mcp-memory-server@latest"
    env:
      MNEMOVERSE_API_KEY: "mk_live_YOUR_KEY"
      MNEMOVERSE_API_URL: "https://core.mnemoverse.com/api/v1"

为什么用 @latest?裸的 npx @mnemoverse/mcp-memory-server 会被 npm 无限期缓存,不再检查注册表。@latest 后缀会强制在每次 Claude Code / Cursor / VS Code 会话启动时进行元数据查询(约 100-300 毫秒),确保你始终能获取新版本。

⚠️ 编辑配置后请重启你的 AI 客户端。 MCP 服务器只在客户端启动时才会被加载。

3. 试试看——30 秒验证是否生效

在你的 AI 对话中粘贴以下内容:

"记住我最喜欢的 TypeScript 框架是 Hono,请调用 memory_write 保存它。"

你的智能体应该会调用 memory_write 并确认记忆已存储。

然后打开一个新的对话 / 新会话(这正是关键所在——记忆在重启后依然存在),并询问:

"我最喜欢的 TypeScript 框架是什么?"

你的智能体应该会调用 memory_read,找到该条目,并回答 "Hono"。如果做到了——说明你已经配置成功。接下来想写什么都可以。

如果它没有记住:请检查客户端是否已完全重启,以及配置中是否填写了真实的 mk_live_... 密钥,而不是占位符。

Related MCP server: memmd-mcp

工具

工具

功能

memory_write

存储一条记忆——见解、偏好、经验教训

memory_read

通过自然语言查询搜索记忆(可选的新近性排序、时间范围、作者排除)

memory_list_recent

按最新优先列出记忆——无需查询;since/until 范围(含边界)+ 游标分页

memory_feedback

将记忆评为有帮助或无帮助(改善未来召回)

memory_stats

查看已存储多少条记忆、存在哪些领域

memory_create_room

创建共享记忆房间;其地址可作为写入/读取时的 domain 使用

memory_invite_to_room

为你拥有的房间生成一次性邀请(代码 + 链接)

memory_join_room

使用邀请码(mnvr_...)加入共享房间

memory_list_rooms

列出你拥有或加入的房间,以及每个房间可用作 domain 的地址

vault_list

按别名和用途列出 Vault 密钥——绝不返回密钥值

建议:该记住什么

  • 用户偏好:"我使用深色模式"、"我更喜欢 Tailwind 而不是 CSS modules"

  • 项目上下文:"这个项目使用 PostgreSQL + Prisma"、"部署到 Railway"

  • 经验教训:"在这个仓库上推送前一定要先运行测试"

  • 已做的决策:"我们选择 REST 而非 GraphQL,因为缓存更简单"

  • 人员与角色:"Alice 是设计师,Bob 负责 API"

  • 过去的错误:"不要在周五部署——这是用惨痛教训换来的"

通用记忆

同一个 API 密钥适用于所有工具。在 Claude Code 中写入一条记忆——在 Cursor 中读取。在 VS Code 中学到的东西——你的 GPT Custom Action 也知道。

                    ┌── Claude Code (this MCP server)
                    ├── Cursor (this MCP server)
   Mnemoverse API ──├── VS Code (this MCP server)
   (one memory)     ├── GPT (Custom Actions)
                    ├── Python SDK (pip install mnemoverse)
                    └── REST API (curl)

配置

环境变量

是否必需

默认值

MNEMOVERSE_API_KEY

每次工具调用都需要——服务器在无密钥的情况下也能启动并列出工具

MNEMOVERSE_API_URL

https://core.mnemoverse.com/api/v1

链接

设置与参考

背景阅读

项目

隐私政策

本服务器会向 Mnemoverse API(core.mnemoverse.com)发送工具调用所携带的内容(使用你的 API 密钥进行身份验证)——除此之外,它看不到的任何内容都不会发送。它不会读取你 AI 客户端的对话历史、你的本地文件,或任何你没有传递给 memory_* / vault_* 工具的内容。存储的记忆归属于你的账户;Mnemoverse 绝不会出售它们,也绝不会自行分享它们。唯一的分享途径是你自己创建的:邀请某人加入共享房间,即授予其助手访问该房间记忆的权限,且受邀请范围的限制。

每个工具发送的数据:

工具

发送的数据

memory_write

你传入的 contentconceptsdomain

memory_read

query,以及任何筛选条件:domainsince/untilexclude_authortop_korder_by

memory_list_recent

信息流筛选条件:domainsince/untilexclude_authorlimitcursor

memory_feedback

被评分的 atom_ids 以及 outcome 评分

memory_create_room

房间的 namedescription

memory_invite_to_room

room_id、邀请 scope 和有效期

memory_join_room

邀请 code

memory_stats / memory_list_rooms / vault_list

无请求体——经过身份验证的 GET 请求

有一项内容会在你未明确请求时发出:自 0.8.1 起,当搜索或信息流返回空结果时,服务器会发送一或两个经过身份验证的只读 GET 探测请求(/memory/rooms 和/或 /memory/stats),以便空结果能说明它未覆盖的内容。这些探测请求只携带你的 API 密钥,不包含其他任何内容,不会改变任何存储状态,并已在 CHANGELOG 中披露。

隐私政策

https://mnemoverse.com/privacy

保留与删除

通过写入一条新记忆来纠正错误或过时的记忆;删除是 REST API 上的管理操作,不通过此 MCP server 公开

联系方式

hello@mnemoverse.com

许可证

MIT © Mnemoverse

Install Server
A
license - permissive license
A
quality
A
maintenance

Maintenance

Maintainers
16dResponse time
6dRelease cycle
20Releases (12mo)
Commit activity
Issues opened vs closed

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Persistent memory API for AI agents — store, recall, and inject semantically-searchable context across sessions. EU-hosted, GDPR-compliant. Supports Claude, Cursor, Cline, and any MCP-compatible client.
    4
    2
    MIT
  • A
    license
    B
    quality
    D
    maintenance
    A shared memory layer for AI agents — one memory.md synced across Claude Desktop, Cursor, Claude Code, OpenAI Codex, and any MCP client.
    4
    2
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Persistent memory for AI coding agents that stores and recalls preferences, decisions, and conventions via semantic similarity, with zero cloud dependencies and plug-and-play MCP integration for Claude Code.
    Apache 2.0

View all related MCP servers

Related MCP Connectors

  • Persistent memory for AI agents — verbatim conversations, searchable by meaning.

  • Persistent memory for AI agents. Search, store, and recall across sessions.

  • Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mnemoverse/mcp-memory-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server