Is Memory MCP server safe?
What Memory MCP server does
The Knowledge Graph Memory server gives an MCP client persistent memory in the form of a local knowledge graph of entities, relations and observations, with tools to create, search, read and delete them. The npm author field names Model Context Protocol a Series of LF Projects, LLC. It reads and writes a local JSONL file: MEMORY_FILE_PATH sets its location, and by default it is memory.jsonl in the server directory. Before installing, set MEMORY_FILE_PATH to a location you control and back up, since everything the model stores about you and your work ends up in that file.
- Node.js filesystem read
- Node.js filesystem write/delete
- npm prepare hook
What to do: Nothing here argues against installing it. Grant the capabilities it lists only if you expect the tool to need them.
Memory MCP server is an MCP server analyzed by SkillTotal's deterministic static scanner. The scan found no malicious indicators. It can: filesystem read, filesystem write, install time execution and mcp tools detected — capabilities are what the code can do, not a verdict on intent. Risk score 0/100 (low).
@modelcontextprotocol/ server-memory 2.1.1
Get notified when this component changes
Change alerts aren't live yet. Leave your email and we'll let you know when they launch. We use it only for this and delete it on request.
Automated static-analysis result. It can contain false positives and false negatives, and is not a claim about the intent of Memory MCP server's authors. Report a false positive.
Behavioral traits
How this component maps to the CSA agentic threat model. Descriptive — it never affects the risk score.
Findings (4)
The component reads files from disk.
const current = await fs.readFile(lockPath, "utf-8").catch(() => null);
const data = await fs.readFile(this.memoryFilePath, "utf-8");
Why it matters: Usually legitimate, but worth confirming it can't be steered into reading sensitive files.
Fix: Confirm which files are read and that paths cannot be influenced by untrusted input to reach sensitive locations.
The component writes or deletes files on disk.
await fs.unlink(breakerPath).catch(ignoreError);
await fs.unlink(lockPath);
await fs.unlink(breakerPath).catch(ignoreError);
await fs.unlink(lockPath).catch(ignoreError);
await fs.unlink(lockPath).catch(ignoreError);
await fs.writeFile(tempFilePath, lines.join("\n") + "\n", mode === undefined ? undefined : { mode });await fs.unlink(tempFilePath).catch(() => { });Why it matters: Usually legitimate, but worth confirming the paths can't be controlled by untrusted input.
Fix: Confirm which files are written/deleted and that paths cannot be influenced by untrusted input.
package.json has a 'prepare' script (runs on git/local installs and before publishing).
"prepare": "npm run build",
Why it matters: Usually a build step, but confirm it doesn't fetch or run remote code.
Fix: Usually a legitimate build step; confirm it only builds and does not fetch or execute remote code.
An MCP tool surface (manifest or tool definitions) was found.
const server = new McpServer({server.registerTool("create_entities", {server.registerTool("create_relations", {server.registerTool("add_observations", {server.registerTool("delete_entities", {server.registerTool("delete_observations", {server.registerTool("delete_relations", {server.registerTool("read_graph", {server.registerTool("search_nodes", {server.registerTool("open_nodes", {Why it matters: Just context — review which tools it offers and their permissions.
Fix: Review the declared MCP tools and their permissions.
How attackers abuse these capabilities
Interactive labs on the attack class behind the rules above. They show the technique, not anything found in Memory MCP server.
Maintain Memory MCP server?
The free Claude Code plugin scans each npm, PyPI or MCP package with this report's open-source engine before the install command runs. It runs on your machine and needs no account.
Check your own component
Run the same evidence-backed scan on any MCP server, agent skill, or package.
Scan your own componentHow we determine this: deterministic static analysis (regex + AST), evidence-anchored, no code execution. Methodology →