Memory MCP server security

The official memory MCP server has no built-in SSO, role model, admin policy or audit log, so it does not meet those enterprise requirements on its own. Its read and delete tools, stdio trust model and local data file are the points a reviewer must control.

On this page

Memory MCP server security: does the official server meet enterprise controls?

The official memory MCP server does not provide SSO, role-based access control or audit logging in any edition, so an enterprise reviewer should treat its controls as coming from the host, the operator and the MCP authorization model. The server runs as a local process, and the sources supplied for this page do not describe a built-in identity layer for it. The first decision is whether staff may connect it at all, and that decision rests on what the server can change, not on any administrative console.

The write and delete surface is the main risk. The server exposes six tools that change memory: create_entities, create_relations, add_observations, delete_entities, delete_observations and delete_relations. The README says delete_entities removes an entity together with its relations in a cascading deletion, so one call can remove linked memory. Three read tools (read_graph, search_nodes and open_nodes) return graph content, and read_graph returns the entire graph unless entityTypes or observationLimit narrow it. Reviewers should confirm which of these tools their agent client can call without a per-call approval prompt, and whether that setting is controlled centrally or per user.

The stdio trust boundary is the second decision. The MCP local server security guide says a local server is an ordinary child process that inherits environment variables and can read whatever the account can read, and that stdio is not a sandbox. Isolation through a container, sandbox or virtual machine is the responsibility of the host and operator, and prompt injection in untrusted content can steer the server into overreach. This page covers those controls for the official server only. Setup and token handling are covered in the sibling enterprise setup page, and where data is stored and deleted is covered in the sibling data privacy page.

Which memory server controls are built in, paid or outside components

This table sorts each control on the official memory server into what the server includes, what your MCP client or host decides, and what needs an outside component or is not documented. Read the last column as the work your team must plan before approval. The sources name no paid edition of the official memory server, so the server itself carries no named license cost.

ControlBuilt in to the official serverDepends on the MCP client or hostOutside component or gap
Read toolsread_graph, search_nodes and open_nodes read stored memory.The client decides whether reads run without a confirmation prompt.None documented. No per-entity read limits in the README.
Write toolsSix tools create, change or delete entities, relations and observations.Client approval prompts, where offered, are the only gate on writes.No documented read-only switch or per-tool setting in the README.
Cascading deletedelete_entities removes an entity and its relations in one call.Whether the client asks for confirmation before the call runs.Operator-kept copy of the storage file. No undo step is documented.
Whole-graph resourceExposes the full graph at memory://knowledge-graph as application/json.Whether the client loads this resource into model context.No filters on the resource. read_graph filters apply only to that tool.
stdio trust domainRuns as a local child process that inherits your environment variables.The client launches the server and passes its environment.Container, sandbox or VM set by the host or operator. stdio is a shared trust domain.
MCP authorizationNot documented as built in for this server.Client or host handles any credentials the connection uses.MCP docs call authorization optional but strongly recommended for user data, audit or strict access.
Container isolationDocker image mcp/memory is documented. No isolation settings are described.Host sets container mounts, network access and user identity.Operator-built sandbox or VM. No sandbox controls documented for the server.
SSONot documented for the memory server.Identity comes from the client or host, if at all.Identity provider behind any remote setup. No SSO in the README or MCP docs reviewed.
Audit loggingNo audit log of tool calls or changes is described.Client transcripts or host logs may record calls. Confirm what they keep.Operator-run logging around the server process. No record of who changed what is documented.

What the seven memory tools can read, add and delete

The official memory server exposes seven tools, and the review question is less about how many there are than about which of them change stored data. Three are read tools: read_graph, search_nodes and open_nodes. Six are write tools: create_entities, create_relations, add_observations, delete_entities, delete_observations and delete_relations. Any agent connected to the server can call all seven unless the host restricts them, so the approval design has to treat the six write tools as the ones that alter memory. A reviewer should decide, per client, whether an agent may add memory at all, and whether it may remove anything.

read_graph returns the entire knowledge graph unless the caller narrows it. The README documents optional entityTypes and observationLimit inputs. Without them, one read call returns everything the server holds, including observations an agent never needed. Those inputs limit what comes back to the model context, but they do not restrict who can call the tool. Confirm with the host how tool calls are approved, since narrowing a read is a design choice the calling agent makes, not a control the server enforces. The same full graph is also published as the memory://knowledge-graph resource in application/json, so any client that reads resources can obtain the complete contents without invoking a read tool.

