Memory MCP server enterprise setup: official server, OAuth and tokens

The official memory MCP server has no built-in SSO, admin policy or audit logging in its documented setup, so those controls must be added around it. This page explains how stdio and remote setups handle credentials and OAuth, and what to build before approval.

On this page

Does the official memory MCP server meet an SSO and enterprise identity requirement?

The official memory server does not document SSO, admin policy or audit logging, and the supplied sources describe no enterprise edition of it, so any identity requirement must be met by controls built around the server. A head of IT or security should treat single sign-on as not available from the server itself until the maintainers confirm otherwise in writing. The answer also depends on how the server is run. The README documents installation through Docker (image mcp/memory) or npx for Claude Desktop and VS Code, which are local launches over stdio, and the MCP authorization tutorial says stdio servers can use environment-based credentials instead of OAuth.

That split matters for the review. A stdio process started by a user's client inherits that user's operating system account and any environment variables set for it, so identity is whatever the workstation already enforces, and the server records no per-user actor. OAuth flows, by contrast, are described for HTTP-based transports where the server is remotely hosted. If your staff would run a remote or hosted version, you would need to confirm with the maintainers whether such a deployment exists, how it authenticates users, and whether the MCP authorization guidance applies to it. The official memory server README is the starting point for that confirmation.

Before approval, ask the maintainers or the repository owners four questions: whether any enterprise or managed edition exists, whether the server can enforce sign-in through an identity provider, whether it writes records that tie each change to a named user, and which version of the software your review covers. If the answers are no, the requirement must be met outside the server, for example by restricting the client that launches it to managed workstations, keeping the storage file under controls your identity team already audits, and logging the client's own activity. Record the answers in the review file, because the same questions apply to any community server offered as an alternative.

Which enterprise controls the official memory server documents

This table compares the controls the official memory server documents with those it leaves to the MCP docs or to an outside component. Read the status column first: built in and documented items are what the vendor states, while items marked as needing an outside component must be designed and evidenced by your team. The sources describe no paid tier for this server, so confirm that with the modelcontextprotocol/servers maintainers before budgeting.

CapabilityStatusWhat it means for the reviewer
npm package distributionBuilt inPublished as @modelcontextprotocol/server-memory. Pin a version and review the package before install.
Docker image mcp/memoryBuilt inDocumented in the README. Confirm the image source and tag before pulling it into production.
npx launch on Node.js 24 or laterBuilt inThe README requires Node.js 24 or later. Put this minimum in your build and approval baseline.
stdio transport with environment-based credentialsDocumented as optionalMCP docs allow environment credentials for stdio. The README names no credential settings, so confirm what the server reads.
OAuth 2.1 conventions for HTTP transportsNot documentedThe README describes no HTTP transport or OAuth flow for this server. MCP docs reserve OAuth for remotely hosted servers.
SSONeeds an outside componentThe README documents no SSO. Any identity layer must come from your gateway or platform.
Admin policy or central enforcementNeeds an outside componentNo central admin settings are documented. Enforce client allowlists and configuration through your MCP client or gateway.
Audit logging of who performed which actionNeeds an outside componentThe README documents no audit log. MCP docs recommend authorization when audit is needed, so add logging around the server.
Built-in RBACNot documentedNo roles or permission tiers appear in the README. Each connected client gets the full tool set.

How authentication works for stdio and remote memory servers

The transport decides which authentication model applies. A stdio server runs as a local process that the AI client starts on the user's machine. The MCP authorization guidance says such servers can use environment-based credentials instead of OAuth. OAuth 2.1 conventions apply to HTTP transports, where the server is hosted remotely and the client must prove who it is acting for. The official Knowledge Graph Memory Server is designed to run locally, so the first decision is whether your staff will run it as a local stdio process or whether anyone will host it behind an HTTP endpoint. Confirm the transport your chosen package or container uses before approving it, because the authentication controls you need depend on it.

For a local stdio deployment, the trust boundary sits on the endpoint and on the account that launches the process. Anyone who can run the client on that device, or who can edit its configuration, can start the server and read or change the graph it stores. The memory server README does not document built-in authentication, SSO or audit logging, so those controls must come from the device and account side: managed client configuration, restricted write access to the storage location and the operating system account that owns it. Any credential the process reads from its environment should be treated as a secret that lives on that machine, and you should confirm with the vendor and your own tooling where those values are stored.

