Memory MCP server data privacy and storage

The official memory MCP server keeps its graph in a local JSONL file you place, with no built-in encryption, retention schedule or SSO described in its docs. Privacy depends on the storage path, host controls and deletion practice you set.

On this page

Does the official memory MCP server meet data privacy and storage requirements?

A head of IT or security deciding where agent memory is written and who can remove it should know first that the official Knowledge Graph Memory Server stores the graph in a local JSONL file whose path you choose. The supplied documentation describes no paid edition, managed storage, encryption at rest or retention schedule, so the storage protections are the ones your own host provides. Set MEMORY_FILE_PATH to an absolute path you own, because the default file sits inside node_modules under npx, and reinstalling, updating or clearing the npx cache can delete the graph. The Knowledge Graph Memory Server README also states the Node.js 24 requirement for npx and source runs, so confirm that version in your build image.

Next, set the host controls yourself. Saves are atomic and keep the file's permission bits across the rename, so set owner and mode on the file and its parent directory deliberately, and limit read access, since anyone who can read the file sees every entity and observation. Decide on backups and on whether the memory file lives on a network share. Shared access relies on an exclusive lock file, and a network filesystem that does not honor exclusive file creation cannot be shared safely. For Docker, the named volume survives restarts, so document that removing the volume is also a removal step. Review how the host restricts outbound network access, since a local server can open connections anywhere and the protocol does not limit that for you (MCP local server security guidance).

Write a deletion procedure before go-live. The documented removal path is the delete_entities, delete_observations and delete_relations tools, so test them against a copy of the graph and confirm with the vendor or your own records whether deleted content persists in backups or snapshots. For multiple users, the memory file has no per-user access control in the supplied material. The MCP docs say 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, so put an authorization layer in front of shared memory or give each user a separate file. Community memory servers are separate projects and need their own review of repository, storage and deletion behavior.

Storage and privacy capabilities of the official memory server

This table compares the storage, deletion, access and logging capabilities of the official knowledge graph memory server. Read the status column first: items marked as built in are documented behavior, configuration needed items depend on how your host sets the server up, and items the docs do not describe need a direct answer from the maintainers or your own testing.

CapabilityStatus in the official serverWhat the reviewer does
Storage file and MEMORY_FILE_PATHConfiguration needed. The graph is stored in a JSONL file, set by the MEMORY_FILE_PATH environment variable.Set MEMORY_FILE_PATH to an absolute path on storage your organization controls and record that path in the deployment standard.
Default location under npxConfiguration needed. The default memory.jsonl sits inside node_modules under npx, where reinstalling, updating or clearing the npx cache can delete the graph.Confirm no production or shared deployment relies on the default path and that the path is set explicitly.
Docker named volumeBuilt in. The Docker setup keeps the graph in a named volume mounted over /app/dist, so it survives restarts.Confirm which host stores the volume, who can read it and how the volume is backed up or removed.
Atomic savesBuilt in. Writes go through a temporary file and rename, and file permission bits are kept across the rename.Check the permission bits on the memory file and its directory against the host's access model.
Shared-file lockingBuilt in with limits. Clients can share one file through an exclusive lock file, but a network filesystem that does not honor exclusive file creation cannot be shared safely.Keep the file on local or verified storage and test concurrent client access before sharing it.
Delete toolsBuilt in. delete_entities, delete_observations and delete_relations are the documented way to remove stored memory.Decide which roles or clients may call these tools and test that deleted content is gone from the file.
Whole-graph resource memory://knowledge-graphBuilt in. The full graph is exposed as an application/json MCP resource, so any connected client that can read resources can read everything stored.Limit which clients connect and review what sensitive facts are stored before granting access.
Encryption at restNot described in the docs. The README does not document encryption of the JSONL file or the Docker volume.Ask the host or storage team to confirm disk or volume encryption and the key owner.
Retention and automatic expiryNot described in the docs. The server stores what is written and documents no expiry or retention period.Set a retention rule outside the server, such as scheduled review or removal of the file.
Per-user isolationNot described in the docs. One memory file serves the connected clients, so separation between users depends on separate files or hosts.Run separate memory files or hosts per user or team where data must stay apart.
Deletion audit trailNot described in the docs. The server documents no log of who deleted what.Record deletions at the host or through an authorization layer, or log the MCP client activity separately.
MCP authorization (optional but strongly recommended for user-specific data and audit needs)Outside component. MCP authorization is optional for servers, and the MCP docs recommend it when a server holds user-specific data, needs audit of who did what, or runs under strict access controls.Assign the host or an authorization layer to gate access and attribute actions to users.