delete_entities is the highest-impact tool on the list. Per the README, it removes the named entities and their relations in a cascading deletion, so one call can take linked memory with it. A single approved deletion can therefore remove more context than the reviewer expected. Treat deletion as a separate approval category from adding observations, and confirm that the host prompts for it. Because the server keeps no separate audit of who issued each change, plan backups of the storage file before enabling any client that can delete. Confirm with the vendor or your own tests whether any version of the server adds confirmation or versioning for deletes.

The official server runs inside your account, so the host sets the real boundary

The diagram starts at the AI client, which sends a tool request through the MCP client to the memory server process. That process runs over stdio, so it shares the trust domain of the client and inherits the environment variables of the user account. It reads and writes the local knowledge graph directly. The official server controls which tools exist and what each returns, but it does not isolate the process. Container, sandbox or VM isolation and any MCP authorization must come from the operator, so check those layers before approving use.

Where the official server's controls stop and the operator's begin.

Threats the MCP local server guide lists for memory servers

The MCP local server security guide lists threats that apply to any local server, including the official memory server. Each card below pairs one threat with the control that limits it and the check a reviewer should run, because the sources do not describe a specific incident involving this server.

Malicious or typosquatted server

A memory server installed under a look-alike package name, or from an untrusted source, runs with the same account rights as the user who launched it. Because a local server inherits environment variables and can read anything the account can read, the first control is package source pinning: install @modelcontextprotocol/server-memory from the npm registry at a version your team has reviewed, and confirm the Docker image mcp/memory comes from the repository README. Check the exact package name in every client config before approval.

Local server security guide

Overcollecting server

A server can request or gather more data than its job needs. The memory server's read_graph tool returns the entire knowledge graph by default, so a single call can expose every stored entity and observation. The control is read scoping: use the optional entityTypes and observationLimit inputs where the client allows them, and decide before rollout what categories of information staff may store in the graph at all.

Compromised dependencies

The server pulls in third-party npm packages, and any of them can be compromised after a reviewer has approved the top-level package. Installing from a fixed lockfile and a pinned version limits drift, and host isolation limits damage: run the server in a container or a separate VM rather than directly on a workstation, since the guide states that stdio is not a sandbox and isolation is the operator's responsibility. Ask who maintains updates and how dependency changes are reviewed.

Poisoned tool catalog

A client may receive a tool list that differs from what the reviewer tested, including tools with misleading descriptions. The memory server exposes nine tools, and six of them write or delete. Tool review is the control: record the tool list at approval time, compare it after each upgrade, and block write and delete tools in clients that allow per-tool approval, so a changed catalog cannot silently add new capabilities.

Prompt injection steering the server

Text inside a web page, file or message that an agent reads can instruct it to call memory tools. The server itself is honest, but the guide notes that prompt injection in untrusted content can steer it into overreach, such as calling delete_entities, which also removes linked relations in a cascading deletion. Controls include requiring approval before any delete tool runs, keeping the memory graph free of secrets, and reviewing what the agent stores after it processes outside content.

How the answer changes by deployment situation

On one developer's machine, the server runs as a child process of the AI client and works with that user's permissions and environment. Anything the account can read, the server can read, and the graph it writes sits in the developer's own profile.

  • Inherited access: The server can read whatever the developer's account can read, including environment variables passed to the process.
  • Limited enforcement: The server itself does not restrict which entities are created or deleted. The client's approval prompts are the main brake, so confirm which approval mode the team has set.
  • Authorization: For a local stdio server holding only one person's notes, MCP authorization is optional. It becomes strongly recommended once the graph holds user-specific data or needs an audit trail, so check that trigger before relying on this setup.
  • Endpoint controls: The graph lives on the laptop, so disk encryption, backup and removal policies for the endpoint decide how the data is protected.

Check that the endpoint policy covers the location where the server keeps its graph, and that the client's approval settings are fixed by policy rather than left to each developer.

Gaps the official memory server leaves for enterprise reviewers

The official memory server is a local knowledge graph with no enterprise control plane built in. The gaps below are the ones reviewers ask about first, and each one has to be closed by the host, a wrapper, the file system, or the client logs before staff use it with company data.

No documented SSO

The memory server runs as a local process under the user's own account, so it has no sign-in step of its own to attach single sign-on to. Nothing in the README describes identity providers, group mapping or enforced login. Reviewers should confirm that every machine running it is managed through the company's device and identity controls, and that no shared account or copied configuration is used to launch it.