The MCP authorization guidance recommends authorization in three situations: when a server holds user-specific data, when you need to audit who did what, and in enterprise environments with strict access controls. A memory graph can hold personal or customer details that people never meant to share across tools, so the first question is whether the graph is user-specific. If your review finds any of the three conditions, a local stdio server alone will not meet the requirement, and you should either restrict the deployment to a managed, single-user device or put the server behind an access layer that your identity team operates. Ask the implementation team to document which condition applies and who approves the exception.

Decision path for SSO, OAuth and audit requirements

The path starts with the transport: a memory server run locally over stdio can use environment-based credentials, while OAuth applies to HTTP-based transports where the server is remotely hosted. The official memory server README does not document built-in authentication, SSO or audit logging, so any branch that needs a central identity provider login or an audit trail ends in a control the organization must build around the server. Check each branch against your own identity and logging setup before approval, and stop for further review when the required controls do not exist.

Decision path from transport choice to the controls an organization must add.

Decisions the organization must make before approval

Before approving the official memory server, the organization has to settle how it runs, who holds credentials, where the graph file sits and which clients may launch it. Each choice changes who can revoke access, what gets audited and which endpoints are exposed.

Transport: stdio or hosted HTTP

The memory server is run locally as a process the client launches, so each endpoint is its own deployment. A hosted HTTP deployment moves the server to one place that IT controls, but the organization then has to build the remote access layer itself. The MCP authorization tutorial says OAuth flows are designed for HTTP-based transports where the server is remotely hosted, so the transport choice decides whether OAuth applies at all. Confirm which transport each approved workflow uses.

Authorization tutorial

Credential issuance and storage

For stdio servers, the MCP tutorial says environment-based credentials can be used instead of OAuth, so the organization must decide where those values are set, who can read them and how they are rotated. Ask who issues each credential, whether it is tied to a named person or shared, and how it is removed when someone leaves. Shared secrets weaken the audit trail and slow revocation.

Identity provider behind remote OAuth

If the server is hosted remotely, the organization must choose the identity provider that signs users in and issues tokens. The official memory server README does not document built-in authentication or SSO, so that provider and its integration must be designed and owned by the organization. Confirm which identity provider is used, how group membership maps to access, and who can approve new clients. The vendor's own documentation for that provider is the authority on its features.

Location and read access to the graph file

The server keeps entities, relations and observations in a local knowledge graph, and it exposes the whole graph as a resource at memory://knowledge-graph. Anyone who can read the file, or the resource, can read everything the agent has stored. Decide the storage path on each machine, set file permissions, and decide whether memory from different projects or users may share one file. Confirm the data location with the people who own the endpoint.

Client software allowed to launch the server

Stdio servers start when a client runs them, and the README documents Docker (image mcp/memory) and npx, which needs Node.js 24 or later. The organization should list which AI clients and versions may launch the server, and whether the server may be started from npx, a pinned npm package or a Docker image. Each allowed launch path becomes a control point to review, patch and remove when it is no longer approved.

npm package page

Where action logs are collected

The MCP tutorial says authorization is recommended when you need to audit who performed which actions, and the memory server README does not document audit logging. Write and delete tools such as delete_entities and delete_observations therefore leave no record unless the organization adds logging around the server. Decide where tool calls are recorded, who reads those logs, how long they are kept, and whether the logs can show which user or client made each change.

How the answer changes by deployment situation

A single developer running the official server over stdio on a managed laptop is the simplest case. The MCP authorization tutorial notes that STDIO servers can use environment-based credentials instead of OAuth, and that OAuth flows are designed for HTTP-based transports. The server runs as a local process under the developer's own account, so its file access and permissions are those of that user.

  • Package source: Confirm whether staff install @modelcontextprotocol/server-memory through npx or use the Docker image mcp/memory, and pin the version you approve.
  • Runtime: The README requires Node.js 24 or later for npx or source runs, so check that managed laptops meet it.
  • Storage location: Confirm where the knowledge graph file is written on each laptop and whether disk encryption and backup policies cover it.
  • Identity: No built-in authentication is documented, so the process trusts whoever launches it.
  • Community alternatives: If a developer wants a different memory server, it is a separate project and needs its own repository and documentation review.

Before approval, confirm the pinned package, the storage path and the endpoint management policy for the device.

Gaps the official memory server leaves for the enterprise to cover

