Memory Custom : PouchDB π§
This project adds new features to the Memory server offered by the MCP team. It allows for the creation and management of a knowledge graph that captures interactions via a language model (LLM). π
This repo was forked from https://github.com/BRO3886/mcp-memory-custom which was a great starting point, thanks again for fixing timestamps. This repo's goal was more to fix the issue with an ever increasing json file for context.
New Features β¨
1. PouchDB Integration πΎ
The server now uses PouchDB for robust document-based storage
Why?: Better data consistency, built-in versioning, and improved performance for large datasets
Maintains file backup for compatibility
2. Custom Memory Paths π
Users can now specify different memory file paths for various projects
Why?: This feature enhances organization and management of memory data, allowing for project-specific memory storage
3. Timestamping β°
The server now generates timestamps for interactions
Why?: Timestamps enable tracking of when each memory was created or modified, providing better context and history for the stored data
Related MCP server: Knowledge Graph Memory Server
Getting Started π
Prerequisites π§
Node.js (version 16 or higher)
PouchDB (automatically installed as a dependency)
Installing via Smithery π¦
To install Knowledge Graph Memory Server for Claude Desktop automatically via Smithery:
Installation π οΈ
Clone the repository:
git clone git@github.com:bneil/mcp-memory-pouchdb.git cd mcp-memory-pouchdbInstall the dependencies:
npm install
Configuration βοΈ
The server requires two environment variables to be set:
MEMORY_FILE_PATH: The absolute path where the memory backup file will be storedPOUCHDB_PATH: The absolute path where the PouchDB database will be stored
Example configuration in your claude_desktop_config.json / .cursor/mcp.json:
The server will fail to start if either environment variable is not set. π«
Optional environment variables:
POUCHDB_OPTIONS: JSON string of additional PouchDB configuration optionsDISABLE_MEMORY_FILE: Set to "true" to disable saving to memory.json file (only use PouchDB for storage)
Running the Server π
Updating the mcp server json file π
Add this to your claude_desktop_config.json / .cursor/mcp.json file:
System Prompt changes:
Running the Server Locally π»
To start the Knowledge Graph Memory Server, run:
The server will listen for requests via standard input/output.
API Endpoints π
The server exposes several tools that can be called with specific parameters:
Get Current Time β°
Set Memory File Path π
Create Entities β
Create Relations π
Add Observations π
Delete Entities β
Delete Observations ποΈ
Delete Relations π
Read Graph π
Search Nodes π
Open Nodes π
Acknowledgments π
Inspired by the Memory server from Anthropic
Powered by PouchDB for robust data storage πΎ
Appeared in Searches
- A tool for storing chat conversations and generating knowledge graphs
- A server for managing systematic Drupal module development with advanced memory and project features
- Building a Knowledge Graph for Personal Life Organization
- A system or tool for reading, writing, and interacting with local storage
- Tools and strategies for managing company knowledge