Memory
MCP server by modelcontextprotocol Community
Memory is a reference MCP server that gives an assistant persistent memory, stored as a knowledge graph of entities and relations. It is aimed at developers learning MCP and trying memory in an MCP client.
Install Memory
Built from the published package, never by AI.
claude mcp add memory -- npx -y @modelcontextprotocol/server-memoryRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"memory": {
"args": [
"-y",
"@modelcontextprotocol/server-memory"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"memory": {
"args": [
"-y",
"@modelcontextprotocol/server-memory"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"memory": {
"args": [
"-y",
"@modelcontextprotocol/server-memory"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add memory -- npx -y @modelcontextprotocol/server-memory{
"mcpServers": {
"memory": {
"args": [
"-y",
"@modelcontextprotocol/server-memory"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add memory npx -y @modelcontextprotocol/server-memoryGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the memory block.
About
Memory is a reference MCP server from the modelcontextprotocol project. The repository describes it as a knowledge graph-based persistent memory system, and it is one of the small set of reference servers maintained by the MCP steering group. It is meant to demonstrate MCP features and SDK usage.
The server runs over stdio by default. It is started with npx -y @modelcontextprotocol/server-memory, and an MCP client launches it from its configuration. The repository also states that every server can serve Streamable HTTP. The README describes these servers as educational examples rather than production-ready solutions, so users should assess their own security needs before relying on it. It suits developers learning MCP and anyone who wants a simple memory server to try in an MCP client.
Written from the project's README and checked against it.
What you need
- npx
Try asking
- Remember that my project deadline is every Friday at noon.
- What do you remember about the people I work with?
- Save the relation between our billing service and the payments API.
Good to know
- A reference implementation, not a production-ready solution.
- Developers should evaluate their own security requirements before use.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
What you can do with it
- Give an assistant memory across sessions
- Store entities and relations in a knowledge graph
- Learn how MCP memory servers are built
Alternatives to Memory
All alternatives →Connects a Zotero research library to AI assistants such as Claude and ChatGPT through the Model Context Protocol. It lets the assistant search, read, annotate and add papers, in local mode or through the web API. Built for researchers who want their references available in chat.
AgentDB is a vector memory database for AI agents. It stores embeddings, indexes and learning state in one file and exposes 41 MCP tools to clients such as Claude Code, Cursor and Cline.
Genkitx MCP is listed as a Genkit plugin for Model Context Protocol interoperability. The source is the main Genkit framework README and does not describe this plugin, so its features cannot be confirmed.
QMD is an on-device search engine for markdown notes, meeting transcripts and documentation. It combines BM25 keyword search, vector search and LLM reranking, and exposes an MCP server for AI assistants.
RuVector is a Rust native vector database that gives AI agents persistent memory and local semantic retrieval. Its npm package includes an MCP server for MCP compatible clients, and it suits developers building agent memory in Node.js, Python, or Rust.
Gives AI coding agents persistent memory, so each new session starts where the last one left off. Works with Claude Code, Codex, Cursor, OpenCode and 11 more agents.
Compare with Zotero MCP, Agentdb or Genkitx MCP
Memory: common questions
What kind of memory does the Memory MCP server provide?
The source describes it as a persistent memory system stored as a knowledge graph of entities and relations. It is meant to give an assistant memory across sessions.
Is the Memory MCP server ready for production use?
No. The repository says its servers are reference implementations meant as educational examples, not production-ready solutions. Developers should add safeguards based on their own threat model.
Which transports does the Memory server support?
It runs over stdio by default, where the client launches it as a subprocess. The repository also states that every server in it can serve Streamable HTTP.
How do I install Memory?
In Claude Code run claude mcp add memory -- npx -y @modelcontextprotocol/server-memory. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Memory the official server?
Memory is a community project by modelcontextprotocol, not verified by a company domain.
Is Memory free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is Memory safe to use?
It scores 88 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Memory?
Similar MCP servers: Zotero MCP, Agentdb, Genkitx MCP, Qmd.
Does Memory work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
