Optimized Memory MCP Server

Provides a persistent memory solution using a local knowledge graph, allowing applications to remember information across interactions.

Local serverstdioPython 6

What is the Optimized Memory MCP server?

Provides a persistent memory solution using a local knowledge graph, allowing applications to remember information across interactions. The optimized memory mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 14 defined tools rather than through you.

What it actually does

This is to test and demonstrate Claude AI's coding abilities, as well as good AI workflows and prompt design. This is a fork of a Python Memory MCP Server (I believe the official one is in Java) which uses SQLite for a backend.

Its toolset

Everything the assistant can do here goes through one of these:

  • create_entities — Create multiple new entities in the knowledge graph
  • Input — entities (array of objects)
  • 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
  • Returns — - Requested entities
  • Entities — Entities are the primary nodes in the knowledge graph. Each entity has: - A unique name (identifier) - An entity type (e.g., "person"

Adding it to your client

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

When to reach for it

Among the knowledge and memory options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Optimized Memory's toolset — create_entities, Input, create_relations and 11 more — is a fair guide to whether it matches your workflow. It is maintained by AgentWong; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Optimized Memory's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Optimized Memory.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the optimized memory mcp server does with a few real requests.

Available tools

ToolWhat it does
create_entitiesCreate multiple new entities in the knowledge graph
Inputentities (array of objects)
create_relationsCreate multiple new relations between entities
add_observationsAdd new observations to existing entities
delete_entitiesRemove entities and their relations
delete_observationsRemove specific observations from entities
delete_relationsRemove specific relations from the graph
read_graphRead the entire knowledge graph
search_nodesSearch for nodes based on query
open_nodesRetrieve specific nodes by name
Returns- Requested entities
EntitiesEntities are the primary nodes in the knowledge graph. Each entity has: - A unique name (identifier) - An entity type (e.g., "person", "organization", "event") - A list of observations
RelationsRelations define directed connections between entities. They are always stored in active voice and describe how entities interact or relate to each other.
ObservationsObservations are discrete pieces of information about an entity. They are:

How to install the Optimized Memory MCP server

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

Configuration as documented by the project. Restart the client after saving.

Example prompts to try

  • Use Optimized Memory to create entities.
  • Use Optimized Memory to Input.
  • Use Optimized Memory to create relations.

Frequently asked questions

Optimized Memory is an API providing persistent memory using a local knowledge graph. It enables applications, especially AI models like Claude, to remember information across interactions, creating a more personalized experience.