Authorization docs

No role-based permission per tool

All seven tools are exposed to the connected client at the same level, so a client that can create entities can also delete them. The README does not offer roles that split readers from writers. Control this at the host by limiting which clients are configured, or place a wrapper or gateway in front of the server that passes only the read tools for users who should not change memory.

No read-only mode in the README

The repository documents no switch that disables the create, add and delete tools. A read-only deployment therefore depends on external controls: a gateway that filters the tool list, or a client configuration that withholds the server's write tools. Ask the team to show the exact tool list the client receives at startup, since that list is what the model can call.

No built-in audit log of deletions

The server does not record who deleted what, when, or from which session. For a shared memory store, that means a removed observation cannot be attributed from the server alone. Capture tool calls at the client or on the host, keep those logs outside the user's reach, and confirm that delete calls are included in what is retained.

Cascading delete without confirmation

The README says that deleting an entity also removes its relations, so one call can take out linked memory without a second prompt. A model that misreads a request or acts on injected text can cause that loss in a single step. Require the client to show each delete call for approval, and keep a copy of the store before enabling delete tools for any shared or long-running graph.

Whole-graph reads

The read_graph tool returns the entire knowledge graph, and the same graph is exposed as a resource at memory://knowledge-graph. Any client that can connect can therefore pull everything in the store in one request. The README's optional entityTypes and observationLimit inputs narrow output, but they are not enforced limits. Restrict who can connect, and treat the store as having the same sensitivity as its most sensitive observation.

Order of work before approving the memory server

This sequence moves from confirming what you are installing to ongoing review, so the approving team can check each control before the memory server reaches staff. Each step names the output that closes it, which becomes evidence for the approval record.

  1. Confirm the official package and version source

    The security or platform engineer confirms that the server comes from the official modelcontextprotocol/servers repository, published on npm as @modelcontextprotocol/server-memory, or from the Docker image named mcp/memory documented in the same repository. Community memory servers, such as Go, vector database or codebase implementations, are separate projects and need their own review, so they are excluded from this sequence. Record the exact package version or image tag you approve and the repository commit or release it came from. The step is done when the approval record names one source and one version, and a reviewer can reproduce that version from the source.

  2. Decide the run mode

    The engineering lead chooses between npx, a build from source and the Docker image, based on how your endpoints are managed and whether you can pin a version. The README states that npx and source runs require Node.js 24 or later, so confirm that the runtime on managed machines meets that requirement before approving npx or source. Note that a local server runs as an ordinary child process with the same trust as the client, so the run mode decides which environment, file and network access the process inherits. The step closes with a written choice of run mode and the runtime or image it depends on.

  3. Define which tools a client may call

    The security reviewer lists the seven tools the server exposes and marks each one as read or write. The read tools are read_graph, search_nodes and open_nodes. The write tools are create_entities, create_relations, add_observations, delete_entities, delete_observations and delete_relations. Note that read_graph returns the whole graph unless you narrow it with entityTypes or observationLimit, and that the same graph is exposed as the memory://knowledge-graph resource. Decide which tools each client profile may call, and confirm whether your client can disable individual tools. The step closes with a tool allowlist that a reviewer can compare against the client configuration.

  4. Isolate the process from credentials

    The platform engineer runs the server under an account that holds no cloud keys, database passwords or tokens for other systems, because a local server inherits the environment variables of its parent and can read anything the account can read. The MCP local server guidance states that stdio is not a sandbox, so container, sandbox or virtual machine isolation is the responsibility of the host and operator. Confirm the server's data file location is writable only by that account, and test that the process cannot read the credential files of the developer's workstation. The step closes when a test run shows the server cannot reach secrets outside its intended store.

  5. Restrict who can invoke delete tools

    The engineering lead and security reviewer decide who may trigger the three delete tools. The README states that delete_entities removes an entity together with its relations in a cascading deletion, so one call can remove linked memory. Because the server has no documented per-user authorization, restrict deletion through the client's tool controls or by keeping the write tools out of profiles used for shared or sensitive work. The MCP docs say authorization is strongly recommended when a server holds user-specific data or when you need to audit who did what, so record that the official server does not provide that audit trail. The step closes with a documented list of which profiles can delete.

  6. Test prompt injection against stored memory

    The security team runs a test in which untrusted content, such as a web page or document, contains instructions to write, overwrite or delete observations in the graph. The MCP security guidance says prompt injection in untrusted content can steer an honest server into overreach, and memory is a persistent place where injected text can survive into later sessions. Check whether the injected content was stored, whether a later session retrieved it through search_nodes or read_graph, and whether a delete or write tool ran without a confirmation step. Use a test graph, not production memory. The step closes with a written result for each test and a list of the tool calls that should require review.

  7. Set a review cadence

    The security owner sets a recurring review of the approved package version, the tool allowlist, the run mode and the delete permissions. Check the npm package and the repository for new releases and changes to the README, because the tool list and the default behavior are documented there and could change. Repeat the injection test after each version change and after any change to the client configuration. Record who owns the review and what triggers an early review, such as a new version, a new client, or a new use of the memory server with sensitive data. The step closes when the cadence and owner appear in the approval record.

