Skip to content

MCP server

Memory MCP server

The MCP project's Memory reference server gives AI a local knowledge graph to store people, things and facts and recall them later.

At a glance

Maintained by
Model Context Protocol project (reference server)
Tools exposed
9 listed below
Reviewed
September 24, 2026

Why it matters

What it does and why it matters

By default, an assistant forgets everything when a conversation ends. The Memory server gives it a place to remember: a knowledge graph stored in a local file, made of entities such as people, companies and projects, relations between them and observations about them. The assistant can add, search, read and delete this information.

For a single user or a small team, it is a simple way to let an assistant remember preferences, recurring context and facts it should not have to ask for again.

It is a reference server from the Model Context Protocol project, and it stores data in a local file with no outside service. Decide what the assistant may remember, avoid storing sensitive personal data and review the graph from time to time. For company-wide knowledge, a proper knowledge base with permissions is a better fit.

Because the memory is a plain file, it is easy to back up, inspect and delete, which makes it a good way to learn how assistant memory works before building something larger.

Use cases

Best business use cases

Personal preferences

Remember how you like reports and emails written.

Client context

Keep notes about clients and projects between sessions.

Relationships

Record who works with whom and on what.

Recall

Search what was stored earlier.

Learning memory

Prototype assistant memory before a larger build.

Tools

Available tools

Tool names as published by the maintainer at review time. Versions change, so check the repository for the current list.

Read and write: Read and write: stores and edits a local knowledge graph file; no outside services.

  • create_entities

    Add new entities (people, things, ideas) to the knowledge graph.

  • create_relations

    Link two entities with a named relationship.

  • add_observations

    Add new facts to an existing entity.

  • delete_entities

    Remove entities and their relations.

  • delete_observations

    Remove specific facts from an entity.

  • delete_relations

    Remove relationships between entities.

  • read_graph

    Read the whole knowledge graph.

  • search_nodes

    Search entities by name, type or fact text.

  • open_nodes

    Fetch specific entities by name.

Workflows

Example workflows

Remember a new client

  1. 1

    Tell the assistant about a new client.

  2. 2

    It creates entities for the client and contacts.

  3. 3

    It adds relations to your team.

  4. 4

    It stores key preferences.

  5. 5

    Later chats recall them.

Review stored memory

  1. 1

    Ask to read the whole graph.

  2. 2

    The assistant lists entities and facts.

  3. 3

    You spot outdated items.

  4. 4

    It deletes them on request.

  5. 5

    The memory stays accurate.

Prompts

Example prompts

  • “Remember that Harbor Group prefers invoices at the start of each month.”

  • “What do you know about the Acme project?”

  • “Show everything you have stored and delete anything about the old office.”

Setup

Installation and configuration

Examples for Claude Desktop and Claude Code. Replace the placeholder values with your own keys, and store secrets outside version control.

Claude Desktop: claude_desktop_config.json

{
    "mcpServers": {
        "memory": {
            "command": "npx",
            "args": [
                "-y",
                "@modelcontextprotocol/server-memory"
            ]
        }
    }
}

Claude Code: terminal

claude mcp add memory -- npx -y @modelcontextprotocol/server-memory
  • Local server: npm: @modelcontextprotocol/server-memory (stdio).
  • Needs: None. Optional MEMORY_FILE_PATH env var sets where the JSONL graph file is stored..

Security

Security considerations

  • What gets stored

    Decide what may be remembered and avoid sensitive personal data.

  • Local file

    The graph is a local file. Protect and back it up.

  • Review regularly

    Check the graph for outdated or wrong facts.

  • Reference server

    Treat it as a reference implementation.

Related servers

Servers that pair well with it

Qdrant

Qdrant's official MCP server gives AI a semantic memory: store information in a Qdrant collection and find it again by meaning.

Obsidian

A community MCP server that lets AI list, read, search, edit, append to and delete notes in an Obsidian vault through the Local REST API plugin.

Sequential Thinking

The MCP project's Sequential Thinking reference server gives AI a structured way to break a problem into steps and revise them.

Keep exploring

FAQ

Questions people ask us

Have a question that is not here? Ask us directly.

Start a project

Want this connected to your own systems? We build AI workflows with MCP.

Send a short brief. We reply with questions, a suggested plan and an estimate you can compare with other offers.

Your privacy choices

We use necessary storage to run this site. With your permission we also use Google Analytics to see which pages help people, and load maps from Google. You can change this at any time. Read the cookie policy.