basic-memory logo

Basic Memory

by basicmachines-co

10 forks
75 stars
Free

What is basic-memory

basic-memory is an innovative server developed by Basicmachines-co that aims to bridge the gap between natural conversations and structured knowledge storage. It allows users to engage with Large Language Models (LLMs) such as Claude, while seamlessly saving and retrieving information in simple Markdown files on their local machines. Utilizing the Model Context Protocol (MCP), the server facilitates bi-directional communication between LLMs and local knowledge bases, enabling the creation of a persistent memory that evolves through ongoing interactions.

How to Use basic-memory

To start using basic-memory, follow these steps:

  1. Installation: Install the server using the uv tool by executing the command:

    uv tool install basic-memory
    
  2. Configuration: Adjust the configuration for Claude Desktop by editing the file located at ~/Library/Application Support/Claude/claude_desktop_config.json. Add the following configuration:

    {
      "mcpServers": {
        "basic-memory": {
          "command": "uvx",
          "args": [
            "basic-memory",
            "mcp"
          ]
        }
      }
    }
    
  3. Usage with Claude Desktop: Once configured, you can interact with Claude to create, read, and search notes. For example:

    • Create a note: "Create a note about coffee brewing methods"
    • Retrieve information: "What do I know about pour over coffee?"
    • Search for specific topics: "Find information about Ethiopian beans"
  4. File Access: Your notes and data are stored as Markdown files in the default directory ~/basic-memory, allowing you to access and edit them with any Markdown-compatible editor.

Key Features of basic-memory

  • Persistent Knowledge: Save and retrieve information through conversational interactions with LLMs, storing data locally in Markdown format.
  • Local Storage: All data is stored on your local device, ensuring privacy and control over your knowledge base.
  • Bi-Directional Communication: Both you and the LLM can read from and write to the same Markdown files, promoting a continuous and evolving knowledge graph.
  • Familiar Tools: Leverage existing Markdown editors like Obsidian to view and manage your notes without needing new software.
  • Lightweight and Accessible: Requires minimal setup with local files indexed in a SQLite database, making it efficient and easy to use.
  • Semantic Understanding: Structured Markdown files allow LLMs to understand and navigate through your knowledge, providing rich context during interactions.
  • MCP Integration: Uses the Model Context Protocol to facilitate secure and standardized communication between AI systems and local data sources.

By using basic-memory, users can enjoy a seamless integration of AI-driven conversations with a robust and expandable personal knowledge system, all managed locally and securely.

How to Use

To use the basic-memory, follow these steps:

  1. Visit https://github.com/basicm...
  2. Follow the setup instructions to create an account (if required)
  3. Connect the MCP server to your Claude Desktop application
  4. Start using basic-memory capabilities within your Claude conversations

Additional Information

Created

December 2, 2024

Start building your own MCP Server

Interested in creating your own MCP Server? Check out the official documentation and resources.

Learn More