How does xgmem persist memory?
xgmem saves memory to disk in a `memory.json` file. The storage directory can be changed by setting the `MEMORY_DIR_PATH` environment variable (default: `/app/memories`).
@meetdhanani17
基本信息
Global MCP server that manage all the project data,
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"xgmem": {
"command": "npx",
"args": [
"ts-node",
"index.ts"
]
}
}
}工具列表暂未提供
当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。
点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。
xgmem is a TypeScript-based Model Context Protocol (MCP) server for project-specific and knowledge graph-based memory. It allows Claude, LLM agents, and other tools to store, retrieve, and manage entities, relations, and observations per project, with support for cross-project knowledge sharing and disk persistence.
Add xgmem to your MCP client config (e.g., for Windsurf) using npx -y xgmem@latest. Install dependencies (npm install), build (npm run build), and run in development (npx ts-node index.ts) or production (npm start). For Docker, build the image and mount a volume to persist memory files. To save memories, call the save_project_observations tool via the MCP API with a project ID and observations.
memory.json file per projectMEMORY_DIR_PATH environment variablexgmem saves memory to disk in a `memory.json` file. The storage directory can be changed by setting the `MEMORY_DIR_PATH` environment variable (default: `/app/memories`).
xgmem provides tools including `save_project_observations`, `get_project_observations`, `add_graph_observations`, `create_entities`, `create_relations`, `delete_entities`, `delete_observations`, `delete_relations`, `read_graph`, `search_nodes`, `search_all_projects`, `open_nodes`, and `copy_memory`.
Build the image with `docker build -t xgmem-mcp-server .` and run with a volume mount: `docker run -v $(pwd)/memories:/app/memories xgmem-mcp-server`. This persists all project memory files on your host.
xgmem requires Node.js and npm. It can be run directly on the command line via `npx` or after installing dependencies locally. It also works in Docker without requiring host Node.js installation.
Yes. xgmem is designed for cross-project knowledge sharing and migration. It stores memory per project but allows searching across all projects using the `search_all_projects` tool.

Local-first MCP server that snapshots your project's working state into one context object. Open-core, privacy-first.

Mess in, magic out: pour in your D&D and TTRPG notes and LoreKeeper keeps them as a private store for your world. Ask Claude or ChatGPT about it, or build a sourcebook.
High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 162 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

AI agents start every session with amnesia — you re-explain the project, repeat your preferences, and correct the same mistakes over and over. PLUR gives them a memory that persists. Your agent's corrections, preference

Shared memory for AI coding agents. Claude Code, Cursor and Codex read your project's decisions, lessons and tasks before they act.
评论