AgentWong_optimized-memory-mcp-server

AgentWong_optimized-memory-mcp-server

3.3

The optimized-memory-mcp-server is a Python-based fork of a Memory MCP Server, utilizing SQLite for backend storage, designed to demonstrate AI workflows and prompt design.

The optimized-memory-mcp-server is a knowledge graph memory server that provides a basic implementation of persistent memory using a local knowledge graph. It allows for the storage and retrieval of information about users across different interactions. The server uses entities, relations, and observations to structure data, enabling the creation of a dynamic and interconnected knowledge graph. Entities are the primary nodes, each with a unique identifier, type, and list of observations. Relations define directed connections between entities, while observations are discrete pieces of information attached to entities. The server offers a comprehensive API with tools for creating, deleting, and managing entities, relations, and observations, as well as searching and reading the entire graph. This server is particularly useful for applications requiring memory persistence, such as chat personalization, where it can remember user information and preferences across sessions.

Features

  • Persistent memory using a local knowledge graph
  • Entity, relation, and observation management
  • Comprehensive API for graph operations
  • Search and retrieval of graph data
  • Integration with Claude Desktop for chat personalization

MCP Tools

  • {'create_entities': 'Create multiple new entities in the knowledge graph.'}
  • {'create_relations': 'Create multiple new relations between entities.'}
  • {'add_observations': 'Add new observations to existing entities.'}
  • {'delete_entities': 'Remove entities and their relations.'}
  • {'delete_observations': 'Remove specific observations from entities.'}
  • {'delete_relations': 'Remove specific relations from the graph.'}
  • {'read_graph': 'Read the entire knowledge graph.'}
  • {'search_nodes': 'Search for nodes based on query.'}
  • {'open_nodes': 'Retrieve specific nodes by name.'}

Usage with Different Platforms

Docker


{
  "mcpServers": {
    "memory": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "mcp/memory"]
    }
  }
}

NPX


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