The official memory server stores and serves a local knowledge graph, and its README does not document built-in authentication, SSO, admin policy, roles, audit logging or token rotation. Each card below names one gap, the usual way teams close it in general terms, and what the reviewer must verify before approval.

No documented SSO or identity login

The memory server README does not document an identity provider login or SSO. Because the MCP authorization guidance says OAuth flows are designed for remotely hosted HTTP servers, a local stdio process usually inherits the identity of the user who launched it. Teams often place an authenticated gateway in front of any shared deployment. Reviewers should confirm who can start the process, which OS account it runs under, and whether any shared host lets several people reach one graph.

Authorization docs

No documented audit logging

The memory server does not document logs that record which person or agent created, changed or deleted an entity, relation or observation. The MCP authorization tutorial recommends authorization when you need to audit who performed which actions, which implies this must be added elsewhere. Common approaches include logging at the MCP client or host layer or wrapping the server in a proxy that records each tool call. Reviewers should test whether a delete_entities call can be traced to a named user and a timestamp.

No documented client allowlist

The README does not describe an admin policy that approves which MCP clients may connect to the memory server or which tools they may call. Without one, any client a developer configures can reach all seven tools, including the delete functions. Teams usually control this through managed client configuration, a restricted host image or an approved list of server entries in the client. Reviewers should confirm that a standard user cannot add the memory server to a client that writes to a shared graph.

No documented role model

The memory server exposes read and write tools in one flat set, and its docs describe no roles, read-only mode or per-tool permissions. A user who can call read_graph can usually also call delete_entities. Teams sometimes address this with a wrapper that exposes only the read tools to most users, or by running a separate read-only instance. Reviewers should list which of the seven tools each role should hold and verify that the chosen deployment enforces that split.

No documented per-user isolation

The graph is a single local store, and the README does not describe separate graphs per user, tenant or project. Every connected client that reaches the file or resource sees the same entities and observations, so one person's notes can appear in another person's session. Teams commonly run one server instance and one data store per user or per project. Reviewers should confirm the storage path is different for each identity and that the memory://knowledge-graph resource cannot be read across accounts.

No documented token rotation

The official docs do not describe central issuance, expiry or rotation of credentials for the memory server. The MCP tutorial says STDIO servers can use environment-based credentials instead of OAuth, which means any key placed in an environment variable or client config is long-lived unless the team rotates it. Teams usually store credentials in a secrets manager and rotate them on a schedule set by their own policy. Reviewers should ask where any credential is kept, who can read it and how a revoked key stops access to the server.

Order of work before the memory server goes into production

This sequence confirms which memory server you are running, chooses how it connects, and fixes the credential, access, logging and approval decisions before any staff member relies on it. Each step closes with a record the security team can review.

  1. Confirm the server source and version

    Start by checking that the server you plan to run is the official Knowledge Graph Memory Server from the modelcontextprotocol/servers repository, published on npm as @modelcontextprotocol/server-memory, and not a community variant with a similar name. Record the package name, the version you intend to pin, the repository commit or release you reviewed, and the Docker image name if you use the container route. Confirm the Node.js requirement stated in the README against your own runtime. Done means a dated record shows the source, version and the documents you read, so a later reviewer can tell exactly what was approved.

  2. Choose stdio or remote transport

    Decide whether the server runs locally over stdio on each user's machine or is hosted remotely over an HTTP-based transport that many users reach through one endpoint. The MCP authorization documentation ties OAuth flows to HTTP-based transports where the server is remotely hosted, so this choice drives the credential design in the next step. Confirm with the engineering owner whether the official memory server's README documents a remote deployment for your version; if it does not, plan the remote option as something you build and test yourself. Done means a written decision names the transport, the hosts that will run it, and who owns those hosts.

  3. Set the credential model and secret storage

    For a stdio deployment, the MCP authorization documentation says environment-based credentials can be used instead of OAuth, so define which values, if any, the server process needs and where they come from. For a remote deployment, decide how OAuth 2.1 conventions will be applied, which identity provider issues the tokens, and how token lifetimes and refresh are handled. Record where every secret is held, who can read it, how it is rotated, and confirm that no secret is written into a shared configuration file or the knowledge graph itself. Done means a credential register lists each secret, its owner, its storage location and its rotation owner.

  4. Decide identity, access and the front layer

    The memory server README does not document built-in authentication or SSO, so identity has to come from the layer around it. Decide who may connect, how individual users are tied to their sessions, and what sits in front of a remote endpoint, such as a gateway, reverse proxy or network restriction, that you will configure and test. Ask the vendor and your identity team to confirm exactly which controls the chosen component provides, rather than assuming them. Because the server exposes read, write and delete tools over the whole graph, decide which of those tools each user group may use, and document how that restriction is enforced. Done means an access design with a named owner for the front layer and a list of which tools each group may call.

  5. Add action logging outside the server

    The MCP authorization documentation says authorization is recommended when you need to audit who performed which actions, and the memory server README does not document audit logging. Plan the record of who called which tool, against which graph, and when, at the layer that handles identity, such as the gateway or proxy, and confirm that the log captures tool calls that create, change or delete observations. Decide where the logs are stored, who can read them, and how long they are kept under your own retention policy. Done means a test call produces a log entry that a reviewer can trace back to a named user and a specific tool.

  6. Test the setup with the security team

    Before go-live, have the security team test the configuration as a user would experience it. Verify that unauthorized users are refused, that restricted tools cannot be reached by lower-privilege groups, that secrets do not appear in logs or in the stored graph, and that delete operations behave as the access design intends. Include prompt injection attempts that try to make an agent write or delete observations, since the server accepts those calls through its tools. Record each test case, its expected result, the actual result and the retest outcome. Done means a signed test record exists with every failure either fixed and retested or formally accepted.

  7. Record the approval conditions

    Close the sequence with a written approval that states the conditions under which the memory server may be used: the pinned source and version, the chosen transport, the credential and storage decisions, the access rules, the logging location, the test record and the owner who reviews changes. Set out what triggers a new review, such as a version upgrade, a new deployment host or a change to the identity provider. Confirm with the procurement and compliance reviewers which evidence they need to keep for their own assessments. Done means a single approval document references each prior step's record and is accepted by the security, engineering and data owners.

