Sponsored by Deepsite.site

Basic Memory MCP Server Extension for Zed Editor

Created By
ossfellow8 months ago
Basic Memory MCP server integration, for Zed Editor's Assistant.
Content

Basic Memory MCP Server Extension for Zed Editor

This extension integrates Basic Memory as a context server for Zed Editor's Assistant.

Basic Memory lets you build persistent knowledge through natural conversations with Large Language Models, while keeping everything in simple Markdown files on your computer.

Prerequisites

  • Python 3.12+
  • uv installed

⚠️ Important Note: This extension currently requires Zed to support MCP tools, which is still in development. While you can install the extension now, its functionality will become available once Zed adds MCP tools support in a future update. Follow Zed's releases for updates.

Installation

1. Install uv and Basic Memory

pip install uv
uv tool install basic-memory

2. Install the extension

Navigate to: Zed > Extensions. Or use the command palette to search for "extensions".

3. Configure the extension

Add the following to your Zed settings:

{
  "context_servers": {
    "mcp-server-basic-memory": {
      "settings": {
        "project": "optional-project-name"
      }
    }
  }
}

The project setting is optional:

  • If specified, Basic Memory will use the named project for storing and accessing notes
  • If omitted, Basic Memory will use its default project (typically stored in ~/basic-memory/config.json, or set in the BASIC_MEMORY_PROJECT environment variable)

You can configure these settings either:

  • Globally in your Zed settings.json
  • Per-project in your project settings
  • Or omit them to use Basic Memory's default project

Usage

Once configured, Basic Memory will be available in the Zed Assistant. You can use prompts like:

  • "Create a note about software architecture patterns"
  • "What do I know about functional programming?"
  • "Search my notes for information about React hooks"

Multiple Projects

Basic Memory supports multiple projects to separate different kinds of notes. If you work on different codebases or subjects, you might want to maintain separate knowledge bases for each.

Building the Extension

This extension needs to be compiled to WebAssembly (WASM):

  1. Add the WASM target to your Rust toolchain:

    rustup target add wasm32-wasip1
    
  2. Build the extension:

    cargo build --target wasm32-wasip1 --release
    

Local Testing

For testing locally:

  1. Build the extension as described above
  2. In Zed, open Extensions (⌘ + Shift + E)
  3. Click "Install Dev Extension" and select the extension directory
  4. Your dev extension will override any published version with the same name

Note: When installing as a dev extension, Zed will automatically use the build artifacts from your target directory.

Basic Memory Resources

For more detailed information about Basic Memory, visit:

License

This project is licensed under the Apache License, Version 2.0 (the "License"). You may obtain a copy of the License at:

http://www.apache.org/licenses/LICENSE-2.0

This extension interfaces with the basic-memory MCP server, which is a separate product developed by Basic Machines and is licensed under the GNU Affero General Public License, Version 3.0 (AGPL-3.0). The basic-memory MCP server's license can be found at:

https://www.gnu.org/licenses/agpl-3.0.html

Please note that while this extension is distributed under the Apache 2.0 License, if you use the basic-memory MCP server through this extension, you must comply with its AGPL-3.0 license terms. This extension itself does not incorporate any code from the basic-memory MCP server; it only provides an interface to communicate with it as an external service.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Playwright McpPlaywright MCP server
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
DeepChatYour AI Partner on Desktop
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
WindsurfThe new purpose-built IDE to harness magic
Serper MCP ServerA Serper MCP Server
ChatWiseThe second fastest AI chatbot™
CursorThe AI Code Editor
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Amap Maps高德地图官方 MCP Server
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Tavily Mcp
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.