Neuron "Synapse"
БесплатноНе проверенAn MCP server that provides persistent semantic memory for LLMs by building a concept graph with vector search. It enables storing, linking, and retrieving conc
Описание
An MCP server that provides persistent semantic memory for LLMs by building a concept graph with vector search. It enables storing, linking, and retrieving concepts across conversations using Turso vector search and 256-dimensional embeddings.
README

🧠 Neuron
Persistent semantic memory for AI — an MCP server that lets any LLM remember.
Neuron gives your AI a brain that lasts beyond a single chat. Every exchange becomes concepts, links and vector embeddings in a living graph — so the model recalls what you discussed yesterday, connects ideas across topics, and gets smarter the more you use it.
✨ 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.
🌟 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 vector_distance_cos(). One file. No server, no port, no cloud required. |
| 👥 | 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 (neuron register / doctor), a Tkinter visual hub (neuron gui), and a full test suite. |
🧠 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.
…or from a terminal
.\NeuronInstaller.exe
Installs 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 stdio
From 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 install.ps1 (or neuron register) |
restart the client |
| Claude Code, VS Code, Zed, Windsurf, Cline/Roocode, Continue, Cody, Amazon Q | add the launch command (python -m neuron) |
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
The core loop
| Tool | Description |
|---|---|
neuron_pre_turn(topic, keywords) |
PRE shortcut — status + compact context in one call |
neuron_store_turn(...) |
Save a turn: keywords, links, entities, tags, an episodic fact |
neuron_confirm(keywords) |
Boost salience of nodes that influenced the response |
neuron_get_context(topic, ...) |
Related nodes/links; format=compact for injection; inherits from parents |
Search, curation & contexts
| Tool | Description |
|---|---|
neuron_status / neuron_summary |
Graph state · top nodes and recent links |
neuron_vector_search(keywords) |
Semantic vector search (no link traversal) |
neuron_find_candidates(keywords) |
Find similar existing keywords before storing (dedup) |
neuron_merge(canonical, aliases) |
Absorb duplicate nodes into one |
neuron_extract(text) / neuron_auto(text) |
Standalone extraction · extract-and-save in one call |
neuron_switch_context / neuron_list_contexts |
Switch / list domain contexts (e.g. java/spring) |
neuron_forgotten / neuron_prune |
Concepts idle for N turns · force-prune expired links |
neuron_export / neuron_reset |
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 |
|---|---|
| INSTALL.md | Every install path (Windows one-click → manual → source) + troubleshooting |
| docs/DEVELOPER.md | Architecture, memory dynamics, DB layer, per-client config |
| docs/TEAM.md | Running a shared team brain on Turso Cloud |
| docs/BRIDGE.md | Exposing Neuron over HTTP for ChatGPT / remote connectors |
| CHANGELOG.md | 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.
Установка Neuron "Synapse"
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/recla93/NeuronFAQ
Neuron "Synapse" MCP бесплатный?
Да, Neuron "Synapse" MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Neuron "Synapse"?
Нет, Neuron "Synapse" работает без API-ключей и переменных окружения.
Neuron "Synapse" — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Neuron "Synapse" в Claude Desktop, Claude Code или Cursor?
Открой Neuron "Synapse" на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare Neuron "Synapse" with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
