---
title: "Memory: setup for Claude, Cursor, Codex · DotsAgent"
description: "Keeps a knowledge graph of entities and relations in a local file so the agent can recall facts between sessions. Set up Memory in 13 MCP clients."
url: https://dotsagent.io/mcp/servers/memory
---

Models and memory · MCP Steering Group

# Set up Memory

Keeps a knowledge graph of entities and relations in a local file so the agent can recall facts between sessions.

- **Publisher**: MCP Steering Group Official
- **Run locally**: `npx -y @modelcontextprotocol/server-memory`
- **Transports**: stdio
- **Authentication**: None.
- **Environment**: `MEMORY_FILE_PATH`
- **What it can touch**: Reads and writes one local file, set with MEMORY_FILE_PATH.
- **Licence**: MIT (existing) / Apache-2.0 (new contributions)
- **Source**: [github.com/modelcontextprotocol/servers/tree/main/src/memory](https://github.com/modelcontextprotocol/servers/tree/main/src/memory)
- **Status**: Active

## Install

This server runs on your machine as a child process of the client. You need the runtime its command uses, such as Node.js for npx, uv for uvx or Docker, plus any variables listed under Environment.

### Claude Code

`shell`

```
claude mcp add --scope project memory -- npx -y @modelcontextprotocol/server-memory
```

### Cursor

`.cursor/mcp.json`

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

### Codex

`~/.codex/config.toml`

```
[mcp_servers.memory]
command = "npx"
args = ["-y", "@modelcontextprotocol/server-memory"]
```

[Config for other clients →](https://dotsagent.io/mcp/config#add=memory)

## Other servers in models and memory

- [Sequential Thinking](https://dotsagent.io/mcp/servers/sequential-thinking): Gives the model a scratchpad for breaking a problem into numbered thoughts it can revise or branch.

- [Pinecone](https://dotsagent.io/mcp/servers/pinecone): Search Pinecone docs, and create, upsert into and query Pinecone vector indexes from a local server.

- [Hugging Face](https://dotsagent.io/mcp/servers/hugging-face): Search Hub models, datasets, papers and docs, and call Gradio Spaces as tools, hosted by Hugging Face.

## Sources

1. [github.com](https://github.com/modelcontextprotocol/servers)/modelcontextprotocol/servers

Independent reference for people who build AI agents. Not affiliated with any vendor named here.

© 2026 DotsAgent · Facts checked October 1, 2026