How the memory server writes the knowledge graph to disk

The official memory server keeps its knowledge graph in a single JSONL file. The server process holds the entities, relations and observations in that file's contents and writes them back on each change. The file is set with the MEMORY_FILE_PATH environment variable, and if you leave it unset the server uses memory.jsonl inside the server directory. That default location matters because it sits in a directory the package manager manages, so the reader should decide the path before any staff member connects a client, not after. Confirm the resolved path on each host where the server runs, since the same configuration can point to different files on different machines.

The README describes the save as atomic: the server writes to a temporary file and then renames it over the original, and the file's permission bits are kept across the rename. This protects the graph against partial writes, so an interrupted save should not leave a half-written file behind. It does nothing for confidentiality. Anyone who can read the JSONL file, including another local user, a backup job, or a sync agent running under a different account, can read every observation in plain text. Treat the file as sensitive data and set its owner, group and mode deliberately for the account that runs the server, and check that backups and sync tools cannot copy it out by default.

The whole graph is also exposed as the resource memory://knowledge-graph, and the read_graph and search_nodes tools return stored content to whichever client is connected. Anything written into memory can therefore reach the AI client on the next session, and the file's location and access rights are the main privacy boundary you control at this layer. Before rollout, decide what categories of information staff may store, confirm which clients will read the graph, and document who can open the file on each host. What the connected model provider does with the returned content is a separate question covered by that client's own terms.

Decisions to make before choosing where the memory file lives

The memory server keeps the whole graph in one JSONL file, so where that file sits decides who can reach it, whether it survives a reinstall or restart, and how memory is removed. Review these six decisions together before any agent writes to the graph, because each one changes what happens to stored data later.

Storage path: owned absolute path

The file location is set with the MEMORY_FILE_PATH environment variable and defaults to memory.jsonl in the server directory. Under npx, that default sits inside node_modules, so reinstalling, updating or clearing the npx cache can delete the graph. Set an absolute path you own so the graph survives package changes. Confirm the path in the client configuration on every machine where the server runs.

Memory server README

Host path or Docker named volume

The Docker setup keeps the graph in a named volume mounted over /app/dist, so it persists across container restarts. A host path bind mount instead places the file where your backup and endpoint tools already look, but it inherits host permissions. Choose the model before first use, because moving an existing graph later is a manual copy. Ask whoever runs the container who can inspect, back up or delete the volume.

Memory server README

File ownership and permission bits

Saves are written to a temporary file and renamed into place, and the file's permission bits are kept across the rename. That means the permissions you set on the file persist through every save, so a file readable by a group or other users stays readable. Assign the file to the service account that runs the server, restrict it to that account, and verify the mode after the first write. Check that backups preserve the same ownership.

One shared file or one file per team

Several clients can share one memory file through an exclusive lock file. A shared graph means one user's observations are visible to every connected agent, so it can mix personal and team data. One file per user or team separates contents and makes deletion requests easier to scope, at the cost of more files to back up and retain. Decide which data classes may share a graph before connecting a second client.

Local disk or network filesystem

The README warns that a network filesystem that does not honor exclusive file creation cannot be shared safely. Two clients writing through such a mount can corrupt the graph or lose writes. Keep the file on local disk when several clients share it, or confirm with the storage team that the mount honors exclusive file creation before relying on the lock. Ask how the share is backed up and who else has mount access.

Deletion owner and timing

The documented way to remove stored memory is the delete_entities, delete_observations and delete_relations tools, which an agent can call during a session. Nothing in the README assigns a retention period, so removal happens only when someone runs these tools or deletes the file. Name an owner who approves deletions, decide when they run, and confirm that backups and the npx cache hold no stale copies that must also be purged.

How the storage answer changes by deployment method

When a developer runs the package through npx, the graph is written to memory.jsonl in the server directory unless MEMORY_FILE_PATH points elsewhere. That default sits inside node_modules, so the storage location is tied to the npm cache. The README requires Node.js 24 or later for this route.

  • Default location: memory.jsonl in the server directory, which npx places under node_modules.
  • Update and cache risk: reinstalling, updating or clearing the npx cache can delete the graph.
  • Required control: set MEMORY_FILE_PATH to an absolute path the organization owns, on storage with a named owner and backups.
  • Runtime pin: confirm Node.js 24 or later is installed on each host and written into the client launch configuration.
  • File permissions: restrict the chosen directory to the intended user account, because saves keep the file's permission bits across the rename.

