Neuron - "Synapse"
Neuron is an MCP server that gives LLMs persistent semantic memory via a concept graph, enabling long-term knowledge retention and retrieval across conversations. It supports local storage (libSQL/sqlite3) or shared Turso Cloud, and integrates with MCP clients (Claude Desktop, Cursor, OpenCode) or ChatGPT via an HTTP bridge.
Core Memory Loop
pre_turn— Load relevant past context before replyingstore_turn— Save new knowledge (keywords, links, entities, topic, domain, intent, sentiment, references) after replyingget_context— Retrieve related nodes and links, with parent context inheritanceconfirm— Boost salience of useful keywords to improve future retrieval
Search & Discovery
vector_search— Semantic similarity search using 384-dim embeddingsfind_candidates— Screen for similar existing keywords (deduplication check)forgotten— Rediscover concepts not accessed in N turnssummary— Overview of top keywords, recent links, and graph healthstatus— Current graph state, node/link counts, and configuration
Graph Maintenance
merge— Merge duplicate/near-duplicate nodes into one canonical nodeconsolidate— Auto-merge near-duplicates and archive low-salience orphansprune— Remove inactive tangential linksdedup/flash— Toggle automatic deduplication or semantic flashbacksreset— Clear all stored memory
Context Management
switch_context— Switch or create domain-specific contexts (e.g.java/spring)list_contexts— List all available contexts with metadata
Extraction & Automation
extract— Analyze text to extract keywords, topic, domain, intent, sentiment, and entities (without saving)auto— One-shot extract + topic-shift + auto-link + save from raw text
Import / Export & Guidance
export— Export the full concept graph as JSONhelp— Display all commands and usage guidanceskill— Fetch full playbook/workflow text on demand
Provides persistent semantic memory for LLMs using Turso's native vector search to store and retrieve concepts with 256-dimensional embeddings.
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., "@Neuron - "Synapse"get context from last session about neural networks"
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.
✨ What is Neuron?
Neuron is a local-first MCP server that gives large language models long-term, associative memory. Point any MCP client at it (Claude, Cursor, OpenCode, VS Code, ChatGPT via a bridge, and more) and across every conversation Neuron builds a concept graph:
every meaningful turn stores keywords with 384-dim vector embeddings and typed semantic links, organized into topic contexts with inheritance from parents;
retrieval is associative, not just keyword matching — spreading activation, salience & recency ranking, and cross-context "drift" surface the right memory even without an exact hit;
it runs local-first (one
.dbfile, no daemon, no network) and can optionally back a shared team memory on Turso Cloud where several people write into the same brain at once.
In one line: stop re-explaining context to your AI every session. Neuron remembers.
Related MCP server: Memory MCP
🌟 Highlights
Feature | What it means for you | |
🧩 | Associative memory | Hebbian link reinforcement, spreading activation, salience/recency ranking — memories that fire together wire together. |
🌐 | Any MCP client | Claude Desktop/Code, Cursor, OpenCode, VS Code, Windsurf, Zed, Cline/Roocode, Continue, Cody, Amazon Q — plus ChatGPT via an HTTP bridge. |
💾 | Local-first, zero setup | Embedded libSQL with native |
👥 | Shared team brain (optional) | Flip on Turso Cloud and everyone writes into one graph — atomic, concurrent, no one's save clobbers another's. |
🎯 | Quality at the door | A curation gate drops filler, folds duplicates and canonicalizes links, so the graph stays clean instead of bloating. |
📖 | Episodic facts | Nodes carry short "what actually happened" facts, surfaced back into context on the next turn. |
🕰️ | Time-travel visualizer | A self-contained interactive HTML graph — replay your memory growing turn by turn, filter by domain, inspect every node & link. |
🩺 | Batteries-included tooling | Cross-platform CLI ( |
🧠 How it works
Neuron runs a simple two-step loop around every substantial turn:
┌─────────────────────────────────────────────────────────┐
│ 1. pre_turn(topic, keywords) │
│ → loads the relevant slice of memory BEFORE you reply │
└─────────────────────────────────────────────────────────┘
│ the model answers, now informed
▼
┌─────────────────────────────────────────────────────────┐
│ 2. store_turn(keywords, links, facts…) │
│ → saves what's NEW as concepts + typed links │
└─────────────────────────────────────────────────────────┘Under the hood each concept is a node (keyword + embedding + salience + domain), each
relationship a typed link (cause-effect, analogy, evolution, contrast,
deepening, instance-of). Links that keep co-activating get reinforced; idle tangential
ones get pruned; concepts you stop touching fade to dormant. Retrieval blends vector
similarity, graph traversal and salience — so the model recalls what matters, not only what
literally matches.
⚡ Quickstart
🪟 Windows — one click
Double-click NeuronInstaller.exe in the project folder. It installs Neuron and creates a
Neuron — Control Center shortcut on the Desktop. From then on, double-click that
shortcut: the GUI is the single front door for setup, registration, deploy/update, Turso,
Bridge + Tunnel, graph maintenance, vault import and live logs. No terminal is needed for
normal use.
.\NeuronInstaller.exeInstalls into a dedicated venv using a pre-built pyturso wheel from .\vendor
(Python 3.10–3.14), so no C/Rust compiler is needed.
🍎 macOS / 🐧 Linux
pyturso ships prebuilt wheels on PyPI for macOS/Linux, so a plain install just works:
python3 -m venv .venv && source .venv/bin/activate
pip install neuron-<version>-py3-none-any.whl # from the GitHub Release
python -m neuron # starts the MCP server on stdioFrom a source checkout: pip install ".[dev]".
📖 Full instructions, the manual path and troubleshooting live in INSTALL.md.
🔌 Mounting in an MCP client
Neuron is a local stdio MCP server — your client launches it as a subprocess. "Mounting" just means registering that launch command; on Windows the installer can do it for you.
Client | How to mount | Notes |
Claude Desktop, Cursor, OpenCode | auto-registered by | restart the client |
Claude Code, VS Code, Zed, Windsurf, Cline/Roocode, Continue, Cody, Amazon Q | add the launch command ( | local stdio |
ChatGPT / OpenAI | via an HTTP bridge — see the Bridge guide | Developer Mode, paid plans |
Ready-made JSON snippets for every client live in clients/. Example — OpenCode
(~/.config/opencode/opencode.json):
{
"mcp": {
"neuron": { "command": ["python", "-m", "neuron"], "type": "local" }
}
}💾 Storage: local, or shared on Turso Cloud
Neuron resolves its storage tier automatically, in this order:
Turso Cloud — when
TURSO_DATABASE_URL+TURSO_AUTH_TOKENare set. Memory is shared across machines and people;vector_distance_cos()runs server-side.Local pyturso — embedded libSQL, native vector search, one local file (the default).
stdlib sqlite3 — last-resort fallback, Python-side cosine similarity.
One connection layer serves all three, so working solo vs. as a team is just a connection string — no code changes. Turn on the cloud in one step:
pip install "neuron[cloud]"
python scripts/connect_turso.py # prompts, live-tests the connection, saves to .env👥 Running a whole team on one brain? See the Team guide.
🕰️ Graph Visualizer
Neuron ships an interactive, self-contained HTML visualizer — launch it from
neuron manage (option 4, Graph visualizer) or python scripts/generate_graph_html.py. It reads through
Neuron's own engine (so it sees the cloud too) and gives you:
salience-sized, domain-colored nodes · Hebbian-thickened edges · drift-link styling · dormant fading · neighborhood highlight · search · domain/type filters · an insights panel (hubs, most-salient, dormant, strongest synapses, cross-context bridges) · a Replay slider that animates your memory growing turn by turn · and an Obsidian-style 🎨 appearance editor.
🧰 MCP tools
Tool | Description |
| PRE shortcut — status + compact context in one call |
| Save a turn: keywords, links, entities, tags, an episodic fact |
| Boost salience of nodes that influenced the response |
| Related nodes/links; |
Tool | Description |
| Graph state · top nodes and recent links |
| Semantic vector search (no link traversal) |
| Find similar existing keywords before storing (dedup) |
| Absorb duplicate nodes into one |
| Standalone extraction · extract-and-save in one call |
| Switch / list domain contexts (e.g. |
| Concepts idle for N turns · force-prune expired links |
| Export the graph as JSON · clear it |
🛠️ Development
pip install -e ".[dev]"
python -m pytest tests/ -v # unit tests (fastembed/mcp/turso mocked — no network)
python -m build # wheel + sdist (CI verifies this on every push)Architecture, the DB layer, per-client config and cloud/bridge internals are documented in docs/DEVELOPER.md; release & CI mechanics in docs/RELEASE_PLAN.md. Requires Python 3.10–3.14.
🗺️ Documentation map
Doc | What's in it |
Every install path (Windows one-click → manual → source) + troubleshooting | |
Architecture, memory dynamics, DB layer, per-client config | |
Running a shared team brain on Turso Cloud | |
Exposing Neuron over HTTP for ChatGPT / remote connectors | |
The full v5 "Synapse" story, release by release |
👤 Author
Neuron is designed and built by Claudio Costantino.
Found Neuron useful? A ⭐ on the repo genuinely helps.
📜 License
PolyForm Noncommercial License 1.0.0 — free for noncommercial use. See LICENSE.
Maintenance
Related MCP Servers
- Alicense-qualityDmaintenanceAn MCP server that provides persistent semantic memory backed by PostgreSQL and pgvector for storing and searching thoughts via vector embeddings. It enables dimensional organization, conflict detection, and historical tracking of facts, decisions, and observations.Last updated27AGPL 3.0
- AlicenseBqualityDmaintenanceAn MCP server that provides AI assistants with persistent, semantic memory using Turso for storage and OpenAI for vector search. It enables natural language operations to store, retrieve, and refine information with automatic duplicate detection and quality validation.Last updated528MIT
- Alicense-qualityCmaintenancePersistent semantic memory server for AI assistants via MCP, enabling long-term context retention and semantic search across conversations.Last updated11MIT
- Alicense-qualityAmaintenanceOpen-source MCP server that gives any LLM long-term memory using a knowledge graph and vector search hybrid. It stores entities, observations, and relationships, enabling semantic recall across sessions with automatic clustering and fail-loud infrastructure.Last updated49MIT
Related MCP Connectors
User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.
Cloud-hosted MCP server for durable AI memory
Person-owned, portable AI memory as a remote MCP server, readable and writable by any MCP client.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/recla93/Neuron'
If you have feedback or need assistance with the MCP directory API, please join our Discord server