okooo5km/memory-mcp-server-go
A Model Context Protocol server that provides knowledge graph management capabilities.
2b4ea4c57a28Paths 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
Code Safety, Capability Exposure and Behavior Transparency are not analysed and have no number.
- Code Safety and Capability Exposure: no tool's code could be followed from its input
- Behavior Transparency: no tool description could be read to compare with 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
- MEDIUM2 production dependencies have 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.
- Update its vulnerable packages
Use
golang.org/x/mod0.40.0 or later,golang.org/x/sys0.44.0 or later. - 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 13 tools, 3 resources, 3 prompts. 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.
The code of the tools could not be followed, so what they can reach is not known.
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
No tool was seen returning text from outside the server to the model.
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (19: 13 tools, 3 resources, 3 prompts)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
memory-recallprompt Search and recall relevant memories from the knowledge graph based on a topic or question
Search and recall relevant memories from the knowledge graph based on a topic or question
memory-reviewprompt Review and summarize all stored memories about a specific entity, including its observations and connections
Review and summarize all stored memories about a specific entity, including its observations and connections
memory-saveprompt Analyze text and extract entities, relations, and observations to save as memories in the knowledge graph
Analyze text and extract entities, relations, and observations to save as memories in the knowledge graph
Entity & Relation Typesresource Lists all entity types and relation types currently in the knowledge graph with their counts. Useful for understanding the schema and maintaining consistent nam
Lists all entity types and relation types currently in the knowledge graph with their counts. Useful for understanding the schema and maintaining consistent naming when creating new entities.
Entity Detailsresource Get full details of a specific entity by name, including all observations and relations. Use the entity name from graph summary or search results.
Get full details of a specific entity by name, including all observations and relations. Use the entity name from graph summary or search results.
Knowledge Graph Summaryresource Overview of the knowledge graph including entity/relation counts, type distribution, and entity name list. Load this at the start of a conversation to understan
Overview of the knowledge graph including entity/relation counts, type distribution, and entity name list. Load this at the start of a conversation to understand what memories are available.
add_observationstool Add new observations (facts) to existing entities in the knowledge graph.
Add new observations (facts) to existing entities in the knowledge graph. Use this to append new information to entities that already exist. If the entity doesn't exist yet, use create_entities first. Each observation should be a single, atomic fact. Duplicate observations are automatically skipped. EXAMPLE: entityName: "TypeScript", contents: ["Version 5.0 released in 2023", "Supports decorators natively"]
create_entitiestool Create new entities in the knowledge graph. Each entity has a unique name, a type, and observations (atomic facts).
Create new entities in the knowledge graph. Each entity has a unique name, a type, and observations (atomic facts). BEFORE CREATING: Use search_nodes to check if the entity already exists. If it does, use add_observations to add new facts instead of creating a duplicate. NAMING CONVENTIONS: - Use clear, descriptive names (e.g. "TypeScript", "ProjectAlpha", "JohnDoe") - entityType should be a lowercase category: "person", "technology", "project", "concept", "preference", "organization", "event", "location" - Each observation should be a single, atomic fact — not a paragraph EXAMPLE: name: "TypeScript", entityType: "technology" observations: ["Preferred language for frontend development", "Used with React in current project"]
create_relationstool Create directed relations (edges) between existing entities in the knowledge graph.
Create directed relations (edges) between existing entities in the knowledge graph. Relations express how entities are connected. Use active voice for relation types. Both "from" and "to" entities must already exist — create them first if needed. RELATION TYPE EXAMPLES: "works_on", "uses", "belongs_to", "created_by", "depends_on", "manages", "likes", "knows" EXAMPLE: from: "JohnDoe", to: "ProjectAlpha", relationType: "works_on" from: "ProjectAlpha", to: "TypeScript", relationType: "uses"
delete_entitiestool Delete entities and all their associated observations and relations from the knowledge graph. This action is irreversible.
Delete entities and all their associated observations and relations from the knowledge graph. This action is irreversible.
delete_observationstool Delete specific observations from entities. Use this to remove outdated or incorrect facts while keeping the entity itself.
Delete specific observations from entities. Use this to remove outdated or incorrect facts while keeping the entity itself.
delete_relationstool Delete specific relations from the knowledge graph. All three fields (from, to, relationType) must match exactly.
Delete specific relations from the knowledge graph. All three fields (from, to, relationType) must match exactly.
detect_conflictstool Detect potential duplicate or contradictory observations within entities.
Detect potential duplicate or contradictory observations within entities. Analyzes observation pairs for: - Potential duplicates: observations with high prefix overlap (>60% of words match at start) - Potential contradictions: observations containing antonym keyword pairs (e.g. "likes X" vs "dislikes X") USE WHEN: Reviewing memory quality, or after bulk imports to find inconsistencies. RETURNS: List of conflicts with entity name, both observations, and conflict type.
merge_entitiestool Merge two entities into one. All observations and relations from the source entity are migrated to the target entity, then the source is deleted.
Merge two entities into one. All observations and relations from the source entity are migrated to the target entity, then the source is deleted. USE WHEN: You discover duplicate entities (e.g. "React.js" and "React" refer to the same thing). BEHAVIOR: - Source observations are added to target (duplicates skipped) - Source relations are redirected to target (duplicates skipped) - Source entity is deleted after migration EXAMPLE: sourceName: "React.js", targetName: "React" → merges React.js into React
open_nodestool Get FULL details of specific entities by their exact names.
Get FULL details of specific entities by their exact names. Returns complete entity data including ALL observations and ALL relations (both incoming and outgoing). Use search_nodes first to find entity names if you're unsure of the exact name. REQUIRES: Exact entity names (case-sensitive). Get these from search_nodes results. RETURNS: Complete entities with all observations, plus all relations connected to these entities.
read_graphtool Read the knowledge graph to understand what memories are stored.
Read the knowledge graph to understand what memories are stored. MODES: - "summary" (default): Returns statistics (entity/relation counts, type distribution) and a list of entity names. Use this to get an overview of available memories. - "full": Returns the complete graph with all entities, observations, and relations. Use for backup or comprehensive analysis. Can be large. RECOMMENDED WORKFLOW: Start with summary mode to see what's available, then use search_nodes for specific topics.
search_nodestool Search the knowledge graph for entities matching your query. This should be your FIRST step when looking for stored information.
Search the knowledge graph for entities matching your query. This should be your FIRST step when looking for stored information. Returns lightweight results (name, type, matched snippets, counts) — NOT full entity details. Use open_nodes with entity names from results to get complete information. SEARCH BEHAVIOR: - Single keyword: "React" matches entities with "React" in name, type, or observations - Multiple keywords (space-separated OR): "React Vue" finds entities matching EITHER keyword - Results are ranked: name matches first, then type matches, then observation content matches WORKFLOW: search_nodes (find relevant entities) → open_nodes (get full details)
update_entitiestool Update the type of an existing entity.
Update the type of an existing entity. USE WHEN: An entity was created with the wrong type and needs correction. EXAMPLE: name: "React", entityType: "framework" (was previously "library")
update_observationstool Replace an existing observation with updated content. Use this to correct outdated or inaccurate facts.
Replace an existing observation with updated content. Use this to correct outdated or inaccurate facts. USE WHEN: An observation needs correction (e.g. "Uses React 17" → "Uses React 18"). REQUIRES: The exact old observation text. Use open_nodes first to get the current text.
Text the model reads (19)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
create_entities tool
Create new entities in the knowledge graph. Each entity has a unique name, a type, and observations (atomic facts). BEFORE CREATING: Use search_nodes to check if the entity already exists. If it does, use add_observations to add new facts instead of creating a duplicate. NAMING CONVENTIONS: - Use clear, descriptive names (e.g. "TypeScript", "ProjectAlpha", "JohnDoe") - entityType should be a lowercase category: "person", "technology", "project", "concept", "preference", "organization", "event", "location" - Each observation should be a single, atomic fact — not a paragraph EXAMPLE: name: "TypeScript", entityType: "technology" observations: ["Preferred language for frontend development", "Used with React in current project"]
create_relations tool
Create directed relations (edges) between existing entities in the knowledge graph. Relations express how entities are connected. Use active voice for relation types. Both "from" and "to" entities must already exist — create them first if needed. RELATION TYPE EXAMPLES: "works_on", "uses", "belongs_to", "created_by", "depends_on", "manages", "likes", "knows" EXAMPLE: from: "JohnDoe", to: "ProjectAlpha", relationType: "works_on" from: "ProjectAlpha", to: "TypeScript", relationType: "uses"
add_observations tool
Add new observations (facts) to existing entities in the knowledge graph. Use this to append new information to entities that already exist. If the entity doesn't exist yet, use create_entities first. Each observation should be a single, atomic fact. Duplicate observations are automatically skipped. EXAMPLE: entityName: "TypeScript", contents: ["Version 5.0 released in 2023", "Supports decorators natively"]
delete_entities tool
Delete entities and all their associated observations and relations from the knowledge graph. This action is irreversible.
delete_observations tool
Delete specific observations from entities. Use this to remove outdated or incorrect facts while keeping the entity itself.
delete_relations tool
Delete specific relations from the knowledge graph. All three fields (from, to, relationType) must match exactly.
read_graph tool
Read the knowledge graph to understand what memories are stored. MODES: - "summary" (default): Returns statistics (entity/relation counts, type distribution) and a list of entity names. Use this to get an overview of available memories. - "full": Returns the complete graph with all entities, observations, and relations. Use for backup or comprehensive analysis. Can be large. RECOMMENDED WORKFLOW: Start with summary mode to see what's available, then use search_nodes for specific topics.
search_nodes tool
Search the knowledge graph for entities matching your query. This should be your FIRST step when looking for stored information. Returns lightweight results (name, type, matched snippets, counts) — NOT full entity details. Use open_nodes with entity names from results to get complete information. SEARCH BEHAVIOR: - Single keyword: "React" matches entities with "React" in name, type, or observations - Multiple keywords (space-separated OR): "React Vue" finds entities matching EITHER keyword - Results are ranked: name matches first, then type matches, then observation content matches WORKFLOW: search_nodes (find relevant entities) → open_nodes (get full details)
open_nodes tool
Get FULL details of specific entities by their exact names. Returns complete entity data including ALL observations and ALL relations (both incoming and outgoing). Use search_nodes first to find entity names if you're unsure of the exact name. REQUIRES: Exact entity names (case-sensitive). Get these from search_nodes results. RETURNS: Complete entities with all observations, plus all relations connected to these entities.
merge_entities tool
Merge two entities into one. All observations and relations from the source entity are migrated to the target entity, then the source is deleted. USE WHEN: You discover duplicate entities (e.g. "React.js" and "React" refer to the same thing). BEHAVIOR: - Source observations are added to target (duplicates skipped) - Source relations are redirected to target (duplicates skipped) - Source entity is deleted after migration EXAMPLE: sourceName: "React.js", targetName: "React" → merges React.js into React
update_entities tool
Update the type of an existing entity. USE WHEN: An entity was created with the wrong type and needs correction. EXAMPLE: name: "React", entityType: "framework" (was previously "library")
update_observations tool
Replace an existing observation with updated content. Use this to correct outdated or inaccurate facts. USE WHEN: An observation needs correction (e.g. "Uses React 17" → "Uses React 18"). REQUIRES: The exact old observation text. Use open_nodes first to get the current text.
detect_conflicts tool
Detect potential duplicate or contradictory observations within entities. Analyzes observation pairs for: - Potential duplicates: observations with high prefix overlap (>60% of words match at start) - Potential contradictions: observations containing antonym keyword pairs (e.g. "likes X" vs "dislikes X") USE WHEN: Reviewing memory quality, or after bulk imports to find inconsistencies. RETURNS: List of conflicts with entity name, both observations, and conflict type.
memory-recall prompt
Search and recall relevant memories from the knowledge graph based on a topic or question
memory-save prompt
Analyze text and extract entities, relations, and observations to save as memories in the knowledge graph
memory-review prompt
Review and summarize all stored memories about a specific entity, including its observations and connections
Knowledge Graph Summary resource
Overview of the knowledge graph including entity/relation counts, type distribution, and entity name list. Load this at the start of a conversation to understand what memories are available.
Entity & Relation Types resource
Lists all entity types and relation types currently in the knowledge graph with their counts. Useful for understanding the schema and maintaining consistent naming when creating new entities.
Entity Details resource
Get full details of a specific entity by name, including all observations and relations. Use the entity name from graph summary or search results.
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 injectionNot checked: no tool's code could be followed from its input
- 5 checks: runs programs the caller chooses, executes caller-supplied code, reads or writes any file path, requests any address, runs caller-supplied SQLNot checked: no tool's code could be followed from its input
- Tools that start processesNot known: no tool's code could be followed
- Tools that touch filesNot known: no tool's code could be followed
- Tools that call the networkNot known: no tool's code could be followed
Where the code is: 19 handlers in 1 file at commit 2b4ea4c57a28
- 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 manifests1 manifest: go.mod
- Lockfiles checked against OSV1 file resolved and checked against the OSV database
- Known vulnerabilities in production dependencies MEDIUM2 production packages with known advisories
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versiongithub.com/modelcontextprotocol/go-sdk v1.8.0
- 1 check: credential harvestingChecked on every scan. Results in this category are published only after a person has verified them.
- Undeclared credential accessNot checked: no tool description could be read to compare with the code
- Credentials sent over the networkNot checked: no tool description could be read to compare with the code
- Tools that read credentialsNot known: no tool's code could be followed
- 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 executionNot checked: no tool description could be read to compare with the code
- Tool descriptions presentEvery tool has a description the model and the user can read
- 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 (2 in production)
golang.org/x/modGo v0.27.0 MEDIUM 2 advisories 0.40.0
- MEDIUMGO-2026-6180 BIT-golang-2026-56864 CVE-2026-56864Ignore unrelated, unauthenticated hashes in Lookup in golang.org/x/mod/sumdb
- MEDIUMGO-2026-6179 BIT-golang-2026-56865 CVE-2026-56865Fix transparency log tile verification bypass in golang.org/x/mod/sumdb/tlog
golang.org/x/sysGo v0.41.0 MEDIUM 1 advisory 0.44.0
- MEDIUMGO-2026-5024 CVE-2026-39824Invoking integer overflow in NewNTUnicodeString in golang.org/x/sys/windows
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | not stated in the code the scanner read; most local servers talk over stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | github.com/modelcontextprotocol/go-sdk v1.8.0 |
The project's own security
| Security policy | none no SECURITY.md in the repository: report issues privately through GitHub if it is enabled |
|---|---|
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-11-02 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 2 catalogs (awesome_tensorblock, github_search) |
|---|---|
| License | not stated |
| Created | 2025-04-15 |
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.