Check that the configured path appears in each client's launch configuration and that a test entry survives a package update before staff rely on the memory.

Privacy gaps in the official memory server and the usual way to cover them

The official memory server writes its graph to a plain JSONL file and exposes it through a small set of tools, but the supplied documentation does not describe encryption at rest, retention, tenant separation, access logging or outbound traffic controls. Each gap below is a decision the host or the organization must make, and each needs confirmation in your own environment before approval.

Encryption at rest for the graph file

The graph is stored as a JSONL file at the path set by MEMORY_FILE_PATH, and the README describes atomic saves and preserved permission bits but says nothing about encrypting the contents. Anything the agent stored, including names, project details or personal data mentioned in conversation, sits on disk in readable form. The usual host-side response is full-disk encryption on the machine or volume holding the file, or keeping the path on a managed secret store where the platform offers one. Confirm with your security team which volumes hold the file, who can read them, and whether backups of those volumes are encrypted too.

Memory server README

No retention period for observations

The memory server keeps entities, relations and observations until something deletes them. The documented delete tools remove stored memory on request, but nothing in the supplied material sets an expiry, so older observations remain indefinitely unless someone removes them. The usual response is a scheduled review of the file, with deletion rules set by data classification, run by the owner of the memory path. Ask the vendor or your own engineering team whether any automatic expiry exists in the version you deploy, and document who runs the review and how often.

Documented removal tool
delete_observations

No per-user isolation within one graph

The server keeps one graph per memory file, and its tools do not describe separate namespaces for users or teams. If several people share one file, an observation stored for one person can be returned by search or read_graph to anyone else who connects to that file. The usual response is one memory file per user or tenant, each at its own absolute path with its own permissions. Confirm that each client launch points to the intended file and that shared files are used only where all readers may see every entry.

No audit trail of reads and deletions

The README describes what the tools do but does not describe any log of which client read the graph, searched it or removed an entry. The MCP authorization guidance treats auditing who did what as a reason to add authorization, which the stdio setup used by the local server does not provide on its own. The usual response is host logging: operating system or container logs for the process, file access auditing on the memory path, and retention of those logs under your own policy. Confirm with your security team what the host records and whether it is enough to answer a question about a specific deletion.

MCP authorization docs

Unrestricted outbound network access

The MCP local server security guidance states that a local server can open outbound connections anywhere, and that egress limits are a host-side control rather than something the protocol enforces. The memory server does not need general internet access to read and write its local file, so an outbound allowlist is a reasonable default to test. The usual response is a network policy or host firewall that blocks egress from the process except to approved destinations. Confirm the restriction by testing it from the same user account and container that runs the server.

Local server security guide

Decision path for choosing the memory storage location

The path starts with whether the memory must survive reinstalls, since the default file sits inside the npx install tree and can be lost. Next, it asks whether several clients will share one file and whether the host is a network filesystem that cannot honor exclusive file creation. Then it asks whether the file will hold regulated or personal data, which decides whether the path must sit on storage you own and control. Authorization and host-side egress controls attach at the end, because the protocol does not restrict outbound network connections on its own.

Decision sequence for where the memory JSONL file should live and which controls apply.

Order of work to put memory storage under control before production

