# synapse-causal-memory [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/minseokk77/synapse-kit  
**GitHub Stars:** 0  
**npm Downloads (last month):** 1715  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/synapse-causal-memory

## Description
AI-Native 0-Token Causal Memory Engine 2.0 with SQLite WAL atomic transactions and MCP server

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/minseokk77/synapse-kit), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
bun add -d synapse-kit
```

2. Start the server:

```sh
bunx synapse-memory serve --port 4242                        # Start local daemon & MCP stdio
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/synapse-causal-memory/readme_