Evidence a security reviewer asks to see for this control

This table lists each control a reviewer should evidence for the official memory server, the expected proof, and the source that establishes it. Use it as a checklist: a row marked with a source the organization owns (its own configuration) needs internal evidence, while rows sourced from the README, npm page or MCP authorization guidance tell you what the vendor documents and what it leaves to you.

ControlEvidence to requestWhere it comes from
Server source and versionExact npm package name, pinned version and the repository commit or image tag in usenpm page for @modelcontextprotocol/server-memory and the repository README, plus your own configuration
Transport and launch methodWhether the server runs over stdio via npx, from source or as the mcp/memory Docker image, and the Node.js 24 or later runtimeRepository README and your deployment configuration
Credential model and storage locationConfirmation that no OAuth flow is configured, any environment-based secrets used, and the host path where the knowledge graph file is keptMCP authorization guidance (stdio uses environment-based credentials) and your host configuration
Identity provider integrationStatement that no SSO is built in, and the wrapper or gateway your team would use to tie access to named usersMemory server README (no documented SSO) and your identity architecture records
Documented authorization positionRecorded decision on whether authorization is required for this server, based on user-specific data and audit needsMCP authorization guidance, which calls authorization optional but recommended for user-specific data and audit
Tools exposed by the serverInventory of the nine tools (create, add, delete, read, search and open operations) and the agent allowlist that limits themMemory server README and your MCP client configuration
Resource exposureRecord of whether the full graph at memory://knowledge-graph is reachable by connected clientsMemory server README and your MCP client configuration
Log destination and retentionWhere client and server logs are sent, who can read them and how long they are kept, since the server documents no audit loggingYour logging platform settings (the README does not document audit logging)
Control ownerNamed owner for version pinning, credential rotation, storage permissions and tool allowlist reviewsYour internal change records and access review process

Questions buyers ask before approving the memory server

Does the official memory MCP server have an enterprise edition or paid tier?

The sources we reviewed describe the official memory server as a basic implementation of persistent memory using a local knowledge graph, published on npm as @modelcontextprotocol/server-memory and in the modelcontextprotocol/servers repository. They do not describe an enterprise edition, a paid tier, or enterprise support for it. Confirm this directly with the maintainers through the repository and the npm package before you assume there is a commercial option. Also check whether any vendor you are considering bundles or resells the server, because that vendor's terms, not the open-source license, would govern support and any added features.

Can single sign-on be added to the memory server, and who builds it?

