Synapse Causal Memory logo

Synapse Causal Memory

SQLite WAL causal memory for MCP agents, with file-aware queries, Git and AST harvesting, audits, and a local stdio endpoint.

Install Synapse Causal Memory

Run the project’s own setup commands, in order.

Setup steps from the project

synapse-causal-memory installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    bun add -d synapse-kit
    
  2. 2. Start the server
    bunx synapse-memory serve --port 4242                        # Start local daemon & MCP stdio
    

Overview

synapse-causal-memory MCP server provides an agent-facing interface to Synapse Kit's structured causal memory store. It uses SQLite in WAL mode for concurrent reads and atomic writes, and organizes knowledge as Cause, Invariant, and Effect relationships. File and keyword triggers support targeted invariant retrieval, while Git diffs and AST symbols can supply harvested triggers after compiler checks or builds. Reach for it when agents need compact, file-aware project context through a local MCP stdio service.

Use cases

  • Query invariants relevant to edited files
  • Harvest file triggers from Git and AST changes
  • Audit a large causal memory rule set
  • Serve project memory to local MCP agents

Key features

  • File-aware causal invariant queries
  • SQLite WAL concurrency and atomic writes
  • Git and AST trigger harvesting
  • Compact JSON output for agents
  • Local MCP stdio service
  • TypeScript memory-module imports

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads1.7kPackage downloads in the last 30 days.
Last commit17d agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Synapse Causal Memory works

What synapse-causal-memory does

synapse-causal-memory is the memory component of the synapse-kit package. It stores structured causal rules rather than relying on unindexed text dumps, using relationships between causes, invariants, and effects to select relevant project context.

The memory layer is designed around two retrieval tiers. Global invariants remain available as a small baseline, while domain-specific rules are selected when files or keywords match their triggers. This makes the server suitable for coding agents that need project constraints and terminal preferences without injecting the entire memory store into every task.

The package also includes a command-line interface named synapse-memory. Its operations cover querying active invariants, checking memory integrity, harvesting triggers, and starting the local MCP service.

How it works

A SQLite database runs in WAL mode, allowing concurrent readers and atomic writes across agent and dashboard activity. The memory system can harvest file triggers from Git changes and AST symbols after successful synapse check or synapse build runs. Those triggers support selective retrieval for files involved in the current task.

The query path can return a compact JSON representation intended for agent consumption. For example, synapse-memory query --files "compiler/core/engine.ts" asks for active invariants associated with a specific file. The broader Synapse Kit package also exposes CausalMemoryStore and runCausalQuery from its memory subpath for TypeScript consumers.

Setup and configuration

Install the package as a development dependency with Bun:

bash
bun add -d synapse-kit

Initialize the package configuration, then run the memory commands through Bun's package runner:

bash
bunx synapse init
bunx synapse-memory query --files "compiler/core/engine.ts"
bunx synapse-memory audit
bunx synapse-memory harvest

Start the local MCP stdio service with:

bash
bunx synapse-memory serve --port 4242

The package advertises Bun 1.1+ support. No environment variables are required by the documented quick-start commands.

Tools and capabilities

  • Query active invariants for selected files.
  • Audit the integrity of the causal memory rules.
  • Harvest triggers from the project state.
  • Serve the memory engine through a local MCP stdio process.
  • Use SQLite WAL for concurrent reads and atomic writes.
  • Import the memory implementation through synapse-kit/memory.

Limitations and notes

The MCP component is part of a larger twin-core package that also contains a compiler module and a separate database module. Installing synapse-kit therefore provides more than the memory server, although the memory CLI and subpath imports can be used independently.

The documented MCP mode is local stdio. The serve command accepts a port argument, but the available setup material does not define a remote transport configuration or a client-specific configuration file. The memory workflow is closely connected to Synapse's check and build commands for automatic Git and AST trigger harvesting.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Synapse Causal Memory

synapse-causal-memory is an MCP server that connects AI agents to a local SQLite WAL causal memory store and exposes query, audit, harvest, and serve operations. It can return active invariants for selected files, inspect memory integrity, collect Git and AST triggers, and run an MCP stdio endpoint.

Install it with `bun add -d synapse-kit`, then initialize the package with `bunx synapse init`. Run memory operations through `bunx synapse-memory`, and use Bun 1.1 or newer as indicated by the package requirements.

Run `bunx synapse-memory serve --port 4242` to start the local daemon and MCP stdio service. The documented server mode is local stdio, with the port supplied as a command-line option.

Yes, Cursor is explicitly listed as a target agent for synapse-causal-memory. The server exposes its memory service through MCP stdio, allowing a compatible local Cursor setup to connect it to project-specific causal memory.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSynapse Causal Memory AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/synapse-causal-memory?style=directory)](https://allmcps.com/mcp/synapse-causal-memory)
HTML Embed
<a href="https://allmcps.com/mcp/synapse-causal-memory"><img src="https://allmcps.com/api/badge/synapse-causal-memory?style=directory" alt="Synapse Causal Memory on AllMCPs" /></a>