This sequence moves the memory server from a default setup to a documented, owned and recoverable store with defined access and deletion. Each step ends with evidence a security or platform reviewer can check before production use.

  1. Confirm the Node.js version and exact package

    The platform engineer records how the server is launched: through npx from the npm package @modelcontextprotocol/server-memory, from source, or from the Docker image mcp/memory. The README says the npx and source routes require Node.js 24 or later, so the engineer confirms the runtime version on the host and pins the package version or image tag that will be approved. Done means a change record lists the runtime version, the package or image identifier, and the version or digest in use, and the record matches what is actually running on the host.

  2. Choose and own the storage path

    The platform engineer sets MEMORY_FILE_PATH to an absolute path on storage the organization controls, instead of relying on the default memory.jsonl. The README warns that the default sits inside node_modules under npx, where reinstalling, updating or clearing the npx cache can delete the graph. For Docker, the engineer confirms the named volume and where it is backed by the host. Done means the configuration file shows the explicit path, and a test write survives a server restart and a package reinstall in a non-production copy.

  3. Set file ownership and permission bits

    The system administrator assigns the memory file and its directory to a dedicated service account and restricts access to that account and the approved administrators. The README notes that saves write through a temporary file and rename while keeping the file's permission bits, so the initial permissions carry forward. The administrator checks the mode and owner with a directory listing after a save. Done means the evidence is a recorded owner, group and mode, plus confirmation that other local users cannot read the file.

  4. Decide on sharing and the network filesystem question

    The platform lead decides whether one memory file will be shared by several clients. The README says several clients can share a file through an exclusive lock file, but a network filesystem that does not honor exclusive file creation cannot be shared safely. The engineer tests the chosen storage for exclusive file creation before approving any shared use. If the storage is a network share that cannot be verified, the decision is one file per host or per user. Done means a signed decision record names the sharing model and the storage test result.

  5. Confirm host encryption and backup handling

    The security engineer confirms that the host volume holding the memory file is encrypted at rest under the organization's standard disk or volume policy, and that backups of that volume are encrypted and covered by the same access rules. The team also decides who may restore a backup, since a restored file can bring back deleted entries. Done means the evidence is the encryption setting for the volume, the backup policy with its retention and access list, and a documented restore test that confirms the restored file loads.

  6. Define the deletion procedure and its owner

    The data owner writes a deletion procedure using the documented delete tools: delete_entities, delete_observations and delete_relations. The procedure names who may request deletion, who runs it, how the entries are identified, and how backups and copies are handled, since the tools remove graph content but do not address copies elsewhere. The owner confirms the procedure by running it on a test graph and checking with read_graph that the content is gone. Done means an approved runbook, a named operator, and a test record showing the deletion result.

  7. Add authorization and egress controls for shared data

    Before the server holds user-specific or shared content, the security team decides on authorization and network restrictions. The MCP authorization documentation says authorization is optional but strongly recommended when a server holds user-specific data, when audit of who did what is needed, or in enterprise environments with strict access controls. The local server security guidance notes that a local server can open outbound connections anywhere, so egress limits must be set on the host. Done means a written control set covering who can connect, which outbound destinations are allowed, and how the host firewall enforces them, with a test showing a blocked destination.

What a security reviewer asks to see for memory data storage

This table maps each question a security reviewer typically asks about memory server storage to the evidence to produce and where that evidence comes from. Use it as a checklist before approving the official memory server, and treat any row without a documented answer as a gap to close in your own environment.

Reviewer questionEvidence to produceWhere it comes from
Where is the graph stored on disk?The absolute path set in MEMORY_FILE_PATH for each host, plus confirmation that it is not the default memory.jsonl inside the npx or node_modules directory.Deployment configuration and the README storage section
Who can read and write that file?Owner, group and permission bits on the JSONL file and its parent directory, with the service account that runs the server listed.Host file permission records and a direct check on the server
Does the file survive reinstalls, updates and cache clears?A written note that the graph lives outside the npx cache, and a restore test that confirms the file persists after reinstalling the package.README warning about npx cache and the reviewer's own test
How is the Docker deployment persisted?The named volume definition and the mount point, plus proof the data remains after a container restart.Docker deployment configuration and the README volume description
Is there a backup, and who restores it?Backup scope covering the JSONL file, its owner, schedule and restore procedure. Note that the file holds all stored entities, relations and observations.Organization backup policy and the reviewer's own restore test
Can deletion be proven?Test records of delete_entities, delete_observations and delete_relations calls, followed by a file check confirming the content is gone from the stored graph.README delete tool documentation and the reviewer's own test
Can several clients share one file safely?Confirmation of the storage type, with a statement that the file is on local disk or a filesystem that honors exclusive file creation for the lock file.README locking section and host storage configuration
Can the server send data outside the host?Host-side egress rules for the account or process running the server, with a test showing blocked outbound traffic if the policy requires it.MCP local server security guidance and the organization's network controls
Who may connect to the server and is access logged?The authorization decision for the deployment, recorded with reasons. The official memory server does not provide SSO or audit logging, so compensating controls must be listed.MCP authorization guidance and the reviewer's own assessment

Questions buyers ask before approving memory server storage

Does the official memory MCP server have a paid edition or SSO?

The supplied documentation for the official Knowledge Graph Memory Server describes no paid edition, no SSO and no built-in audit logging. The server is published as the open-source package @modelcontextprotocol/server-memory, and the README covers local storage and tool behavior, not enterprise licensing. Ask the reviewer's own team to confirm whether any commercial distribution exists before assuming one. For identity, 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 when strict access controls apply. Since the official memory server does not document those controls, the practical answer is that access control and attribution must come from the host, the client configuration and your own logging.

