Track MCP LogoTrack MCP
Track MCP LogoTrack MCP

The world's largest repository of Model Context Protocol servers. Discover, explore, and submit MCP tools.

Product

  • Categories
  • Top MCP
  • New & Updated
  • Submit MCP

Company

  • About

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie Policy

© 2026 TrackMCP. All rights reserved.

Built with ❤️ by Krishna Goyal

    Mcp Brain Tools

    A powerful MCP memory using a knowledge graph powered by elastic search

    16 stars
    TypeScript
    Updated Sep 28, 2025

    Table of Contents

    • 🌟 Why AI Models Need Persistent Memory
    • ✨ Key Features
    • 🚀 5-Minute Setup
    • Prerequisites
    • 🔌 Connecting to Claude Desktop
    • 💡 How It Works
    • 🛠️ Example: How Agents Use Memory
    • From the User's Perspective
    • How the Agent Uses Memory
    • Intelligent Entity Management
    • 🧰 Admin Tools
    • 📚 Advanced Features
    • Memory Zones
    • Conversational Memory Management
    • Search Capabilities
    • 🤝 Contributing
    • 📝 License

    Table of Contents

    • 🌟 Why AI Models Need Persistent Memory
    • ✨ Key Features
    • 🚀 5-Minute Setup
    • Prerequisites
    • 🔌 Connecting to Claude Desktop
    • 💡 How It Works
    • 🛠️ Example: How Agents Use Memory
    • From the User's Perspective
    • How the Agent Uses Memory
    • Intelligent Entity Management
    • 🧰 Admin Tools
    • 📚 Advanced Features
    • Memory Zones
    • Conversational Memory Management
    • Search Capabilities
    • 🤝 Contributing
    • 📝 License

    Documentation

    MCP Memory: Persistent Memory for AI Conversations 🧠

    Version

    License

    Elasticsearch

    Node

    Give your AI a memory that persists across conversations. Never lose important context again.

    MCP Memory is a robust, Elasticsearch-backed knowledge graph system that gives AI models persistent memory beyond the limits of their context windows. Built for the Model Context Protocol (MCP), it ensures your LLMs remember important information forever, creating more coherent, personalized, and effective AI conversations.

    🌟 Why AI Models Need Persistent Memory

    Ever experienced these frustrations with AI assistants?

    • Your AI forgetting crucial details from earlier conversations
    • Having to repeat the same context every time you start a new chat
    • Losing valuable insights once the conversation history fills up
    • Inability to reference past work or decisions

    MCP Memory solves these problems by creating a structured, searchable memory store that preserves context indefinitely. Your AI can now build meaningful, long-term relationships with users and maintain coherence across days, weeks, or months of interactions.

    ✨ Key Features

    • 📊 Persistent Memory: Store and retrieve information across multiple sessions
    • 🔍 Smart Search: Find exactly what you need with powerful Elasticsearch queries
    • 📓 Contextual Recall: AI automatically prioritizes relevant information based on the conversation
    • 🧩 Relational Understanding: Connect concepts with relationships that mimic human associative memory
    • 🔄 Long-term / Short-term Memory: Distinguish between temporary details and important knowledge
    • 🗂️ Memory Zones: Organize information into separate domains (projects, clients, topics)
    • 🔒 Reliable & Scalable: Built on Elasticsearch for enterprise-grade performance

    🚀 5-Minute Setup

    Getting started is incredibly simple:

    Prerequisites

    • Docker: Required for running Elasticsearch (or a local Elasticsearch installation)
    • Node.js: Version 18 or higher
    • npm: For package management
    bash
    # 1. Clone the repository
    git clone https://github.com/mcp-servers/mcp-servers.git
    cd mcp-servers/memory
    
    # 2. Install dependencies
    npm install
    
    # 3. Start Elasticsearch (uses Docker)
    npm run es:start
    # Note: If you prefer to use your own Elasticsearch installation,
    # set the ES_NODE environment variable to point to your Elasticsearch instance
    
    # 4. Build the project
    npm run build

    🔌 Connecting to Claude Desktop

    MCP Memory is designed to work seamlessly with Claude Desktop, giving Claude persistent memory across all your conversations:

    1. Copy and configure the launch script:

    The repository includes a launch.example file that you can simply copy:

    bash
    # Copy the example launch file
       cp launch.example launch.sh
       
       # Edit launch.sh to add your Groq API key
       # This is required for smart memory retrieval
       nano launch.sh  # or use your preferred editor

    Make the script executable:

    bash
    chmod +x launch.sh

    2. Add the command to Claude Desktop:

    • Open Claude Desktop Settings
    • Navigate to the "Commands" section
    • Click "Add New Command"
    • Configure as follows:
    • Name: MCP Memory
    • Command: /path/to/mcp-servers/memory/launch.sh
    • Arguments: Leave empty
    • Run in background: Yes
    • Show in menu: Yes

    3. Verify connection:

    • Start the command from Claude Desktop
    • You should see a notification that Claude is connected to MCP Memory
    • Try asking Claude about something you discussed in a previous conversation!

    For complete examples and visual guides, see the Claude Desktop MCP Server Setup Guide online.

    💡 How It Works

    MCP Memory creates a structured knowledge graph where:

    1. Entities represent people, concepts, projects, or anything worth remembering

    2. Relations connect entities, creating a network of associations

    3. Observations capture specific details about entities

    4. Relevance scoring determines what information to prioritize

    When integrated with an LLM, the system automatically:

    • Stores new information learned during conversations
    • Retrieves relevant context when needed
    • Builds connections between related concepts
    • Forgets unimportant details while preserving critical knowledge

    🛠️ Example: How Agents Use Memory

    From the User's Perspective

    Conversation 1: Initial Information

    code
    User: My daughter's name is Emma and she's turning 8 next month.
    
    Claude: That's wonderful! Emma will be turning 8 next month. Is there anything special you're planning for her birthday?
    (Behind the scenes: Claude stores "Emma" as an entity of type "Person" with observations about her age and birthday timing)

    Conversation 2: Days or Weeks Later

    code
    User: I'm thinking about what to get for a gift.
    
    Claude: If you're looking for gift ideas for Emma's 8th birthday coming up, have you considered what her current interests are? At that age, many children enjoy creative items, books, or educational games.
    (Behind the scenes: Claude retrieved the entity "Emma", her age, and the fact that her birthday is approaching)

    Conversation 3: After the Birthday

    code
    User: The party went really well on Saturday!
    
    Claude: I'm glad Emma's 8th birthday party was a success on Saturday! Did she enjoy the gifts she received?
    (Behind the scenes: Claude updates the observations about Emma, noting that her birthday party occurred on a Saturday and went well)

    How the Agent Uses Memory

    When the user mentions something important, the agent:

    1. Recognizes important information worth remembering

    2. Stores it in memory by creating entities, relations, and observations

    3. Updates existing information when new details emerge

    When the user mentions something related to stored information, the agent:

    1. Searches memory for relevant context based on the current conversation

    2. Retrieves important details that might be helpful

    3. Incorporates this information naturally into its responses

    This happens automatically - the user simply has a normal conversation with the assistant, and the memory system works behind the scenes to maintain context across sessions.

    Intelligent Entity Management

    MCP Memory includes smart handling of entity creation and updates:

    • When attempting to create an entity that already exists, the system returns the existing entity data with guidance on how to extend it with new information
    • The system intelligently differentiates between creating new entities and updating existing ones
    • Entity relationships are automatically maintained even when information is updated

    🧰 Admin Tools

    MCP Memory includes a comprehensive admin CLI for maintaining your knowledge graph:

    bash
    # Search the memory
    node dist/admin-cli.js search "Emma birthday"
    
    # View details about a specific entity
    node dist/admin-cli.js entity "Emma"
    
    # Back up your entire memory system
    node dist/admin-cli.js backup memory-backup.json

    📚 Advanced Features

    Memory Zones

    Organize knowledge into separate domains:

    bash
    # Create a project-specific memory zone
    node dist/admin-cli.js zones add client-acme "ACME Corp Project Knowledge"
    
    # Import data into that zone
    node dist/admin-cli.js import acme-data.json client-acme

    Conversational Memory Management

    You can also instruct the assistant to organize memories in different zones through natural conversation:

    Creating and Using Memory Zones

    code
    User: Claude, can you create a new memory zone called "work-project" for storing information about my current work project?
    
    Claude: I've created a new memory zone called "work-project". I'll store information related to your work project in this zone. What would you like me to remember about your project?
    
    User: The project deadline is March 15th, and we're building a new inventory management system.
    
    Claude: I've stored information about your work project in the "work-project" zone, including the March 15th deadline and that you're building an inventory management system. I'll keep future information about this project organized in this zone.
    (Behind the scenes: Claude creates a new memory zone and stores project information specifically in that zone)

    Retrieving Zone-Specific Information

    code
    User: What do you remember about my work project?
    
    Claude: Based on what we've discussed about your work project, I recall that you're building an inventory management system with a deadline of March 15th.
    (Behind the scenes: Claude specifically searches the "work-project" zone for relevant information)

    Switching Between Memory Zones

    code
    User: Claude, let's switch to my "cooking" memory zone now. I want to discuss a recipe.
    
    Claude: I've switched to your "cooking" memory zone. What recipe would you like to discuss today?
    (Behind the scenes: Claude updates its memory context to prioritize searching in the "cooking" zone)
    
    User: What was that pasta dish I told you about last month?
    
    Claude: From our previous conversations in your cooking zone, you shared a carbonara recipe that used pancetta, eggs, pecorino cheese, and black pepper. You mentioned it was a family favorite that you learned during your trip to Rome.
    (Behind the scenes: Claude searches specifically in the "cooking" zone to find this information)

    By organizing memory into separate zones, conversations become more relevant and focused on the current topic or project.

    Search Capabilities

    Leverage Elasticsearch's powerful search features:

    bash
    # Fuzzy search (finds "meeting" even with typo)
    node dist/admin-cli.js search "meteing notes"
    
    # Zone-specific search
    node dist/admin-cli.js search "budget" client-acme

    🤝 Contributing

    Contributions are welcome! See CONTRIBUTING.md for details.

    📝 License

    MIT

    ---

    Ready to give your AI a memory that lasts? Get started in 5 minutes!

    •

    •

    Similar MCP

    Based on tags & features

    • ME

      Metmuseum Mcp

      TypeScript·
      14
    • MC

      Mcp Ipfs

      TypeScript·
      11
    • LI

      Liveblocks Mcp Server

      TypeScript·
      11
    • MC

      Mcp Wave

      TypeScript00

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k
    View All MCP Servers

    Similar MCP

    Based on tags & features

    • ME

      Metmuseum Mcp

      TypeScript·
      14
    • MC

      Mcp Ipfs

      TypeScript·
      11
    • LI

      Liveblocks Mcp Server

      TypeScript·
      11
    • MC

      Mcp Wave

      TypeScript00

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k