---
title: "Memory Graph MCP Server Setup Guide and Schema"
slug: "memory"
category: "ai-core"
package: "@modelcontextprotocol/server-memory"
transport: "stdio"
canonical: "https://mcp-codex.com/servers/memory"
source: "MCP Codex (https://mcp-codex.com)"
dateModified: "2026-09-28"
---

# Memory Graph MCP Server

> Persistent knowledge-graph memory system for cross-session entity relationships.

## Overview
Maintain persistent memory across AI agent sessions using a knowledge-graph data structure. Store entities, relationships, and observations that persist between conversations. Essential for building AI agents with long-term context.

## Quick Install
```bash
npx -y @modelcontextprotocol/server-memory
```

## Client Configurations

### Claude Desktop (`claude_desktop_config.json`)
```json
{
  "mcpServers": {
    "memory": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-memory"
      ]
    }
  }
}
```

### Cursor (`mcp.json`)
```json
{
  "mcpServers": {
    "memory": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-memory"
      ]
    }
  }
}
```

### OpenAI Codex CLI (`~/.codex/config.toml`)
```toml
[mcp_servers.memory]
command = "npx"
args = ["-y", "@modelcontextprotocol/server-memory"]
```

## Available Tools (6)

- `create_entities`
- `create_relations`
- `add_observations`
- `search_nodes`
- `open_nodes`
- `delete_entities`

## Documentation & Links
- Canonical Web Page: https://mcp-codex.com/servers/memory
- Weekly Protocol Changelog: https://mcp-codex.com#newsletter
- GitHub Repository: https://github.com/modelcontextprotocol/servers/tree/main/src/memory
- Setup Tutorial Guide: https://mcp-codex.com/articles/memory-mcp-server-guide

