doobidoo/mcp-memory-service
Open-source persistent memory for AI agent pipelines (LangGraph, CrewAI, AutoGen) and Claude. REST API + knowledge graph + autonomous consolidation.
14c91e914916mcp-memory-service13.0.0 in pyproject.tomlPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.
- Some paths pass through more than 8 functions one inside another; the scanner stops there
- In 860 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
- 2 files reached by the taint walk exceeded the 524288 byte size limit and were read and parsed only up to it
- 2 files exceeded the 524288 byte size limit and were parsed only up to it
- 23 source files could be read only in part
- 1 of 17 tools, prompts and resources could not be followed through the code
- 2 places in the code register tools whose names are computed at run time; how many tools that makes cannot be read from the code
- 1 tool, prompt or resource registered only in the repository's tests is not counted on this page
Top risks in plain words
- CRITICAL4 security advisories have been published for this server itself (worst: critical).
- MEDIUM1 production dependency has known vulnerabilities (worst: medium).
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Give it a narrowly scoped token
Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.
- Update its vulnerable packages
Use
setuptools83.0.0 or later. - Use a fixed version
Versions before
mcp-memory-service10.67.1 have a published vulnerability that is fixed in 10.67.1. - Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 9 tools, 6 prompts, 1 resource. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
(name computed at run time), retrieve_memory(name computed at run time)(name computed at run time), knowledge_export, learning_session, memory_analysis, memory_cleanup, memory_review(name computed at run time)No tool was seen to: start other programs on the machine; connect to the internet or other hosts.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.
- files2 tools · (name computed at run time), retrieve_memory
Not all three are present in the tools the scanner traced.
Tool annotations
8 of 16 tools declare annotations. readOnlyHint 6, destructiveHint 1.
Each declaration matches what the traced code does.
Tools, prompts and resources (16: 9 tools, 6 prompts, 1 resource)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
knowledge_exportprompt Export memories in a specific formatEnv vars
Export memories in a specific format
learning_sessionprompt Store structured learning notes from a study sessionEnv vars
Store structured learning notes from a study session
memory_analysisprompt Analyze patterns and themes in stored memoriesEnv vars
Analyze patterns and themes in stored memories
memory_cleanupprompt Identify and remove duplicate or outdated memoriesEnv vars
Identify and remove duplicate or outdated memories
memory_reviewprompt Review and organize memories from a specific time periodEnv vars
Review and organize memories from a specific time period
oldTagprompt
No description.
(name computed at run time)resource FilesCredentialsEnv varsSensitive pathsoutside text
No description.
(name computed at run time)tool Env vars
No description.
check_database_healthtool Check database health, storage backend status, and retrieve comprehensive memory service statistics.read-only (declared)
Check database health, storage backend status, and retrieve comprehensive memory service statistics.
USE THIS WHEN:
- User asks "how many memories are stored", "is the database working", "memory service status"
- Diagnosing performance issues or connection problems
- User wants to know storage backend configuration (SQLite/Cloudflare/Hybrid)
- Checking if memory service is functioning correctly
- Need to verify successful initialization or troubleshoot errors
- User asks "what storage backend are we using"
DO NOT USE FOR:
- Searching or retrieving specific memories - use retrieve_memory instead
- Getting cache performance stats - use get_cache_stats instead (if available)
- Listing actual memory content - this only returns counts and status
WHAT IT CHECKS:
- Database connectivity and responsiveness
- Storage backend type (sqlite_vec, cloudflare, hybrid)
- Total memory count in database
- Database file size and location (for SQLite backends)
- Sync status (for hybrid backend)
- Configuration details (embedding model, index names, etc.)
RETURNS:
- status: "healthy" or error status
- backend: Storage backend type (sqlite_vec/cloudflare/hybrid)
- total_memories: Count of stored memories
- database_info: Path, size, configuration details
- timestamp: When health check was performed
- Any error messages or warnings
Examples:
No parameters required - just call it:
{}
Common use cases:
- User: "How many memories do I have?" → check_database_health()
- User: "Is the memory service working?" → check_database_health()
- User: "What backend are we using?" → check_database_health()delete_memorytool Delete a specific memory by its unique content hash identifier - permanent removal of a single memory entry.destructive (declared)
Delete a specific memory by its unique content hash identifier - permanent removal of a single memory entry.
USE THIS WHEN:
- User explicitly requests deletion of a specific memory ("delete that", "remove the memory about X")
- After showing user a memory and they want it removed
- Correcting mistakenly stored information
- User says "forget about X", "delete the note about Y", "remove that memory"
- Have the content_hash from a previous retrieve/search operation
DO NOT USE FOR:
- Deleting multiple memories - use delete_by_tag, delete_by_tags, or delete_by_all_tags instead
- Deleting by content without hash - search first with retrieve_memory to get the hash
- Bulk cleanup - use cleanup_duplicates or delete_by_tag instead
- Time-based deletion - use delete_by_timeframe or delete_before_date instead
IMPORTANT:
- This is a PERMANENT operation - memory cannot be recovered after deletion
- You must have the exact content_hash (obtained from search/retrieve operations)
- Only deletes the single memory matching the hash
HOW TO GET content_hash:
1. First search for the memory using retrieve_memory, recall_memory, or search_by_tag
2. Memory results include "content_hash" field
3. Use that hash in this delete operation
RETURNS:
- success: Boolean indicating if deletion succeeded
- content_hash: The hash of the deleted memory
- error: Error message (only present if success is False)
Examples:
# Step 1: Find the memory
retrieve_memory(query: "outdated API documentation")
# Returns: [{content_hash: "a1b2c3d4e5f6...", content: "...", ...}]
# Step 2: Delete it
{
"content_hash": "a1b2c3d4e5f6..."
}get_cache_statstool Get MCP server global cache statistics for performance monitoring.read-only (declared)
Get MCP server global cache statistics for performance monitoring.
Returns detailed metrics about storage and memory service caching,
including hit rates, initialization times, and cache sizes.
This tool is useful for:
- Monitoring cache effectiveness
- Debugging performance issues
- Verifying cache persistence across stateless HTTP calls
Returns:
Dictionary with cache statistics:
- total_calls: Total MCP server invocations
- hit_rate: Overall cache hit rate percentage
- storage_cache: Storage cache metrics (hits/misses/size)
- service_cache: MemoryService cache metrics (hits/misses/size)
- performance: Initialization time statistics (avg/min/max)
- backend_info: Current storage backend configurationlist_memoriestool List stored memories with pagination and optional filtering - browse all memories in pages rather than searching.read-only (declared)
List stored memories with pagination and optional filtering - browse all memories in pages rather than searching.
USE THIS WHEN:
- User wants to browse/explore all memories ("show me my memories", "list everything")
- Need to paginate through large result sets
- Filtering by tag OR memory type for categorical browsing
- User asks "what do I have stored", "show me all notes", "browse my memories"
- Want to see memories without searching for specific content
DO NOT USE FOR:
- Searching for specific content - use retrieve_memory instead
- Time-based queries - use recall_memory instead
- Finding exact text - use exact_match_retrieve instead
HOW IT WORKS:
- Returns memories in pages (default 10 per page)
- Optional filtering by single tag or memory type
- Sorted by creation time (newest first)
- Supports pagination through large datasets
PAGINATION:
- page: 1-based page number (default 1)
- page_size: Number of results per page (default 10, max usually 100)
- Returns total count and page info for navigation
RETURNS:
- memories: Array of memory objects for current page
- total: Total count of matching memories
- page: Current page number
- page_size: Results per page
- total_pages: Total pages available
- has_more: True if additional pages follow the current one
Examples:
{
"page": 1,
"page_size": 10
}
{
"page": 2,
"page_size": 20,
"tag": "python"
}
{
"page": 1,
"page_size": 50,
"memory_type": "decision"
}memory_graphtool Knowledge graph operations - explore connections between memories.read-only (declared)
Knowledge graph operations - explore connections between memories.
USE THIS WHEN:
- User asks "what's related to X", "how are these memories connected"
- Investigating cause-and-effect chains between memories
- Visualizing memory relationships for debugging or understanding
- Finding the path between two related memories
ACTIONS:
- connected: Find memories connected to a given memory (BFS traversal up to max_hops)
- path: Find shortest path between two memories
- subgraph: Extract subgraph around a memory (nodes + edges for visualization)
REQUIRES: SQLite-vec, Hybrid, or Milvus storage backend. Returns error for Cloudflare.
RETURNS:
- connected: {success, connected: [{hash, distance}], count}
- path: {success, path: [hash1, ..., hash2], length}
- subgraph: {success, nodes: [...], edges: [{source, target, similarity, ...}], node_count, edge_count}
Examples:
{"action": "connected", "hash": "abc123def456...", "max_hops": 2}
{"action": "path", "hash1": "abc123...", "hash2": "def456..."}
{"action": "subgraph", "hash": "abc123...", "radius": 3}retrieve_memorytool Search stored memories using semantic similarity - finds conceptually related content even if exact words differ.Filesoutside textread-only (declared)
Search stored memories using semantic similarity - finds conceptually related content even if exact words differ.
USE THIS WHEN:
- User asks "what do you remember about X", "do we have info on Y", "recall Z"
- Looking for past decisions, preferences, or context from previous sessions
- Need to retrieve related information without exact wording (semantic search)
- General memory lookup where time frame is NOT specified
- User references "last time we discussed", "you should know", "I told you before"
THIS IS THE PRIMARY SEARCH TOOL - use it for most memory lookups.
DO NOT USE FOR:
- Time-based queries ("yesterday", "last week") - use recall_memory instead
- Exact content matching - use exact_match_retrieve instead
- Tag-based filtering - use search_by_tag instead
- Browsing all memories - use list_memories instead (if available in mcp_server.py)
HOW IT WORKS:
- Converts query to vector embedding using the same model as stored memories
- Finds top N most similar memories using cosine similarity
- Returns ranked by relevance score (0.0-1.0, higher is more similar)
- Works across sessions - retrieves memories from any time period
RETURNS:
- Array of matching memories with:
- content: The stored text
- content_hash: Unique identifier
- similarity_score: Relevance score (0.0-1.0)
- metadata: Tags, type, timestamp, etc.
- created_at: When memory was stored
Examples:
{
"query": "python async patterns we discussed",
"n_results": 5
}
{
"query": "database connection settings",
"n_results": 10
}
{
"query": "user authentication workflow preferences",
"n_results": 3
}search_by_tagtool Search memories by exact tag matching - retrieves all memories categorized with specific tags (OR logic by default).read-only (declared)
Search memories by exact tag matching - retrieves all memories categorized with specific tags (OR logic by default).
USE THIS WHEN:
- User asks to filter by category ("show me all 'api-docs' memories", "find 'important' notes")
- Need to retrieve memories of a specific type without semantic search
- User wants to browse a category ("what do we have tagged 'python'")
- Looking for all memories with a particular classification
- User says "show me everything about X" where X is a known tag
DO NOT USE FOR:
- Semantic search - use retrieve_memory instead
- Time-based queries - use recall_memory instead
- Finding specific content - use exact_match_retrieve instead
HOW IT WORKS:
- Exact string matching on memory tags (case-sensitive)
- Returns memories matching ANY of the specified tags (OR logic)
- No semantic search - purely categorical filtering
- No similarity scoring - all results are equally relevant
TAG FORMATS (all supported):
- Array: ["tag1", "tag2"]
- String: "tag1,tag2"
RETURNS:
- Array of all memories with matching tags:
- content: The stored text
- tags: Array of tags (will include at least one from search)
- content_hash: Unique identifier
- metadata: Additional memory metadata
- No similarity score (categorical match, not semantic)
Examples:
{
"tags": ["important", "reference"]
}
{
"tags": "python,async,best-practices"
}
{
"tags": ["api-documentation"]
}store_memorytool Store new information in persistent memory with semantic search capabilities and optional categorization.
Store new information in persistent memory with semantic search capabilities and optional categorization.
USE THIS WHEN:
- User provides information to remember for future sessions (decisions, preferences, facts, code snippets)
- Capturing important context from current conversation ("remember this for later")
- User explicitly says "remember", "save", "store", "keep this", "note that"
- Documenting technical decisions, API patterns, project architecture, user preferences
- Creating knowledge base entries, documentation snippets, troubleshooting notes
THIS IS THE PRIMARY STORAGE TOOL - use it whenever information should persist beyond the current session.
DO NOT USE FOR:
- Temporary conversation context (use native conversation history instead)
- Information already stored (check first with retrieve_memory to avoid duplicates)
- Streaming or real-time data that changes frequently
CONTENT LENGTH LIMITS:
- Cloudflare/Hybrid backends: 800 characters max (auto-splits into chunks if exceeded)
- SQLite-vec backend: No limit
- Auto-chunking preserves context with 50-character overlap at natural boundaries
TAG FORMATS (all supported):
- Array: ["tag1", "tag2"]
- String: "tag1,tag2"
- Single: "single-tag"
- Both tags parameter AND metadata.tags are merged automatically
DELETED CONTENT (restore_deleted):
- Content that was deleted on this server is NOT silently re-created: the tool answers
success=false with "Not stored: this content was deleted on <date>; pass
restore_deleted=true to bring it back". That is a refusal, not an error.
- Pass restore_deleted=true only when the user deliberately wants the deleted memory back.
RETURNS:
- success: Boolean indicating storage status
- message: Status message
- content_hash: Unique identifier for retrieval/deletion (single memory)
- chunks_created: Number of chunks (if content was split)
- chunk_hashes: Array of hashes (if content was split)
Examples:
{
"content": "User prefers async/await over callbacks in Python projects",
"metadata": {
"tags": ["coding-style", "python", "preferences"],
"type": "preference"
}
}
{
"content": "API endpoint /api/v1/users requires JWT token in Authorization header",
"metadata": {
"tags": "api-documentation,authentication",
"type": "reference"
}
}Text the model reads (16)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
store_memory tool
Store new information in persistent memory with semantic search capabilities and optional categorization.
USE THIS WHEN:
- User provides information to remember for future sessions (decisions, preferences, facts, code snippets)
- Capturing important context from current conversation ("remember this for later")
- User explicitly says "remember", "save", "store", "keep this", "note that"
- Documenting technical decisions, API patterns, project architecture, user preferences
- Creating knowledge base entries, documentation snippets, troubleshooting notes
THIS IS THE PRIMARY STORAGE TOOL - use it whenever information should persist beyond the current session.
DO NOT USE FOR:
- Temporary conversation context (use native conversation history instead)
- Information already stored (check first with retrieve_memory to avoid duplicates)
- Streaming or real-time data that changes frequently
CONTENT LENGTH LIMITS:
- Cloudflare/Hybrid backends: 800 characters max (auto-splits into chunks if exceeded)
- SQLite-vec backend: No limit
- Auto-chunking preserves context with 50-character overlap at natural boundaries
TAG FORMATS (all supported):
- Array: ["tag1", "tag2"]
- String: "tag1,tag2"
- Single: "single-tag"
- Both tags parameter AND metadata.tags are merged automatically
DELETED CONTENT (restore_deleted):
- Content that was deleted on this server is NOT silently re-created: the tool answers
success=false with "Not stored: this content was deleted on <date>; pass
restore_deleted=true to bring it back". That is a refusal, not an error.
- Pass restore_deleted=true only when the user deliberately wants the deleted memory back.
RETURNS:
- success: Boolean indicating storage status
- message: Status message
- content_hash: Unique identifier for retrieval/deletion (single memory)
- chunks_created: Number of chunks (if content was split)
- chunk_hashes: Array of hashes (if content was split)
Examples:
{
"content": "User prefers async/await over callbacks in Python projects",
"metadata": {
"tags": ["coding-style", "python", "preferences"],
"type": "preference"
}
}
{
"content": "API endpoint /api/v1/users requires JWT token in Authorization header",
"metadata": {
"tags": "api-documentation,authentication",
"type": "reference"
}
}retrieve_memory tool
Search stored memories using semantic similarity - finds conceptually related content even if exact words differ.
USE THIS WHEN:
- User asks "what do you remember about X", "do we have info on Y", "recall Z"
- Looking for past decisions, preferences, or context from previous sessions
- Need to retrieve related information without exact wording (semantic search)
- General memory lookup where time frame is NOT specified
- User references "last time we discussed", "you should know", "I told you before"
THIS IS THE PRIMARY SEARCH TOOL - use it for most memory lookups.
DO NOT USE FOR:
- Time-based queries ("yesterday", "last week") - use recall_memory instead
- Exact content matching - use exact_match_retrieve instead
- Tag-based filtering - use search_by_tag instead
- Browsing all memories - use list_memories instead (if available in mcp_server.py)
HOW IT WORKS:
- Converts query to vector embedding using the same model as stored memories
- Finds top N most similar memories using cosine similarity
- Returns ranked by relevance score (0.0-1.0, higher is more similar)
- Works across sessions - retrieves memories from any time period
RETURNS:
- Array of matching memories with:
- content: The stored text
- content_hash: Unique identifier
- similarity_score: Relevance score (0.0-1.0)
- metadata: Tags, type, timestamp, etc.
- created_at: When memory was stored
Examples:
{
"query": "python async patterns we discussed",
"n_results": 5
}
{
"query": "database connection settings",
"n_results": 10
}
{
"query": "user authentication workflow preferences",
"n_results": 3
}search_by_tag tool
Search memories by exact tag matching - retrieves all memories categorized with specific tags (OR logic by default).
USE THIS WHEN:
- User asks to filter by category ("show me all 'api-docs' memories", "find 'important' notes")
- Need to retrieve memories of a specific type without semantic search
- User wants to browse a category ("what do we have tagged 'python'")
- Looking for all memories with a particular classification
- User says "show me everything about X" where X is a known tag
DO NOT USE FOR:
- Semantic search - use retrieve_memory instead
- Time-based queries - use recall_memory instead
- Finding specific content - use exact_match_retrieve instead
HOW IT WORKS:
- Exact string matching on memory tags (case-sensitive)
- Returns memories matching ANY of the specified tags (OR logic)
- No semantic search - purely categorical filtering
- No similarity scoring - all results are equally relevant
TAG FORMATS (all supported):
- Array: ["tag1", "tag2"]
- String: "tag1,tag2"
RETURNS:
- Array of all memories with matching tags:
- content: The stored text
- tags: Array of tags (will include at least one from search)
- content_hash: Unique identifier
- metadata: Additional memory metadata
- No similarity score (categorical match, not semantic)
Examples:
{
"tags": ["important", "reference"]
}
{
"tags": "python,async,best-practices"
}
{
"tags": ["api-documentation"]
}delete_memory tool
Delete a specific memory by its unique content hash identifier - permanent removal of a single memory entry.
USE THIS WHEN:
- User explicitly requests deletion of a specific memory ("delete that", "remove the memory about X")
- After showing user a memory and they want it removed
- Correcting mistakenly stored information
- User says "forget about X", "delete the note about Y", "remove that memory"
- Have the content_hash from a previous retrieve/search operation
DO NOT USE FOR:
- Deleting multiple memories - use delete_by_tag, delete_by_tags, or delete_by_all_tags instead
- Deleting by content without hash - search first with retrieve_memory to get the hash
- Bulk cleanup - use cleanup_duplicates or delete_by_tag instead
- Time-based deletion - use delete_by_timeframe or delete_before_date instead
IMPORTANT:
- This is a PERMANENT operation - memory cannot be recovered after deletion
- You must have the exact content_hash (obtained from search/retrieve operations)
- Only deletes the single memory matching the hash
HOW TO GET content_hash:
1. First search for the memory using retrieve_memory, recall_memory, or search_by_tag
2. Memory results include "content_hash" field
3. Use that hash in this delete operation
RETURNS:
- success: Boolean indicating if deletion succeeded
- content_hash: The hash of the deleted memory
- error: Error message (only present if success is False)
Examples:
# Step 1: Find the memory
retrieve_memory(query: "outdated API documentation")
# Returns: [{content_hash: "a1b2c3d4e5f6...", content: "...", ...}]
# Step 2: Delete it
{
"content_hash": "a1b2c3d4e5f6..."
}check_database_health tool
Check database health, storage backend status, and retrieve comprehensive memory service statistics.
USE THIS WHEN:
- User asks "how many memories are stored", "is the database working", "memory service status"
- Diagnosing performance issues or connection problems
- User wants to know storage backend configuration (SQLite/Cloudflare/Hybrid)
- Checking if memory service is functioning correctly
- Need to verify successful initialization or troubleshoot errors
- User asks "what storage backend are we using"
DO NOT USE FOR:
- Searching or retrieving specific memories - use retrieve_memory instead
- Getting cache performance stats - use get_cache_stats instead (if available)
- Listing actual memory content - this only returns counts and status
WHAT IT CHECKS:
- Database connectivity and responsiveness
- Storage backend type (sqlite_vec, cloudflare, hybrid)
- Total memory count in database
- Database file size and location (for SQLite backends)
- Sync status (for hybrid backend)
- Configuration details (embedding model, index names, etc.)
RETURNS:
- status: "healthy" or error status
- backend: Storage backend type (sqlite_vec/cloudflare/hybrid)
- total_memories: Count of stored memories
- database_info: Path, size, configuration details
- timestamp: When health check was performed
- Any error messages or warnings
Examples:
No parameters required - just call it:
{}
Common use cases:
- User: "How many memories do I have?" → check_database_health()
- User: "Is the memory service working?" → check_database_health()
- User: "What backend are we using?" → check_database_health()list_memories tool
List stored memories with pagination and optional filtering - browse all memories in pages rather than searching.
USE THIS WHEN:
- User wants to browse/explore all memories ("show me my memories", "list everything")
- Need to paginate through large result sets
- Filtering by tag OR memory type for categorical browsing
- User asks "what do I have stored", "show me all notes", "browse my memories"
- Want to see memories without searching for specific content
DO NOT USE FOR:
- Searching for specific content - use retrieve_memory instead
- Time-based queries - use recall_memory instead
- Finding exact text - use exact_match_retrieve instead
HOW IT WORKS:
- Returns memories in pages (default 10 per page)
- Optional filtering by single tag or memory type
- Sorted by creation time (newest first)
- Supports pagination through large datasets
PAGINATION:
- page: 1-based page number (default 1)
- page_size: Number of results per page (default 10, max usually 100)
- Returns total count and page info for navigation
RETURNS:
- memories: Array of memory objects for current page
- total: Total count of matching memories
- page: Current page number
- page_size: Results per page
- total_pages: Total pages available
- has_more: True if additional pages follow the current one
Examples:
{
"page": 1,
"page_size": 10
}
{
"page": 2,
"page_size": 20,
"tag": "python"
}
{
"page": 1,
"page_size": 50,
"memory_type": "decision"
}memory_graph tool
Knowledge graph operations - explore connections between memories.
USE THIS WHEN:
- User asks "what's related to X", "how are these memories connected"
- Investigating cause-and-effect chains between memories
- Visualizing memory relationships for debugging or understanding
- Finding the path between two related memories
ACTIONS:
- connected: Find memories connected to a given memory (BFS traversal up to max_hops)
- path: Find shortest path between two memories
- subgraph: Extract subgraph around a memory (nodes + edges for visualization)
REQUIRES: SQLite-vec, Hybrid, or Milvus storage backend. Returns error for Cloudflare.
RETURNS:
- connected: {success, connected: [{hash, distance}], count}
- path: {success, path: [hash1, ..., hash2], length}
- subgraph: {success, nodes: [...], edges: [{source, target, similarity, ...}], node_count, edge_count}
Examples:
{"action": "connected", "hash": "abc123def456...", "max_hops": 2}
{"action": "path", "hash1": "abc123...", "hash2": "def456..."}
{"action": "subgraph", "hash": "abc123...", "radius": 3}get_cache_stats tool
Get MCP server global cache statistics for performance monitoring.
Returns detailed metrics about storage and memory service caching,
including hit rates, initialization times, and cache sizes.
This tool is useful for:
- Monitoring cache effectiveness
- Debugging performance issues
- Verifying cache persistence across stateless HTTP calls
Returns:
Dictionary with cache statistics:
- total_calls: Total MCP server invocations
- hit_rate: Overall cache hit rate percentage
- storage_cache: Storage cache metrics (hits/misses/size)
- service_cache: MemoryService cache metrics (hits/misses/size)
- performance: Initialization time statistics (avg/min/max)
- backend_info: Current storage backend configuration(name computed at run time) tool
memory_review prompt
Review and organize memories from a specific time period
memory_analysis prompt
Analyze patterns and themes in stored memories
knowledge_export prompt
Export memories in a specific format
memory_cleanup prompt
Identify and remove duplicate or outdated memories
learning_session prompt
Store structured learning notes from a study session
oldTag prompt
(name computed at run time) resource
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 16 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 16 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 16 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Requests any addressNo tool sends a request to an address the caller supplies — 16 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 16 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processesNot seen in the traced code of 16 capabilities; 15 more call code the scanner could not follow, where it may happen
- Tools that touch files2 of 16 capabilities touch files; 13 more call code the scanner could not follow, where it may happen
- Tools that call the networkNot seen in the traced code of 16 capabilities; 15 more call code the scanner could not follow, where it may happen
Where the code is: 16 handlers in 3 files at commit 14c91e914916
src/mcp_memory_service/mcp_server.pystore_memory, retrieve_memory, search_by_tag, delete_memory, check_database_health, list_memories, memory_graph, get_cache_statssrc/mcp_memory_service/server_impl.py(name computed at run time), memory_review, memory_analysis, knowledge_export, memory_cleanup, learning_session, (name computed at run time)src/mcp_memory_service/web/static/app.jsoldTag
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests9 manifests: examples/plugin-audit-log/pyproject.toml, examples/plugin-smart-tagger/pyproject.toml, pyproject.toml, tests/bridge/package.json, tests/integration/package.json
- Lockfiles checked against OSV3 files resolved and checked against the OSV database; 7 not resolved: examples/plugin-audit-log/pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked; examples/plugin-smart-tagger/pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked
- Known vulnerabilities in production dependencies MEDIUM1 production package with known advisories
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versionmcp >=1.19.0,<2.0.0
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentials1 of 16 capabilities read credentials; 14 more call code the scanner could not follow, where it may happen
- Environment variables7 capabilities read environment variables (often API keys)
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read (3 only in code no tool reaches)
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (1 in production)
Dependency ranges were not resolved against a lockfile, so the score is capped at 7.
setuptoolsPyPI 81.0.0 MEDIUM 3 advisories 83.0.084.1.0
- MEDIUMPYSEC-2026-3447 BIT-setuptools-2026-59890 CVE-2026-59890 GHSA-h35f-9h28-mq5csetuptools is a package that allows users to download, build, install, upgrade, and uninstall Python packages. Prior to 83.0.0, FileList applied MANIFEST.in exclude, global-exclude, recursive-exclude, and prune directives by matching compiled glob patterns against on-disk file names without Unicode normalization, so on macOS APFS or HFS+ an NFD file name could bypass an NFC exclusion rule and be packed into a source distribution. This issue is fixed in version 83.0.0.
- MEDIUMGHSA-h35f-9h28-mq5c BIT-setuptools-2026-59890 CVE-2026-59890 PYSEC-2026-3447setuptools: MANIFEST.in exclusion bypass in sdist via Unicode normalization collision (NFC/NFD) on macOS APFS/HFS+
- LOWGHSA-xmj3-9gf7-h52wsetuptools: Windows path escape via namespace_packages.txt during legacy wheel installation Description
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
- CRITICAL GHSA-84hp-mqvj-3p8hCVE-2026-50027mcp-memory-service: Missing Authentication on Document API Endpoints Allows Unauthenticated Memory Read/Write/Delete
- HIGH GHSA-2r68-g678-7qr3CVE-2026-49291mcp-memory-service: OAuth read-only clients can write and delete memories through MCP tools/call
- HIGH GHSA-g9rg-8vq5-mpwmCVE-2026-33010mcp-memory-service's Wildcard CORS with Credentials Enables Cross-Origin Memory Theft
- MEDIUM GHSA-73hc-m4hx-79pjCVE-2026-29787mcp-memory-service Vulnerable to System Information Disclosure via Health Endpoint
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | Streamable HTTP |
| Sign-in | not checked needs the live server |
| MCP SDK | mcp >=1.19.0,<2.0.0 |
| Servers in the code | 2 (test_server, MCP Memory Service) |
The project's own security
| Security policy | yes SECURITY.md |
|---|---|
| Private reporting | mentioned the policy names a private channel |
| Past advisories | 4 · 4 with a fixed version released |
| Last push | 2026-11-15 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 4 catalogs (awesome_habitoai, github_search, glama, mcp_toplist) |
|---|---|
| License | Apache-2.0 |
| Created | 2024-12-26 |
| Topics | agent-memory agentic-ai ai-agents autogen claude crewai knowledge-graph langgraph long-term-memory mcp |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.