meetdhanani17/xgmem
If you are the rightful owner of xgmem and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
xgmem is a TypeScript-based Model Context Protocol (MCP) server designed to provide project-specific and knowledge graph-based memory for Claude, LLM agents, and other tools.
xgmem is a versatile MCP server that facilitates the storage, retrieval, and management of entities, relations, and observations on a per-project basis. It is built with TypeScript and supports Docker, making it a flexible solution for agents and LLMs requiring structured memory. The server is designed to enable cross-project knowledge sharing and migration, with a focus on scalability and persistence. xgmem stores memory in a JSON file, ensuring data is disk-persistent and queryable, which is crucial for maintaining a robust agent ecosystem.
Features
- Knowledge graph storage for entities, relations, and observations
- CRUD operations via MCP tools
- Persistence to disk (memory.json)
- Docker and TypeScript support
Usages
usage with mcp config
"mcpServers": { "xgmem": { "command": "npx", "args": ["-y", "xgmem@latest"] } }
usage with docker
sh docker build -t xgmem-mcp-server . docker run -v $(pwd)/memories:/app/memories xgmem-mcp-server
Tools
save_project_observations
Saves observations (memory) for a project.
get_project_observations
Retrieves observations for a specific project.
add_graph_observations
Adds observations to the knowledge graph.
create_entities
Creates new entities in the knowledge graph.
create_relations
Creates new relations between entities.
delete_entities
Deletes entities from the knowledge graph.
delete_observations
Deletes observations from a project.
delete_relations
Deletes relations between entities.
read_graph
Reads the entire knowledge graph.
search_nodes
Searches for nodes in the knowledge graph.
search_all_projects
Searches across all projects for specific data.
open_nodes
Opens nodes for detailed inspection.
copy_memory
Copies memory from one project to another.