Memory Service

The Memory Service MCP server provides a persistent, long-term memory to your AI assistant, like Claude Desktop and Cursor.

It goes beyond simple chat history by using semantic search to understand the meaning of the information you store.

The most impressive part is its autonomous, “dream-inspired” consolidation system. This feature automatically organizes and compresses your memories over time to create a self-evolving knowledge base without you having to lift a finger.

Features

  • 🧠 Autonomous Memory Consolidation: Inspired by human sleep, it automatically organizes, connects, and compresses memories over time.
  • 💾 Dual Storage Backends: Choose between the full-featured ChromaDB or the lightweight and fast SQLite-vec. The installer even recommends one based on your hardware.
  • 🗣️ Claude Code Commands: Interact directly with the memory using simple commands like /memory-store and /memory-recall right in your chat.
  • 🤝 Multi-Client Coordination: Share a single memory database across multiple applications like Claude Desktop and VS Code without data conflicts.
  • 🌐 Zero-Configuration Networking: Uses mDNS for automatic service discovery on your local network, so there’s no need to manually configure endpoints.
  • 🔒 Persistent & Private: All your data is stored locally. You have full control over your information.

Use Cases

  • Long-Term Project Development: You can store architectural decisions, project requirements, and code snippets. Weeks later, you can ask, “What did we decide about the database authentication?” and get a precise answer. This saves a ton of time trying to find old conversations or notes.
  • Personal Knowledge Management: Use it as a personal brain to store ideas, book summaries, and important facts. Because it uses semantic search, you can retrieve information based on concepts, not just keywords. For example, you could ask, “What were those thoughts I had about lean manufacturing?” and it would find the relevant notes.
  • Learning & Research: When researching a new topic, you can save key findings, articles, and insights. The memory service can then help you connect disparate pieces of information, revealing relationships you might have missed.

How To Use It

1. Clone the repository and use the installer script. It detects your hardware (Apple Silicon, Intel, Windows, etc.) and optimizes the setup for you.

git clone https://github.com/doobidoo/mcp-memory-service.git 
cd mcp-memory-service

2. Create and activate a Python virtual environment. This keeps its dependencies isolated from your other projects.

# Create the environment 
python -m venv venv

# Activate it (Mac/Linux)
source venv/bin/activate

# On Windows, use:
venv\Scripts\activate

3. Run the intelligent installer:

bash python install.py

    4. After installation, you need to tell Claude Desktop where to find the memory service.

    {
      "memory": {
        "command": "python",
        "args": ["-m", "mcp_memory_service.server"],
        "cwd": "/path/to/your/mcp-memory-service",
        "env": {
          "MCP_MEMORY_STORAGE_BACKEND": "sqlite_vec",
          "MCP_MEMORY_SQLITE_PATH": "/path/to/your/mcp-memory/sqlite_vec.db"
        }
      }
    }

    Make sure to replace the paths with the actual locations on your machine.

    5. Once it’s running, you interact with it through natural language in Claude or by using the direct commands.

    Store:

    "Remember this: the project's main API endpoint is /api/v2/users."

    Retrieve:

    "What was the main API endpoint I told you about?"

    Commands:

    claude /memory-store "The staging server is deployed at staging.example.com" --tags "devops,urls"
    claude /memory-recall "what did I say about the staging server?"

    FAQs

    Q: What is this “dream consolidation” feature? Do I need to manage it?
    A: It’s an autonomous background process inspired by how the human brain consolidates memories during sleep. It organizes your stored information over days, weeks, and months, finding connections and compressing data to keep it efficient. You don’t need to do anything; it’s enabled by default and manages itself.

    Q: Can I use this with other tools besides Claude Desktop?
    A: Yes. The server supports multi-client access, allowing you to share the same memory database across different MCP-compatible applications like VS Code (with an MCP extension), Cursor, and others. The installer can help you configure this universal access.

    Q: What’s the difference between the ChromaDB and SQLite-vec backends?
    A: ChromaDB is more powerful and suited for very large memory collections, offering advanced vector search capabilities. SQLite-vec is a lightweight, faster alternative that’s great for most personal use cases, especially on older hardware, as it uses significantly fewer resources. The installer intelligently picks the best one for your system, but you can override its choice.

    Q: I’m on Windows and the installation failed with a PyTorch error. What should I do?
    A: This is a common issue on Windows. The project includes a dedicated script to handle this. After activating your virtual environment, run python scripts/install_windows.py. It will detect your system’s capabilities (like CUDA for GPU acceleration) and install the correct PyTorch version.

    Latest MCP Servers

    Notion

    Notion's official MCP Server allows you to interact with Notion workspaces through the Notion API.

    Log Mcp

    An MCP server that provides 7 tools for log analysis, including error fingerprinting, pattern comparison, and ML classification.

    Apple

    An MCP package that provides AI assistants with direct access to Notes, Messages, Mail, Contacts, Reminders, Calendar, and Maps via AppleScript and EventKit.

    View More MCP Servers >>

    Featured MCP Servers

    Notion

    Notion's official MCP Server allows you to interact with Notion workspaces through the Notion API.

    Claude Peers

    An MCP server that enables Claude Code instances to discover each other and exchange messages instantly via a local broker daemon with SQLite persistence.

    Excalidraw

    Excalidraw's official MCP server that streams interactive hand-drawn diagrams to Claude, ChatGPT, and VS Code with smooth camera control and fullscreen editing.

    More Featured MCP Servers >>

    FAQs

    Q: What exactly is the Model Context Protocol (MCP)?

    A: MCP is an open standard, like a common language, that lets AI applications (clients) and external data sources or tools (servers) talk to each other. It helps AI models get the context (data, instructions, tools) they need from outside systems to give more accurate and relevant responses. Think of it as a universal adapter for AI connections.

    Q: How is MCP different from OpenAI's function calling or plugins?

    A: While OpenAI's tools allow models to use specific external functions, MCP is a broader, open standard. It covers not just tool use, but also providing structured data (Resources) and instruction templates (Prompts) as context. Being an open standard means it's not tied to one company's models or platform. OpenAI has even started adopting MCP in its Agents SDK.

    Q: Can I use MCP with frameworks like LangChain?

    A: Yes, MCP is designed to complement frameworks like LangChain or LlamaIndex. Instead of relying solely on custom connectors within these frameworks, you can use MCP as a standardized bridge to connect to various tools and data sources. There's potential for interoperability, like converting MCP tools into LangChain tools.

    Q: Why was MCP created? What problem does it solve?

    A: It was created because large language models often lack real-time information and connecting them to external data/tools required custom, complex integrations for each pair. MCP solves this by providing a standard way to connect, reducing development time, complexity, and cost, and enabling better interoperability between different AI models and tools.

    Q: Is MCP secure? What are the main risks?

    A: Security is a major consideration. While MCP includes principles like user consent and control, risks exist. These include potential server compromises leading to token theft, indirect prompt injection attacks, excessive permissions, context data leakage, session hijacking, and vulnerabilities in server implementations. Implementing robust security measures like OAuth 2.1, TLS, strict permissions, and monitoring is crucial.

    Q: Who is behind MCP?

    A: MCP was initially developed and open-sourced by Anthropic. However, it's an open standard with active contributions from the community, including companies like Microsoft and VMware Tanzu who maintain official SDKs.

    Get the latest & top AI tools sent directly to your email.

    Subscribe now to explore the latest & top AI tools and resources, all in one convenient newsletter. No spam, we promise!