Memory MCP Server

AIstdiov2026.1.26
Repository

Provides persistent memory capabilities through a knowledge graph stored in a local JSON file. Enables AI agents to create, read, update, and delete entities and their relationships. Useful for maintaining context across conversations, storing user preferences, and building structured knowledge bases that persist between sessions.

Connect

Add this configuration to .claude/mcp.json

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

Tools (5)

create_entities

Create multiple new entities in the knowledge graph with their types and observations.

{
  "type": "object",
  "required": [
    "entities"
  ],
  "properties": {
    "entities": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "entityType": {
            "type": "string"
          },
          "observations": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "description": "Array of entities to create"
    }
  }
}

create_relations

Create relationships between existing entities in the knowledge graph.

{
  "type": "object",
  "required": [
    "relations"
  ],
  "properties": {
    "relations": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "to": {
            "type": "string"
          },
          "from": {
            "type": "string"
          },
          "relationType": {
            "type": "string"
          }
        }
      },
      "description": "Array of relations to create"
    }
  }
}

search_nodes

Search for entities in the knowledge graph by name or observation content.

{
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "query": {
      "type": "string",
      "description": "Search query to match against entity names and observations"
    }
  }
}

open_nodes

Retrieve specific entities by their exact names from the knowledge graph.

{
  "type": "object",
  "required": [
    "names"
  ],
  "properties": {
    "names": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Array of entity names to retrieve"
    }
  }
}

delete_entities

Remove entities and their associated relations from the knowledge graph.

{
  "type": "object",
  "required": [
    "entityNames"
  ],
  "properties": {
    "entityNames": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Names of entities to delete"
    }
  }
}

Resources

This server does not expose any resources.

Prompts

This server does not expose any prompts.

Server Information

Author
Anthropic (@modelcontextprotocol)
Repository
https://github.com/modelcontextprotocol/servers
License
Apache-2.0
Version
2026.1.26
Stars
86,200
Last Updated
January 27, 2026