Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

A lightweight MCP server that provides long-term memory for LLMs by storing and retrieving important facts, decisions, and preferences through smart semantic search and automatic organization.

README.md

Synapse: Long-term Memory for LLMs

Synapse is a lightweight memory engine designed to give agents and LLMs a permanent "brain." It solves the "goldfish memory" problem by storing important facts, decisions, and preferences in an organized way, retrieving only what is relevant to the current conversation.

Instead of stuffing your entire chat history into a prompt, Synapse uses a smart search system to find exactly what matters. This keeps your context window clean and your token costs low.

---

How it works

Synapse is designed to be flexible and works in two main ways:

  • Plug-and-play (MCP): Connect it to any AI tool that supports the Model Context Protocol (such as Claude Desktop, Cursor, Zed, and others). It works instantly as a set of tools the AI can use to remember things about your projects and preferences.
  • As a Core Engine: If you are building your own AI application, you can import Synapse directly into your Python project. It handles memory management, semantic search, and versioning without the need for complex vector database setups.

Main Features

  • Smart Retrieval: It doesn't just look for keywords. It combines relevance (BM25) with recency, meaning it prioritizes what you decided today over information from months ago.
  • Automatic Organization: It manages hierarchical categories and automatically fragments long pieces of information to fit within LLM context limits.
  • Fast and Reliable: Built on SQLite with an in-memory index, it retrieves memories in less than 500ms.
  • Zero Dependencies: Written in pure Python 3 to be lightweight, easy to audit, and simple to integrate.

---

Getting Started

Prerequisites

  • Python 3.10+

1. Installation

# Clone the repository
git clone https://github.com/your-username/synapse.git
cd synapse

# Create and activate virtual environment
python3 -m venv venv
source venv/bin/activate

# Install dependencies (only required for the MCP server)
pip install -r requirements.txt

2. Standalone CLI Usage

You can manage your memory manually via the terminal: ```bash

Initialize the database

python3 -m synapse init

Add a memory

python3 -m synapse add --path "project/stack" --title "Database" --content "Using SQLite and RAM Index."

Search

python3 -m synapse search --prompt "what database are we using?" ```

3. MCP Server Configuration

To use Synapse with tools like Claude Desktop or Cursor, add it to your configuration file:

Example (claude_desktop_config.json): ``json { "mcpServers": { "synapse_memory": { "command": "/absolute/path/to/venv/bin/python", "args": ["-m", "synapse.mcp_server"], "env": { "PYTHONPATH": "/absolute/path/to/synapse_directory" } } } } ``

---

Maintenance

Keep your memory engine healthy with built-in maintenance tools:

# Run Garbage Collector (clean up obsolete data)
python3 -m synapse gc

# Database and Index optimization
python3 -m synapse optimize

Testing

python3 -m unittest discover -s tests -p 'test_*.py'

License

MIT. See LICENSE for details.

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Vector & Memory servers.