Memory MCP

by HamzaFarhan

Integrations

  • Provides persistent memory capabilities allowing AI agents to maintain and reference information across multiple conversations through a knowledge graph structure.

Memory MCP

A knowledge-graph-based memory system for AI agents that enables persistent information storage between conversations.

Features

  • Persistent memory storage using a knowledge graph structure
  • Entity-relation model for organizing information
  • Tools for adding, searching, and retrieving memories

Tools

The system provides the following MCP tools:

  • load_knowledge_graph(): Retrieves the entire knowledge graph
  • add_entities(entities): Adds new entities to the memory
  • add_relations(relations): Creates relationships between entities
  • add_observations(entity_name, observations): Adds observations to existing entities
  • delete_entities(entity_names): Removes entities from memory
  • delete_relations(relations): Removes relationships
  • search_nodes(query): Searches for entities and relations matching a query
  • open_nodes(names): Retrieves specific entities and their relationships

Usage

Run the agent with:

uv run memory_agent.py

The agent will automatically:

  1. Load its memory at the start of conversations
  2. Reference relevant information during interactions
  3. Update its memory with new information when the conversation ends

Exit a conversation by typing q.

Configuration

Set the memory storage location with the MEMORY_FILE_PATH environment variable (defaults to memory.json).

-
security - not tested
F
license - not found
-
quality - not tested

A knowledge-graph-based memory system for AI agents that enables persistent information storage between conversations.

  1. Features
    1. Tools
      1. Usage
        1. Configuration

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            An improved implementation of persistent memory using a local knowledge graph with a customizable --memory-path. This lets Claude remember information about the user across chats.
            Last updated -
            9
            85
            189
            JavaScript
            MIT License
            • Apple
          • -
            security
            A
            license
            -
            quality
            A basic implementation of persistent memory using a local knowledge graph. This lets Claude remember information about the user across chats.
            Last updated -
            9
            14,698
            45,638
            JavaScript
            MIT License
            • Apple
            • Linux
          • -
            security
            A
            license
            -
            quality
            A persistent memory implementation using a local knowledge graph that lets Claude remember information about users across conversations.
            Last updated -
            4
            Python
            MIT License
          • -
            security
            A
            license
            -
            quality
            Enhanced knowledge graph memory server for AI assistants that uses Neo4j as the backend storage engine, enabling powerful graph queries and efficient storage of user interaction information with full MCP protocol compatibility.
            Last updated -
            TypeScript
            MIT License

          View all related MCP servers

          ID: 8loagwfqhu