What a security reviewer asks to see for the memory server

This table maps each control question a reviewer should ask about the official memory MCP server to the evidence to request and where that evidence lives, either in the server's repository and package or on the host. Read it as a checklist: the rows marked with the server's own documentation can be verified from public sources, while the host rows depend on how your team runs the process. The main takeaway is that the server runs with the user's full local rights, so host isolation and the client's tool allowlist carry most of the risk reduction.

Control questionEvidence to requestWhere it comes from
Which tools read the graph, and which tools write or delete?Confirmed list of the seven tools, split into three read tools and six write or delete toolsRepository README for the official memory server
What does deleting an entity remove?Written confirmation that deleting an entity also removes its relations, so one call can remove linked memoryRepository README, delete_entities description
How much of the graph can one read return?Evidence that read_graph is scoped with entityTypes and observationLimit where the team needs narrower resultsRepository README, read_graph inputs
Which package and image is in use?Package name, version pinned, and checksum or image digest for mcp/memory, matched to the official repositorynpm listing for @modelcontextprotocol/server-memory and the Docker image named in the README
Which Node.js version runs the server?Installed Node.js version on each host, confirmed as 24 or later for npx or source runsMemory server README runtime requirement, host inventory
What can the process reach on the host?Documented run user, environment variables passed, and file paths the process can openHost configuration and the MCP local server security guide, which says the server inherits environment variables and readable files
Is the server isolated from the host?Container, sandbox or VM configuration showing limited mounts and network access, or a written decision to accept host-level trustHost or container runtime config; the local server security guide places isolation with the operator
Which client tools are allowed to call the server?Client allowlist or permission settings that list the memory tools permitted per user or workspace, and which require approvalAI client settings and admin policy, confirmed with the client vendor
Who is authorized to connect, and is there an audit trail?Written statement of the authorization approach for the deployment, and the logs the team keeps of tool callsMCP authorization docs; the official memory server README does not describe SSO or audit logging, so confirm with the operator

Questions buyers ask before approving the memory server

Does the official memory MCP server support SSO?

The official memory server README does not describe an SSO sign-in step or any user accounts inside the server. It describes a local knowledge graph installed from npm as @modelcontextprotocol/server-memory or run from the mcp/memory Docker image. The MCP authorization guidance says authorization is optional but strongly recommended when a server holds user-specific data, when you need to audit who did what, or in enterprise environments with strict access controls. A memory store that keeps personal or customer details meets those conditions. Confirm with the maintainers whether the current release has any identity mode, and confirm with your AI client vendor how enterprise sign-in applies to a local stdio server. Plan for identity controls at the host and client level until the server documents its own.

Can the memory server be set to read-only?

The README does not document a read-only setting. The server exposes seven tools: three read tools (read_graph, search_nodes, open_nodes) and six that create, change or delete data. Read-only use therefore depends on controls outside the server, such as client-side tool approval or allowlists that block the six write and delete tools. Confirm with your client vendor how it enforces tool allowlists for local MCP servers. Read-only still exposes stored memory, because read_graph returns the entire graph and the README also exposes the whole graph as the resource memory://knowledge-graph. Any restriction on reading has to come from controlling what the client can call and who can run the server, not from the tools themselves.

Does deleting an entity also delete its linked memory?

Yes. The README says delete_entities removes entities and their relations in a cascading deletion, so one tool call can remove linked memory. The effect grows with the number of relations attached to an entity. A widely connected entity can remove many linked facts at once. Before enabling deletes, test the behavior on a copy of the store, and decide whether the client should be allowed to call delete_entities, delete_observations and delete_relations at all. Also ask who can approve those calls and whether a backup of the storage file exists before any destructive session. Tool approval prompts in the client are the main control available in the documented setup, so confirm how they behave for this server.