What does it cost to run the official memory server?

The server itself is open source, so the software carries no license fee in the supplied sources. Cost comes from the components around it: the host or workstation that runs the process, the storage location you choose and back up, the Node.js runtime (the README requires Node.js 24 or later for npx or source runs), and the internal effort to review, configure and document it. Recurring costs include storage, backup and periodic review when the package or Docker image changes. One-time costs include the initial path, permission and policy setup. If you engage outside help, the quote should name the scope in writing, including host hardening, testing and retest, and should state whether ongoing support is included. DeployOpen does not publish a price list, so a quote follows from the agreed scope.

How long does a memory server rollout take?

No duration is supplied for this rollout, and the time depends on your environment: how many hosts run the server, whether the storage location is a managed volume or a network share, how many clients share one memory file, and how many approvals your security and compliance teams need. The technical steps are short compared with the review. Plan time for choosing an absolute storage path you own, setting the MEMORY_FILE_PATH variable, confirming the file's permissions, testing deletion with the documented delete tools, and documenting what the memory may contain. Ask any outside provider to state the timeline in the written scope rather than relying on a generic estimate.

Can our team set up and approve the memory server without outside help?

Usually yes for the path and permission steps. Your engineers can set MEMORY_FILE_PATH to an absolute location they control, keep the file on a local, access-controlled disk, decide which clients may load the server, and confirm that the file's permission bits meet your policy. Outside help is most useful for host hardening, reviewing the egress controls a local server needs (the MCP local server security guidance notes that a local server can open outbound connections anywhere, so restricting them is a host-side task), and independent testing of prompt injection, file exposure and deletion behavior, followed by a retest. Ask any provider whether they will deliver a written findings report and what the retest covers.

What does deleting memory actually remove?

The documented removal path is the delete tools: delete_entities, delete_observations and delete_relations. These change the stored graph, and saves are atomic, so a completed delete replaces the file through a temporary write and rename. Deletion does not reach copies that already left the server. Anything a connected client, model provider or log already received is outside what the memory server controls, so review those systems separately. Also check where the file lives: if it sits in the default location inside node_modules under npx, reinstalling, updating or clearing the npx cache can remove the graph, which is a loss of data, not a managed deletion. For Docker, the graph sits in a named volume, so removing that volume is a separate deletion step. Test the deletion path in a non-production file and keep a written record of what was removed.

Can community memory servers be approved with the same evidence?

No. The evidence in this review applies only to the official Knowledge Graph Memory Server in the modelcontextprotocol/servers repository. Community memory servers, including Go, vector database and codebase implementations, are separate projects with their own code, storage choices and documentation. Each needs its own review of the repository, its license, its release history, where it writes data and what its tools can change. A storage review for the official server does not transfer to a community server, even when both appear under similar names in a client's configuration. Record the exact package or image name in your approval so reviewers do not confuse the two later.

How DeployOpen works on this

DeployOpen reviews where a memory MCP server keeps its graph, who can reach that location, and how stored memory is removed, then deploys and documents the storage setup inside your own infrastructure. The work follows a written scope so your security and compliance teams can review each control before staff connect AI clients.

How we scope

  • Agree in writing which memory server build, client connections and storage locations are in scope for the review.
  • Confirm the MEMORY_FILE_PATH location, the Docker volume setup and the hosts that will read the graph file.
  • Engagements are fixed-scope, with deliverables and timelines set before work starts; ongoing support is available as a retainer.

How we build

  • Move the graph file from the default npx location to an absolute path your team owns, with restricted file permissions.
  • Test shared-file setups, lock file behavior and network filesystem exposure before more than one client writes to the graph.
  • Verify that the delete_entities, delete_observations and delete_relations tools remove stored memory as your retention rules require.

How we hand over

  • Deliver a findings report covering storage location, file permissions, backup handling, deletion tests and host egress controls.
  • Document the storage configuration, ownership, backup and removal procedures so your team can operate and review them.
  • Retest the storage controls after fixes and hand over evidence your compliance reviewers can assess.

How we support

  • Provide ongoing support, upgrades and continuous testing as a retainer when memory servers change or new clients join.
  • Re-review storage locations when the server version, Docker setup or client list changes.
  • Prepare control evidence for your compliance assessment; independent auditors and certification bodies issue any attestation.

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.