The memory server README does not document built-in authentication, SSO, or audit logging, so any SSO has to be added around the server. The MCP authorization guidance says OAuth flows are designed for HTTP-based transports where the server is remotely hosted, while STDIO servers can use environment-based credentials instead. In practice, your team or an outside implementation partner would build the identity layer: a remote endpoint behind your identity provider, a gateway that checks tokens, or a locked-down local launch. Decide who owns that code and who patches it before the first user connects.

What drives the effort of securing the memory server for a team?

The main drivers are the transport you choose, the number of people connecting, and your logging requirements. A local STDIO setup that reads credentials from the environment is the simplest path for one developer. A shared server that many people reach over HTTP needs token validation, per-user attribution, and a place to store and rotate credentials. Logging adds work because the server does not document audit logging, so you must capture who connected and which tools ran, usually at the gateway or host level. Each added requirement adds design, testing, and review time.

Can our own team handle the memory server rollout, or do we need outside help?

A team with experience in MCP client configuration, identity integration, and host hardening can usually handle a single-user local setup internally. Outside help is more common when you need remote access for many users, SSO that matches your identity provider, centralized logging, or a documented review for auditors. Ask whether your team can answer three questions in writing: which tools may write or delete, where the graph file is stored, and who can revoke access. If any answer is unclear, a review before rollout is cheaper than a rollback after people have stored sensitive notes in the graph.

What should a scoping quote for the memory server include?

A useful quote lists the deployment model (local STDIO, Docker image mcp/memory, or a remote endpoint), the identity method, the user count, the logging design, and the storage location and backup approach. It should also name which of the seven tools are enabled, how writes and deletes are restricted, and what testing happens before go-live. Ask whether the work includes documentation for your security reviewers and a retest after changes. Scope, deliverables, and timelines are agreed in writing before work starts, so every item above should appear in that document. DeployOpen does not publish a price list, so quotes follow from the written scope.

Can community memory servers be approved on the same basis as the official server?

No. Community memory servers, such as Go, vector database, or codebase implementations, are separate projects and are not part of the official modelcontextprotocol/servers memory server. Each one needs its own review of its repository, license, dependencies, documentation, and data handling. Do not assume that a server with a similar name shares the official server's tools, storage format, or security posture. Approve each server by name and version, and keep a record of what was reviewed.

What changes if our policy requires OAuth for the memory server?

If policy requires OAuth, the server must run on an HTTP-based transport where it can be reached remotely, because the MCP authorization guidance ties OAuth flows to that kind of deployment. The MCP docs follow OAuth 2.1 conventions and recommend authorization when a server handles user-specific data or when you need to audit who did what. Since the official server does not provide OAuth itself, you would place it behind an authorization layer that you build or procure, and test token handling, expiry, and revocation. Expect the design to change from a single local process into a hosted service with its own operations and monitoring.

Does the official memory server need Node.js, and what does that mean for approval?

The memory server README says it requires Node.js 24 or later when run through npx or from source. Your approval should therefore name the Node.js version, the npm package version you tested, and whether the Docker image mcp/memory is used instead. Each path brings its own dependency chain and patch process. Record the version in your configuration baseline so that updates go through the same review as other software in your environment.

How DeployOpen works on this

DeployOpen approaches Memory MCP server enterprise setup as a written, fixed-scope engagement inside your own infrastructure. We scope the review, build the controls the official memory server does not provide, test them, and hand over the documentation your security and compliance reviewers need.

How we scope

  • Confirm which memory server variant you intend to run: the official npm package, the mcp/memory Docker image, or a community server.
  • Map the client tools in use, such as Claude Desktop or VS Code, and whether the server runs over stdio or a remote transport.
  • Agree in writing which authentication, token, logging and storage controls are in scope before any work starts.

How we build

  • Place the server in your own environment with launch settings, credential sources and file locations documented and reviewed.
  • Add the controls the memory server README does not document, such as sign-in, access gating and audit logging, around the server.
  • Test the tools that write or delete entities, relations and observations, and the whole-graph resource, against your access rules.

How we hand over

  • Deliver a findings report covering credential handling, permissions, data exposure and the fixes applied, followed by a retest.
  • Document the configuration, storage location and deletion procedure so your IT and security teams can review and maintain it.
  • Provide evidence of controls in a form your security and compliance reviewers can assess; audits and certifications remain with independent auditors.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover, covering updates to the server and clients.
  • Re-test controls when the memory server, its Node.js requirement or your client configuration changes.
  • Ask any quote to itemize the written scope, the deliverables and which recurring retainer items apply, since DeployOpen does not publish a price list.

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.