synapsis
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@synapsisinitialize session 'Sprint 5 planning' and create a task"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
synapsis
Unified durable team memory MCP + multi-provider LLM client, extracted as a focused, reusable package.
Synapsis is a standalone memory layer designed for agentic workflows and Grok Build. It was originally extracted from a larger internal project.
Designed to work great with Grok Build (and other agent harnesses that speak MCP).
Why this exists
When you have multiple specialist agents (or subagents), the hard part is not creating the agents — it's making them hand work to each other reliably, keep shared context, audit what happened, and build up durable knowledge without losing it between sessions.
Synapsis solves that with:
Session + observation timeline with smart token compression and multi-level summarization.
Task tracking with state machine, events, and parent/child relationships.
Handoff protocol (
synapsis__hf) — every significant piece of work produces a structured, searchable handoff file (with optional Wiki contribution).Unified search across everything (observations, tasks, handoffs, knowledge/wiki chunks) with FTS5 + optional hybrid/embedding modes.
Knowledge / Wiki layer (chunks + search) that handoffs can feed automatically.
All backed by a single SQLite DB (
.synapsis/synapsis.dbby default — local, low-latency operational store) + handoff files and curated knowledge underLibrary/. The DB path is overridable viaSYNAPSIS_DB_PATH. Library can still be symlinked to a vault for higher-latency curated/static content.
Plus a high-quality LLM client (tools/llm) that lets you call Grok (including multi-agent variants), Gemini, OpenRouter, etc. from your own Python code, skills, or additional MCPs.
Related MCP server: repo-memory-mcp
Quick Start with Grok Build
# Clone the focused package
git clone https://github.com/teamolimpo/synapsis.git
cd synapsis
uv sync
# Run Grok from inside this directory
grokGrok will automatically pick up the project-scoped MCP from .grok/config.toml.
In the TUI:
Type
/mcps(or use the MCP modal) — you should see synapsis.The tools will be namespaced:
synapsis__search,synapsis__session,synapsis__task,synapsis__hf,synapsis__d_set,synapsis__d_get, etc.
Recommended Integration with Grok Build (2026+)
Instead of raw long search_tool + use_tool synapsis__xxx {...} sequences, use the project skills:
/handoff <title> ...— the mandatory structured handoff flow (recall first, proper hf + task log + observe, Wiki contribution support)./synapsis ...(or/mem) — general memory ops: init, search/recall, observe, task mgmt, health, consolidate, stats, hygiene.
These live in .grok/skills/ (version controlled) and appear in the slash menu.
Project rules are now properly loaded via the standard mechanism:
AGENTS.md(short, canonical entry point) + any*.mdunder.grok/rules/GROK.mdremains the detailed operational manual (tool-by-tool, examples, token strategies, full handoff discipline). The AGENTS.md points to it.
Automatic hygiene via project hooks (.grok/hooks/synapsis-hygiene.json):
On
Stop,PreCompact,SessionEnd: runssynapsis hygiene(dry consolidate + stats).First time you open the project with hooks you must trust it (or use the
/hooksmodal).
Basic usage example (tell the agent):
"Initialize a session with topic 'Porting handoff protocol' and then observe this decision: we chose synapsis as the package name."
Or simply: "Use /handoff for this piece of work."
Typical flow the memory expects:
/synapsis init "topic..."(or raw session init)Do work, record with observations or tasks
/handoff "Clear title" tref:T-XXX ...(or raw synapsis__hf + log)Later recall with
/synapsis search "..."or targetedsynapsis__search
Handoff files land in Library/Handoff/YYYY/MM/. Wiki contributions (from handoffs) land in Library/Wiki/.
See:
AGENTS.md(loaded project rules)GROK.md(full patterns and discipline).grok/skills/handoff/SKILL.mdandsynapsis/SKILL.mduv run python -m tools.synapsis --help(CLI for maintenance/hygiene)
The LLM client
from tools.llm.config import get_api_key
from tools.llm.providers.grok import GrokProvider
provider = GrokProvider(get_api_key("grok"))
resp = provider.chat("Summarize the Synapsis handoff protocol", model="grok-4-1-fast-non-reasoning")
print(resp.text)
# Or multi-agent Grok
resp = provider.chat("Deep research on memory patterns", model="grok-4.20-multi-agent-0309", agent_count=8)It also supports Gemini, OpenRouter, image generation on supported models, and stateful chat sessions via the Responses API.
Use it whenever you want to call a non-default model from inside tools you write while using Grok Build as the main orchestrator.
Project layout (kept close to original for "as-is" fidelity)
synapsis/
├── .grok/
│ └── config.toml # MCP registration for Synapsis
├── .synapsis/ # Local low-latency runtime memory (gitignored)
│ └── synapsis.db # The hot operational SQLite store (sessions, tasks, observations, FTS5, ...)
├── tools/
│ ├── common/
│ │ └── paths.py # project_root + symlink-aware resolution (Library + .synapsis)
│ ├── synapsis/ # The memory MCP (server, store, hf handoffs, search, etc.)
│ └── llm/ # Multi-provider LLM client
├── Library/ # Gitignored — curated/static/vault content (Handoff + Wiki)
│ ├── Handoff/
│ └── Wiki/
├── pyproject.toml
└── README.mdThe tools/ layout is preserved so that all internal imports (from tools.common.paths, from tools.synapsis.models, etc.) continue to work without modification. You can still run:
uv run python -m tools.synapsisexactly as before.
.synapsis vs Library (hot operational memory vs curated/vault content)
.synapsis/(default): low-latency local runtime store. Contains:synapsis.db(plus WAL/SHM) — sessions, observations, tasks, entities, FTS5, knowledge chunks, etc.config.yaml— optional local operational configuration for the whole synapsis instance (e.g. what to index underknowledge.include/knowledge.exclude). Fast local I/O by design. Fully gitignored.
Library/: intended for higher-latency or curated content (Handoff files, Wiki contributions). This is the part that can be symlinked to a personal vault, Obsidian, NFS, etc. without hurting the hot path. Gitignored (with.gitkeepmarkers).
The split exists so that the very active DB (frequent small writes + searches) stays on fast local storage, while you can still keep handoffs and curated knowledge in a separate, possibly remote/slower vault.
tools/common/paths.py provides resolve_absolute() / resolve_relative() for symlink handling (mainly useful for Library parts).
Override the DB location anytime with the SYNAPSIS_DB_PATH environment variable (e.g. to point back at an old Library/System/Poros/synapsis.db or to a shared location). Handoff file location is currently under Library (see tools/synapsis/hf.py); this may evolve later.
Status & Relationship to original project
This is a focused extraction of the two strongest reusable components:
Synapsis (the memory/handoff/knowledge system)
The LLM multi-provider client
Many of the concepts (mandatory handoffs, structured memory, quality gates) translate well to agentic setups and subagent coordination patterns.
Contributing / Philosophy
If you extend this, try to keep the "handoff before you return control" spirit and make heavy use of the durable memory instead of stuffing everything into the agent's context window.
The handoff protocol and memory discipline are documented in GROK.md and AGENTS.md.
License
MIT (same as the original extraction source).
Made to be useful with Grok Build (and any MCP-speaking agent system). Feedback and improvements welcome — especially around making the memory layer even more powerful when combined with subagents and worktree isolation.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/teamolimpo/synapsis'
If you have feedback or need assistance with the MCP directory API, please join our Discord server