Skip to main content

n1mem-mcp · N1Mem 记忆 MCP Server

powered by T1Mem engine · BYOK(自带 Key)· 零依赖(仅标准库)

让 Claude / Cursor / OpenClaw 之类支持 MCP 的客户端,直接获得 N1Mem 的长期记忆能力。

  • memory_write:写入一段记忆(持久化 + 建向量,写入即可召回)
  • memory_recall:按自然语言问题召回记忆;返回的 answer 已基于命中记忆接地,retrieved 给出命中的明文记忆
  • memory_health:查看服务健康与 provider 可用性

本 Server 是薄层透传:不含任何记忆逻辑,只把工具调用转发到 N1Mem C-2 API(https://api.n1mem.com)。因此零依赖、可塞进任意环境。

安装

pip install n1mem-mcp

获取 Key

试用 Key 当前由 N1Mem 团队发放(自助注册 / 定价页在路上)。拿到形如 tk_xxx 的 Key。

配置(Cursor / Claude / OpenClaw)

把下面片段加进你的 MCP 配置(~/.cursor/mcp.json、Claude 的 claude_desktop_config.json、或 OpenClaw 的 MCP 配置):

{
  "mcpServers": {
    "n1mem": {
      "command": "n1mem-mcp",
      "env": { "N1MEM_API_KEY": "tk_xxx" }
    }
  }
}

或用模块方式启动(无需 pip install 也可,只要能 import):

{
  "mcpServers": {
    "n1mem": {
      "command": "python",
      "args": ["-m", "n1mem_mcp"],
      "env": { "N1MEM_API_KEY": "tk_xxx" }
    }
  }
}

环境变量

变量 说明 默认
N1MEM_API_KEY 你的试用 Key(必填) 空
N1MEM_BASE_URL C-2 API 地址 https://api.n1mem.com
N1MEM_MCP_TIMEOUT 单条调用超时(秒) 90

已知限制(诚实告知)

  • 暂无 delete / update 工具(服务端未就绪,故不暴露);需要删记忆请联系团队。
  • health() 可能返回 status: degraded:这是设计使然(部分上游 provider 未配置),核心记忆链路(存储 / 嵌入 / 写入 / 召回)正常。

与 n1mem 的区别

包 形态 用途
n1mem Python SDK(函数调用) 代码里直接 m.ingest() / m.recall()
n1mem-mcp MCP Server(stdio) 让 MCP 客户端(Claude/Cursor/OpenClaw)以工具方式调用记忆

Metadata

Release files for n1mem-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for n1mem-mcp 0.1.0
File Size Uploaded
n1mem_mcp-0.1.0.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for n1mem-mcp 0.1.0
File Interpreter ABI Platform
n1mem_mcp-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.8 kB

Release files / n1mem_mcp-0.1.0.tar.gz

Download URL n1mem_mcp-0.1.0.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0e8910a3612471843c240898562b11e8994e6ba6167ce4891186ad13e98af53b
BLAKE2b-256 checksum
How to use checksums
976711c574b1e777d491355e7cc72af68d375f3fd906571096a324d269897cfd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.12

Release files / n1mem_mcp-0.1.0-py3-none-any.whl

Download URL n1mem_mcp-0.1.0-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e110077cf71098188d249201deb78e9a6218a5802a57fe7f61197ce5fd41ed1b
BLAKE2b-256 checksum
How to use checksums
967ffc7f234938cb76c3497f4764d5c729967e99f7e05e16e2459c544aa832c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.12

Release history Release notifications | RSS feed

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page