Does the memory server keep an audit log of changes?

The supplied sources do not document an audit log in the official memory server. The MCP authorization guidance lists auditing who did what as a reason to add authorization, which means audit attribution is a concern the server design must address, and the memory README does not describe how it is handled. Ask the maintainers whether the server writes any event record of creates, updates and deletes, and what fields it includes. Then check the host and client side: whether the AI client logs each tool call with its arguments, timestamp and user, and where those logs are kept. If neither layer records changes, the store has no record of which agent session added or removed a memory.

Does this review cover community memory servers?

No. This review covers only the official Knowledge Graph Memory Server in the modelcontextprotocol/servers repository, published as @modelcontextprotocol/server-memory on npm and distributed as the mcp/memory Docker image in the same README. Community memory servers, such as Go, vector database or codebase memory implementations, are separate projects. Each one needs its own review of its repository, maintainers, documentation, dependency list and tool set before approval. A community server can expose a different tool catalog and storage design, so approving the official server does not approve a community server with a similar name.

How much effort should the team budget to lock down the memory server?

The supplied sources give no effort figure, so budget from the drivers. Work includes choosing the install path (the README requires Node.js 24 or later for npx or source installs), setting the storage location, deciding which of the seven tools the client may call, testing cascading deletes, and documenting where memory lives and how it is removed. The local security guidance says a local server inherits your environment variables and can read anything your account can read, and that stdio gives no sandbox, so isolation falls to the host operator. Recurring work includes reviewing new releases and re-checking tool allowlists after client updates. When requesting a quote, ask for the written scope, deliverables and retest. DeployOpen can test an agent setup for tool permissions, credential handling and data exposure, and deliver findings with fixes and a retest.

What to confirm with the repository before you rely on it

The statements on this page rest on the official memory server README and the MCP authorization and security documentation, and both can change. Before you approve the server, open the README in the modelcontextprotocol/servers repository and confirm the current tool list, the exact tool names, the input options on read_graph (such as entityTypes and observationLimit), the cascading behavior of delete_entities, and the stated Node.js requirement. Record the commit or release you reviewed, because a tool that was read-only in one version may gain or lose write behavior in another. Repeat this check on every version bump, not only at the first rollout.

Confirm the resource exposure too. The README documents the whole graph as an MCP resource at memory://knowledge-graph, so a client that reads resources may see the full memory store even if it never calls a tool. Check whether the current docs still describe it that way, and whether the npm package (@modelcontextprotocol/server-memory) and the Docker image (mcp/memory) are published from the same source you reviewed. Pin the package version or image digest in your approved configuration so that an update cannot change the server without a new review.

Treat community memory servers as separate products. Go, vector database and codebase memory implementations are not part of the official server, so this checklist does not carry over to them. Each one needs its own review of its repository, issue history, dependencies and documentation. If staff search for a memory server by name, your allowlist should name the exact package or image, not a generic category, so that a look-alike package cannot be approved by accident.

How DeployOpen reviews a memory MCP server rollout

DeployOpen reviews how the official knowledge graph memory server is run, locked down and governed inside the client's own environment, then delivers written findings and fixes. Engagements are fixed-scope, with the scope agreed in writing before work starts.

How we scope

  • Confirm which memory server package or Docker image is in use and which Node.js runtime it runs on.
  • List which of the nine tools the client will expose, separating read tools from create, add and delete tools.
  • Identify which clients, accounts and environment variables the server will inherit, and where the memory file will sit.

How we build

  • Test whether delete_entities cascades through linked memory and whether a single prompt can trigger large removals.
  • Check how read_graph output and the memory://knowledge-graph resource reach connected clients and what they expose.
  • Review the host isolation around the stdio process, including container, sandbox or VM options the organization controls.

How we hand over

  • Deliver a findings report that maps each issue to the tool, setting or host control involved, with a recommended fix.
  • Document the agreed configuration, storage location, access settings and removal steps for the organization's own records.
  • Retest after fixes are applied and record the results in the same written report.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers when the memory server or its clients change.
  • Retesting can be repeated when the official server version, client configuration or deployment host is updated.
  • Evidence can be prepared for internal security reviews, though DeployOpen does not issue audit reports or certifications.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.