memory-mcp MCP Server

Persistent memory and context window caching for LLM conversations. Save, retrieve, and manage memories with intelligent context archiving. MongoDB-backed storage.

Local serverstdioMIT

What is the memory-mcp Server?

memory-mcp is an MCP project maintained in the jamesanz/memory-mcp repository. The maintainer describes its purpose as “Persistent memory and context window caching for LLM conversations. Save, retrieve, and manage memories with intelligent context archiving. MongoDB-backed storage”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using node. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Configuration values

The example declares MONGODB_URI. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

How to install the memory-mcp Server

{
  "mcpServers": {
    "memory-mcp": {
      "command": "node",
      "args": [
        "/absolute/path/to/memory-mcp/build/index.js"
      ],
      "env": {
        "MONGODB_URI": "mongodb://localhost:27017"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
MONGODB_URIDeclared in the maintainer’s client configuration.Check documentation