About Memory Keeper
Memory Keeper is an MCP server published by mkreyman in the Data category: mCP server for persistent context management in AI coding assistants. Conduid read 40 tools from its source: context_analyze, context_batch_delete, context_batch_save, context_batch_update, context_branch_session, context_cache_file and 34 more. No package is published for it, so it installs from a source checkout.
The repository has 137 stars and 30 forks, is licensed MIT, and its last commit was on 3 Sep 2026. The latest release is v0.12.1 (25 Mar 2026): Server crashes with SQLITE_CANTOPEN when parent process CWD changes (#31) Server now resolves database path to an absolute location ($DATA_DIR or ~/mcp-data/memory-keepe… The release before it was v0.10.2 (16 Sep 2025). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include data, context-persistence, sqlite and context-management.
Install
git clone https://github.com/mkreyman/mcp-memory-keeperTools (40)
context_analyzeAnalyze context to extract entities and relationships| Parameter | Type | Description |
|---|---|---|
| categories | array | Categories to analyze |
| sessionId | string | Session ID to analyze (defaults to current) |
context_batch_deleteDelete multiple context items by keys or pattern in a single atomic operation| Parameter | Type | Description |
|---|---|---|
| dryRun | boolean | Preview items to be deleted without actually deleting |
| keyPattern | string | Pattern to match keys for deletion (supports wildcards: *, ?) |
| keys | array | Array of specific keys to delete |
| sessionId | string | Session ID (defaults to current) |
context_batch_saveSave multiple context items in a single atomic operation| Parameter | Type | Description |
|---|---|---|
| items * | array | Array of items to save |
| updateExisting | boolean | Update existing items with same key (default: true) |
context_batch_updateUpdate multiple context items with partial updates in a single atomic operation| Parameter | Type | Description |
|---|---|---|
| sessionId | string | Session ID (defaults to current) |
| updates * | array | Array of updates to apply |
context_branch_sessionCreate a branch from current session for exploring alternatives| Parameter | Type | Description |
|---|---|---|
| branchName * | string | Name for the new branch |
| copyDepth | string | How much to copy: shallow (high priority only) or deep (everything) |
context_cache_fileCache file content with hash for change detection| Parameter | Type | Description |
|---|---|---|
| content * | string | File content to cache |
| filePath * | string | Path to the file |
context_channel_statsGet detailed statistics for a specific channel or all channels| Parameter | Type | Description |
|---|---|---|
| channel | string | Specific channel name (omit for all channels overview) |
| includeInsights | boolean | Include AI-generated insights |
| includeTimeSeries | boolean | Include hourly/daily activity data |
| sessionId | string | Session context for privacy filtering |
context_checkpointCreate a named checkpoint of current context| Parameter | Type | Description |
|---|---|---|
| description | string | Checkpoint description |
| includeFiles | boolean | Include cached files in checkpoint |
| includeGitStatus | boolean | Capture current git status |
| name * | string | Checkpoint name |
context_compressIntelligently compress old context to save space| Parameter | Type | Description |
|---|---|---|
| olderThan | string | Compress items older than this date (ISO format) |
| preserveCategories | array | Categories to preserve (not compress) |
| sessionId | string | Session to compress (defaults to current) |
| targetSize | number | Target size in KB (optional) |
context_delegateDelegate complex analysis tasks to specialized agents| Parameter | Type | Description |
|---|---|---|
| chain | boolean | Process multiple tasks in sequence |
| input * | object | |
| sessionId | string | Session to analyze (defaults to current) |
| taskType * | string | Type of task to delegate |
context_diffGet changes to context items since a specific point in time (timestamp, checkpoint, or relative time)| Parameter | Type | Description |
|---|---|---|
| category | string | Filter by category |
| channel | string | Filter by single channel |
| channels | array | Filter by multiple channels |
| includeValues | boolean | Include full item values in response |
| limit | number | Maximum items per category (added/modified) |
| offset | number | Pagination offset |
| sessionId | string | Session ID to analyze (defaults to current) |
| since | string | Point in time to compare against (ISO timestamp, checkpoint name/ID, or relative time like "2 hours ago") |
context_exportExport session data (context items, cached files, and checkpoints with their links) for backup or sharing. JSON exports are written to the server's exports directory (<DATA_DIR>/exports, overridable via MEMORY_KEEPER_EXPORT_DIR); the response includes the full path, which can be passed back to context_import.| Parameter | Type | Description |
|---|---|---|
| format | string | Export format |
| sessionId | string | Session to export (defaults to current) |
context_file_changedCheck if a file has changed since it was cached| Parameter | Type | Description |
|---|---|---|
| currentContent | string | Current file content to compare |
| filePath * | string | Path to the file |
context_find_relatedFind entities related to a key or entity| Parameter | Type | Description |
|---|---|---|
| key * | string | Context key or entity name |
| maxDepth | number | Maximum graph traversal depth |
| relationTypes | array | Types of relations to include |
context_getRetrieve saved context by key, category, or session with enhanced filtering. Returns all accessible items (public items + own private items)| Parameter | Type | Description |
|---|---|---|
| category | string | Filter by category |
| channel | string | Filter by single channel |
| channels | array | Filter by multiple channels |
| createdAfter | string | ISO date - items created after this time |
| createdBefore | string | ISO date - items created before this time |
| includeMetadata | boolean | Include timestamps and size info |
| key | string | Specific key to retrieve |
| keyPattern | string | Regex pattern for key matching |
| limit | number | Maximum items to return. Must be a positive integer. Invalid values will cause validation error. (default: auto-derived) |
| offset | number | Pagination offset. Must be a non-negative integer. Invalid values will cause validation error. (default: 0) |
| priorities | array | Filter by priority levels |
| sessionId | string | Specific session ID (defaults to current) |
| sort | string | Sort order for results |
context_get_relatedGet items related to a given context item| Parameter | Type | Description |
|---|---|---|
| depth | number | Traversal depth for multi-level relationships (default: 1) |
| direction | string | Direction of relationships to retrieve |
| key * | string | Key of the context item to find relationships for |
| relationship | string | Filter by specific relationship type |
context_get_sharedGet shared context items from other sessions| Parameter | Type | Description |
|---|---|---|
| includeAll | boolean | Include all shared items from all sessions |
context_git_commitCreate git commit with automatic context save| Parameter | Type | Description |
|---|---|---|
| autoSave | boolean | Automatically save context state |
| message * | string | Commit message |
context_importImport previously exported session data. For security, imports are confined to the server's exports directory (where context_export writes); arbitrary filesystem paths are rejected.| Parameter | Type | Description |
|---|---|---|
| filePath * | string | Path to an export file inside the exports directory. Relative paths resolve against that directory; absolute paths must point inside it. |
| merge | boolean | Merge with current session instead of creating new |
context_integrate_toolTrack events from other MCP tools| Parameter | Type | Description |
|---|---|---|
| data * | object | Event data |
| eventType * | string | Type of event |
| toolName * | string | Name of the tool |
context_journal_entryAdd a timestamped journal entry with optional tags and mood| Parameter | Type | Description |
|---|---|---|
| entry * | string | Journal entry text |
| mood | string | Current mood/feeling |
| tags | array | Tags for categorization |
context_linkCreate a relationship between two context items| Parameter | Type | Description |
|---|---|---|
| metadata | object | Optional metadata for the relationship |
| relationship * | string | Type of relationship |
| sourceKey * | string | Key of the source context item |
| targetKey * | string | Key of the target context item |
context_list_channelsList all channels with metadata (counts, activity, categories)| Parameter | Type | Description |
|---|---|---|
| includeEmpty | boolean | Include channels with no items |
| sessionId | string | Filter by specific session (shows accessible items) |
| sessionIds | array | Filter by multiple sessions |
| sort | string | Sort order for results |
context_merge_sessionsMerge another session into the current one| Parameter | Type | Description |
|---|---|---|
| conflictResolution | string | How to resolve conflicts |
| sourceSessionId * | string | ID of the session to merge from |
context_prepare_compactionAutomatically save critical context before compactioncontext_reassign_channelMove context items between channels based on keys, patterns, or entire channel| Parameter | Type | Description |
|---|---|---|
| category | string | Filter by category |
| dryRun | boolean | Preview changes without applying them |
| fromChannel | string | Source channel to move all items from |
| keyPattern | string | Pattern to match keys (supports wildcards: *, ?) |
| keys | array | Specific keys to reassign |
| priorities | array | Filter by priority levels |
| sessionId | string | Session ID (defaults to current) |
| toChannel * | string | Target channel to move items to |
context_restore_checkpointRestore context from a checkpoint| Parameter | Type | Description |
|---|---|---|
| checkpointId | string | Specific checkpoint ID |
| name | string | Checkpoint name to restore |
| restoreFiles | boolean | Restore cached files |
context_saveSave a context item with optional category, priority, and privacy setting| Parameter | Type | Description |
|---|---|---|
| category | string | Category (e.g., task, decision, progress) |
| channel | string | Channel to organize this item (uses session default if not provided) |
| key * | string | Unique key for the context item |
| priority | string | Priority level |
| private | boolean | If true, item is only accessible from the current session. Default: false (accessible from all sessions) |
| value * | string | Context value to save |
context_searchSearch through saved context items with advanced filtering| Parameter | Type | Description |
|---|---|---|
| category | string | Filter by category |
| channel | string | Filter by single channel |
| channels | array | Filter by multiple channels |
| createdAfter | string | ISO date - items created after this time |
| createdBefore | string | ISO date - items created before this time |
| includeMetadata | boolean | Include timestamps and size info |
| keyPattern | string | Pattern for key matching (uses GLOB syntax) |
| limit | number | Maximum items to return. Must be a positive integer. Invalid values will cause validation error. (default: auto-derived) |
| offset | number | Pagination offset. Must be a non-negative integer. Invalid values will cause validation error. (default: 0) |
| priorities | array | Filter by priority levels |
| query * | string | Search query |
| relativeTime | string | Natural language time (e.g., "2 hours ago", "yesterday") |
| searchIn | array | Fields to search in |
| sessionId | string | Session to search (defaults to current) |
| sort | string | Sort order for results |
context_search_allSearch across multiple or all sessions with pagination support| Parameter | Type | Description |
|---|---|---|
| category | string | Filter by category |
| channel | string | Filter by single channel |
| channels | array | Filter by multiple channels |
| createdAfter | string | Filter items created after this date (ISO format or relative time) |
| createdBefore | string | Filter items created before this date (ISO format or relative time) |
| includeMetadata | boolean | Include timestamps and size info |
| includeShared | boolean | Include shared items in search |
| keyPattern | string | Pattern to match keys (supports wildcards: *, ?) |
| limit | number | Maximum number of items to return. Must be a positive integer between 1-100. Non-integer values will be rejected with validation error. (default: 25) |
| offset | number | Number of items to skip for pagination. Must be a non-negative integer (0 or higher). Non-integer values will be rejected with validation error. (default: 0) |
| priorities | array | Filter by priority levels |
| query * | string | Search query |
| searchIn | array | Fields to search in |
| sessions | array | Session IDs to search (empty for all sessions) |
| sort | string | Sort order for results |
context_semantic_searchSearch context using natural language queries| Parameter | Type | Description |
|---|---|---|
| minSimilarity | number | Minimum similarity score (0-1) |
| query * | string | Natural language search query |
| sessionId | string | Search within specific session (defaults to current) |
| topK | number | Number of results to return |
context_session_listList recent sessions| Parameter | Type | Description |
|---|---|---|
| limit | number | Maximum number of sessions to return |
context_session_startStart a new context session with optional project directory for git tracking| Parameter | Type | Description |
|---|---|---|
| continueFrom | string | Session ID to continue from |
| defaultChannel | string | Default channel for context items (auto-derived from git branch if not provided) |
| description | string | Session description |
| name | string | Session name |
| projectDir | string | Project directory path for git tracking (e.g., "/path/to/your/project") |
context_set_project_dirSet the project directory for git tracking in the current session| Parameter | Type | Description |
|---|---|---|
| projectDir * | string | Project directory path for git tracking (e.g., "/path/to/your/project") |
context_shareShare a context item with other sessions for cross-session collaboration| Parameter | Type | Description |
|---|---|---|
| key * | string | Key of the item to share |
| makePublic | boolean | Share with all sessions |
| targetSessions | array | Session IDs to share with (empty for public sharing) |
context_statusGet current context status and statisticscontext_summarizeGet AI-friendly summary of session context| Parameter | Type | Description |
|---|---|---|
| categories | array | Filter by specific categories |
| maxLength | number | Maximum summary length |
| sessionId | string | Session to summarize (defaults to current) |
context_timelineGet timeline of activities with optional grouping| Parameter | Type | Description |
|---|---|---|
| categories | array | Filter by categories |
| endDate | string | End date (ISO format) |
| groupBy | string | How to group timeline data |
| includeItems | boolean | Include item details in timeline |
| itemsPerPeriod | number | Max items per time period |
| minItemsPerPeriod | number | Only include periods with at least N items |
| relativeTime | string | Natural language time (e.g., "2 hours ago", "today") |
| sessionId | string | Session to analyze (defaults to current) |
| showEmpty | boolean | Include periods with 0 items (default: false) |
| startDate | string | Start date (ISO format) |
context_visualizeGenerate visualization data for the knowledge graph| Parameter | Type | Description |
|---|---|---|
| entityTypes | array | Entity types to include |
| sessionId | string | Session to visualize (defaults to current) |
| type | string | Visualization type |
context_watchCreate and manage watchers for real-time context change monitoring| Parameter | Type | Description |
|---|---|---|
| action * | string | Action to perform |
| filters | object | Filters for watching specific changes (for create action) |
| pollTimeout | number | Polling timeout in seconds (default: 30) |
| watcherId | string | Watcher ID (required for poll/stop actions) |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 4.7K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json.
- ✓No dynamic code executionScanned 33 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdiosrc/index.ts:2
- Starts other programs
- No calls that start other programs
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- 7 callssrc/index.ts:36, src/index.ts:53, src/index.ts:1927
- Lockfile
- package-lock.json
Pattern matches on the source text of 33 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 4.7K words, fetched a month ago. The original in the repository is authoritative.
Read full README