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
Basic information
Global MCP server that manage all the project data,
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"xgmem": {
"command": "npx",
"args": [
"ts-node",
"index.ts"
]
}
}
}Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
Fetch the live tool list by running this server in a temporary sandbox using the button above.
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.

Serve your docs to AI agents over SSH and MCP. Agents use ls, cat, grep, find, and pipes against a virtual filesystem backed by your documentation. Identity-scoped access, governed writing with human approval, and portab

Sooveryn gives Claude Code a team of AI personas that remembers your project. Soov, the partner and team lead, keeps your decisions and how you work in a lasting memory, and finds them again by words and by meaning, from

Islamic source data for assistants: Quran, hadith, tafsir, duas, prayer times and qibla. Answers come from real sources with citations instead of recalled text, so verses and hadith are not hallucinated. 36,000+ hadiths

Persistent memory for AI agents. Hosted MCP server with capsule-scoped key/value storage, tags, TTL expiration, bulk ops, and RBAC.
The ultimate RAG for your monorepo. Query, understand, and edit multi-language codebases with the power of AI and knowledge graphs
Comments