Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Shared, governed long-term memory for AI agents across tools and sessions via MCP and REST.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
XMEMO_KEY, XMEMO_URL, Authorization, X-Memory-OS-Agent-ID, X-Memory-OS-Agent-Instance-ID, X-Memory-OS-Device-ID, X-Memory-OS-Device-Label标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
这个地址需要在请求的 header 中放入密钥,而添加连接器的菜单无法设置。请改用 Claude Code、Cursor 或 VS Code。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"xmemo": {
"command": "npx",
"args": [
"-y",
"@xmemo/client",
"mcp",
"serve"
],
"env": {
"XMEMO_KEY": "your-value",
"XMEMO_URL": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add --transport http xmemo https://xmemo.dev/mcp --header 'Authorization: your-value' --header 'X-Memory-OS-Agent-ID: your-value' --header 'X-Memory-OS-Agent-Instance-ID: your-value' --header 'X-Memory-OS-Device-ID: your-value' --header 'X-Memory-OS-Device-Label: your-value'claude mcp add xmemo --env XMEMO_KEY=your-value --env XMEMO_URL=your-value -- npx -y @xmemo/client mcp serve运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"xmemo": {
"url": "https://xmemo.dev/mcp",
"headers": {
"Authorization": "your-value",
"X-Memory-OS-Agent-ID": "your-value",
"X-Memory-OS-Agent-Instance-ID": "your-value",
"X-Memory-OS-Device-ID": "your-value",
"X-Memory-OS-Device-Label": "your-value"
}
}
}
}粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"xmemo": {
"command": "npx",
"args": [
"-y",
"@xmemo/client",
"mcp",
"serve"
],
"env": {
"XMEMO_KEY": "your-value",
"XMEMO_URL": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"xmemo": {
"type": "http",
"url": "https://xmemo.dev/mcp",
"headers": {
"Authorization": "your-value",
"X-Memory-OS-Agent-ID": "your-value",
"X-Memory-OS-Agent-Instance-ID": "your-value",
"X-Memory-OS-Device-ID": "your-value",
"X-Memory-OS-Device-Label": "your-value"
}
}
}
}粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"xmemo": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@xmemo/client",
"mcp",
"serve"
],
"env": {
"XMEMO_KEY": "your-value",
"XMEMO_URL": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个地址需要在请求的 header 中放入密钥,而添加连接器的菜单无法设置。请改用 Claude Code、Cursor 或 VS Code。
你的选择通过 Cookie 保存在这台设备上,无需账户。
XMEMO_URL envAuthorization 机密 必填 HTTP headerX-Memory-OS-Agent-ID HTTP headerX-Memory-OS-Agent-Instance-ID HTTP headerX-Memory-OS-Device-ID HTTP headerX-Memory-OS-Device-Label HTTP header这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
我们还没有读取这个服务器的工具列表;我们会轮流检查各个端点。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 yonro 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
尚未检查;我们会轮流检查各个端点
尚未检查;我们会轮流检查各个端点
尚未检查;我们会在检查端点时读取工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:XMEMO_KEY, Authorization
两种方式都可以:安装在你的电脑上,或者连接云端版本。
GitHub 仓库最后更新于–,最新版本(0.4.346)于42天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
XMemo is a user-owned Memory OS for AI agents: persistent memory, project context and session continuity with agent identity, provenance and governed access, shared across AI clients through MCP, the CLI and a public REST API surface.
English · 简体中文 | Documentation · Hosted MCP
Quick start · What this repo contains · Beyond MCP · Integrations · Connection modes · Plugins · Commands · Versioning · Security
xmemo CLI for setup, diagnostics, behavior profiles, and memory commands.https://xmemo.dev/mcp) and the local xmemo-mcp stdio server.skills/xmemo for agent platforms and the native plugin index (src/plugins/index.json).server.json), LobeHub (lhm.plugin.json), and AI agents (context7.json).The hosted service implementation is private.
MCP is one access surface of XMemo, not the product boundary. XMemo provides a persistent, governed memory operating layer across AI tools and agents:
xmemo), and the public REST API.*Preview: Cloud Skills; Dream (off by default); Teams (Business plan not yet available). Knowledge Bases are available where enabled for the account.*
@xmemo/client is the official control plane for connecting AI tools to XMemo. It makes setup repeatable, keeps credentials out of project files, and gives every supported client a consistent path to durable, user-owned memory.
The package is deliberately small: the CLI runtime, safe client configuration, behavior profiles, XMemo skills, and marketplace metadata. Server code, databases, deployment files, logs, and internal operations remain outside the npm distribution.
| Package | @xmemo/client |
| Primary command | xmemo (alias: client) |
| Local MCP command | xmemo-mcp |
| Hosted MCP | https://xmemo.dev/mcp |
| Runtime | Node.js 20 or later |
| License | MIT |
xmemo init)For an interactive first-run experience across account authentication, detected clients, agent behavior instructions, MCP server setup, skills, and plugins, run:
npm install -g @xmemo/client
xmemo init
Flags and options:
xmemo init --dry-run: View the full onboarding plan without performing network calls or disk writes.xmemo init --yes: Automatically accept and apply all onboarding steps without interactive prompts.xmemo init --json: Emit structured JSON for the plan or result envelope.xmemo init --client ...: Restrict onboarding to specific clients (e.g., cursor, codex, claude-code).xmemo start: Alias for xmemo init with quick-start walkthrough steps.Global installation exposes xmemo as the primary command, and also provides client and memory-os as aliases.
xmemo account login
xmemo doctor xmemo setup codex xmemo status
Replace codex with your client. Preview a configuration before writing it:
xmemo setup cursor --dry-run
You can also run any CLI command directly without a global install via npx @xmemo/client :
# Check version or health
npx @xmemo/client --version npx @xmemo/client doctor
npx @xmemo/client init
npx @xmemo/client skill install npx @xmemo/client mcp serve
[!TIP]
Start with
xmemo init(orxmemo account login,xmemo doctor, andxmemo setup).
Hand-edit MCP configuration only when a client has no verified setup path.
The XMemo CLI architecture is built on four core design principles:
xmemo )Every integration component is a first-class resource with predictable lifecycle actions:
| Resource | Scope | Actions | Examples |
|---|---|---|---|
mcp | MCP server connection configuration | install, remove, status | xmemo mcp install codex, xmemo mcp status |
plugin | Host-native extension packages | install, remove, status, list, info | xmemo plugin install gemini-cli, xmemo plugin list |
skill | Agent skill scripts & documentation | install, remove, status, update | xmemo skill install --client openclaw |
profile | Markdown behavior steering instructions | install, remove, status, show | xmemo profile install cursor |
xmemo setup [ ...], xmemo uninstall [ ...], and xmemo status [ ] orchestrate these resources in a single step according to the client's declarative profile.xmemo mcp add (alias for mcp install), xmemo profile uninstall (alias for profile remove), and xmemo skill uninstall (alias for skill remove) remain fully functional and print a helpful one-line hint in interactive terminals.When no client is explicitly passed, the CLI uses a deterministic three-tier precedence resolution model:
--client , positional client argument, or --all.CLAUDECODE / CLAUDE_CODE_ENTRYPOINT maps to claude-code, and CODEX_THREAD_ID / CODEX_SESSION_ID maps to codex).PlanRunner)Mutating commands follow a strict, atomic execution pattern:
[y/N] exactly once for the entire sequence. Re-running with --yes or -y bypasses the prompt; --dry-run displays the preview without mutation.Nothing to do.All client configurations, recipes, and capabilities are declared centrally in src/clients/registry.js. Command implementations are purely generic orchestrators with zero hardcoded client ID strings. Platforms can also be added dynamically at runtime via registerClient().
| Client | Recommended command | Connection |
|---|---|---|
| Codex | xmemo setup codex | Hosted MCP + behavior profile |
| Cursor | xmemo setup cursor | Hosted MCP + Bearer Token + behavior profile |
| Copilot CLI | xmemo setup copilot | Local authenticated proxy |
只显示了开头部分;其余内容请在仓库中阅读