What is an MCP memory server?
An MCP memory server is a program your agent calls to save and search what it learns, kept outside the chat. When it helps, and when CLAUDE.md is enough.
On this page
An MCP memory server is a program that gives an AI agent tools to save what it learns and search it later, over the Model Context Protocol (MCP). The agent calls a tool such as “save this” or “search for that”, and the server keeps the result outside the conversation: in a file, a database or a folder of notes. The next session, or a different agent, can then find it again. An instruction file like CLAUDE.md or AGENTS.md is a different thing: rules you write, loaded at the start of every session. Many people need only the file.
This post is about the idea, not a ranking of products. Claims about MCP and Claude Code are from their own documentation as of November 2026, linked below.
Instruction file (CLAUDE.md, AGENTS.md) |
MCP memory server | |
|---|---|---|
| Who writes it | You | The agent, through tools, and often you |
| Holds | Rules and instructions | What was learned: notes, decisions, facts |
| Reaches the agent | Loaded at the start of every session | Only what the agent searches for or is handed |
| Grows | Every line costs context in every session | Can grow without the start of a session growing |
| Shared between agents | With any agent that reads that file | With any agent connected to the server |
| Install | None | A program to run and configure |
How an MCP memory server works
MCP has three parts. The MCP architecture overview defines them: a host is the AI application, such as Claude Code; it creates one client per server; and a server is “a program that provides context to MCP clients”.
A server offers tools, resources and prompts. A memory server is mostly tools. The host lists the server’s tools, hands them to the model, and runs the ones the model chooses to call. A save tool writes to storage. A search tool reads from it and returns what matched.
The server runs in one of two ways. A local server talks over standard input and output, on your machine. A remote server talks over HTTP and can serve many clients. For memory, that choice decides where your notes live: on your disk, or on someone else’s.
What a memory server stores
MCP says nothing about storage. It only defines how the agent and the server talk. So memory servers differ most in what they keep and how they find it.
The MCP project’s own reference memory server calls itself “a basic implementation of persistent memory using a local knowledge graph”. It keeps entities, relations between them, and observations about each, in a JSONL file. Its tools include create_entities, add_observations, search_nodes and read_graph.
Others keep notes in SQLite, in a vector database, or as Markdown files. Memorinth keeps them as Markdown in a folder you choose, called a cortex, split into memory/, decisions/ and facts/. Its search_memory tool ranks by meaning as well as keywords, on a local model, and returns the matching passage. A decision is never edited, only superseded by a newer one, and a fact carries a source and comes up for a recheck after 180 days.
Whatever the storage, ask three questions of any memory server:
- Where does the data live? A file on your machine, or a service you don’t run.
- Can you read it without the server? A JSONL graph, a database and plain Markdown are not equally easy to open, fix or delete.
- What happens when something stops being true? A memory that is never updated or retired keeps being found, and trusted.
The catch: the agent has to call it
An instruction file reaches the agent every time. A memory server reaches it only when the model decides to call a tool, or when something hands it the memory first.
That is the main weakness of memory over MCP, and it’s worth knowing before you install one. An agent that never searches never benefits. An agent that never saves leaves the memory empty.
Two things close the gap:
- A line in the instruction file. Tell the agent when to search and when to save. Memorinth’s docs suggest putting “call the memorinth
wake_uptool” at the start of the session intoAGENTS.mdfor any tool connected by hand. - A hook that runs without asking. Where the agent supports hooks, a session-start hook can put a briefing into the context before you type. Memorinth’s does this for the agents its setup command connects: current facts, accepted decisions and recent memories. A stop hook in Claude Code asks the agent to save when it changed files and saved nothing.
So the two work together. The file says how to work and when to use memory. The server holds what was learned.
Do I need one if I have CLAUDE.md?
Often, no. An instruction file is enough when what the agent needs is short and stable: build commands, code style, a handful of rules. Claude Code’s memory docs suggest keeping each CLAUDE.md under 200 lines, since longer files “consume more context and reduce adherence”. If everything fits in that, a server adds a program to run and gives little back.
A memory server earns its place when one of these is true:
- What the agent learns outgrows a file. Causes of old bugs, why a choice was made, what was tried and failed. That doesn’t fit in 200 lines, and most of it isn’t needed in every session. Searching for it when needed costs less than loading all of it every time.
- You use more than one agent. A server connected to Claude Code, Codex and Cursor gives all three the same memory. An
AGENTS.mdshares rules between them, but not what a session learned yesterday. - You work across many projects. A file in one repository isn’t there in the next. A server can serve the same memory everywhere.
- Choices need a history. A file says what’s true now. It doesn’t say what was decided before, or why it changed.
If you use Claude Code, it also has auto memory, notes Claude keeps for itself. Claude Code memory: built in, or a server? compares the built-in options with a server for that one tool.
Instructions and memory are different jobs
Keep the instruction file either way. Rules belong where they load every time. Knowledge belongs where it can be searched. A memory server that repeats your CLAUDE.md only costs context, and a CLAUDE.md stuffed with history stops being followed. What goes where draws that line for Memorinth.
To see what a memory server looks like from the agent’s side, read MCP tools, the full list of tools Memorinth’s server gives agents, and How agents use it for a session from start to end. To connect a tool that speaks MCP, see Any MCP client.