Memory
Persist a knowledge graph across sessions for long-running agent projects.
Add Memory to your agent
Pick your host and paste the config snippet. Replace placeholder tokens and paths before connecting to production data.
1Config location
Global: ~/.cursor/mcp.json or project: .cursor/mcp.json
2Copy this snippet
{
"mcpServers": {
"memory": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-memory"]
}
}
}
Add this block under mcpServers, then restart Cursor.