Documentation
Synapse Layer docs
With Synapse Layer, anything your agents learn — decisions, preferences, project rules — is saved, protected, and shared across apps, models, and sessions. This guide covers installation, integration, and the security model. Total time: under 5 minutes.
Get started in 3 steps
- 1
Create your free account and copy an API key: forge.synapselayer.org
- 2
Install the MCP server or SDK (below).
- 3
Send your first encrypted memory with
store()orcurl.
Install
pip install synapse-layer
npm install synapse-layer
Requirements: Python 3.9+ or Node 18+, an API key. No local database, no file locking — memory lives server-side, encrypted at rest.
Quick start
from synapse_layer import Synapse
client = Synapse(token="YOUR_KEY")
# Save what the user told you
client.store(
content="User prefers dark mode and terse answers.",
memory_type="long_term",
)
# Recall what you (or another agent) learned
memories = client.recall(query="preferences")
# Cross-agent handover — MCP tool neural_handover (NOT a client method)
# Requires: token (64 hex chars, from Forge UI) + reason (10–200 chars)
curl -X POST "https://forge.synapselayer.org/api/mcp" \
-H "x-connect-token: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call",
"params":{"name":"neural_handover",
"arguments":{"token":"<64-hex>",
"reason":"Receiving project context from Claude session",
"consuming_agent":"my-agent"}}}'MCP configuration
Synapse Layer is a first-class MCP server. It exposes 13 tools over streamable HTTP, so any MCP host (Claude Desktop, Cursor, Codex, Cline, Roo, LangChain) can read and write the same shared memory.
{
"mcpServers": {
"synapse-layer": {
"type": "http",
"url": "https://forge.synapselayer.org/api/mcp",
"headers": { "x-connect-token": "YOUR_KEY" }
}
}
}claude mcp add synapse-layer \ --transport http \ --url "https://forge.synapselayer.org/api/mcp" \ --header "x-connect-token: YOUR_KEY"
npx -y smithery mcp add synapselayer/synapselayer
# A local stdio binary is a roadmap item — the published # MCP server runs on streamable HTTP at forge.synapselayer.org/api/mcp, # so every host targets the same endpoint regardless of language or OS.
Need proper setup with your platform? Use the guided Connect page — paste your key, pick your platform, copy the config.
REST API
The same engine behind MCP is available as a REST API (OpenAPI 3.1). Authenticate with the x-connect-token header (sk_connect_…).
curl -X POST https://forge.synapselayer.org/api/v1/capture \
-H "x-connect-token: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"content":"User prefers dark mode","agent_id":"my-agent"}'| Endpoint | Method | Purpose |
|---|---|---|
| /api/v1/capture | POST | Store one encrypted memory |
| /api/mcp | POST | MCP JSON-RPC bridge (streamable HTTP) |
The 13 tools
Discover the full interface with tools/list. Memory tools accept an agent_id scope; utilities (health_check, initialize_context, slo_report) and neural_handover use their own parameters.
save_to_synapse
Encrypt and persist a memory (AES-256-GCM) with sanitization and dedup controls.
recall
Semantic recall routed by mode (auto/temporal/semantic/priority/hybrid) — the core memory query.
search
Full-text matching across the memory space.
process_text
Extract candidate memories from free-form text with governance filters.
save_memory
Alias of save_to_synapse — save a memory entry to the persistent store.
store_memory
Store structured memory with metadata and trust scoring.
recall_memory
Alias of recall — retrieve persisted memory by query.
list_memories
List memory metadata with pagination and governance limits.
memory_feedback
Signal used/ignored/helpful/irrelevant to adjust trust scoring.
neural_handover
Transfer contextual state to another agent with continuity controls (token + reason).
health_check
Service availability, engine version, and storage health.
initialize_context
Initialize a persistent memory context for a conversation or session.
slo_report
Uptime and SLO metrics (admin token) for regulated environments.
Security model
- •AES-256-GCM at rest, per-operation IV — every memory is encrypted with its own initialization vector; key rotation without re-encryption.
- •OAuth 2.0 + PKCE S256 — no password sent over the wire; refresh-token rotation.
- •Semantic Privacy Guard™ — PII detection (11 patterns) with differential-privacy redaction before storage.
- •Trust Quotient (0.0–1.0) — memories are scored; low-trust entries rank lower in recall.
- •Immutable audit trail — every store, recall, delete, and handover is logged.
- •Lifecycle governance — live → tombstone → analytics with guaranteed erasure.
Data lifecycle & compliance
→Memories progress live → tombstone (deleted) → analytics (aggregate metadata only). Vault-deletion is irreversible and audited. Built aligned with LGPD and GDPR.
Pricing & limits
| Plan | Price | Memory | Agents |
|---|---|---|---|
| Free | $0 | 100 memories | 1 |
| Pro | $19/mo | 1,000 memories | + Neural Handover, OAuth 2.0 + PKCE, SDKs |
| Enterprise | Contact | Unlimited | SSO, dedicated, SLOs, audit exports |
Registries & discovery
Synapse Layer is registered across the MCP ecosystem. Machines and agents can discover everything automatically:
- MCP Marketplace
- Smithery
- Glama
- Official MCP Registry —
io.github.SynapseLayer/synapse-layer - MCP manifest · server card (13 tools)
- llms.txt · llms-full.txt · agent skill
Support & feedback
Questions, bugs, or feature requests — we answer fast:
- ✉️ [email protected]
- GitHub Issues: SynapseLayer/synapse-layer
- Dashboard: forge.synapselayer.org