Synabun 标志

Synabun

社区
danilokhury

Open-source persistent memory MCP server and self-hosted AI workspace for Claude Code, Codex and OpenCode. SynaBun Assistant coordinates their agents.

发布者danilokhury
代码仓库Synabun
语言JavaScript
复刻数
10
星标数
70
可用工具
0
传输类型stdio
许可协议Apache-2.0
链接
  • 将工具接入 AI 工作流

    Synabun 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 70 个 Star 和 10 个 Fork。


SynaBun is an open-source, self-hosted AI workspace and persistent memory MCP server: SynaBun Assistant coordinates Claude Code, Codex and OpenCode agents. What you decided, fixed and explained in one session is there in the next one, in every project and every tool you connect, so you stop repeating yourself. It all lives in one SQLite file on your computer: no account, no cloud service, no API key.

bash
npm install -g synabun

synabun starts the app. synabun mcp is the MCP server on stdio, for any MCP client:

json
{
  "mcpServers": {
    "SynaBun": {
      "command": "npx",
      "args": ["-y", "synabun", "mcp"]
    }
  }
}

After the global install, "command": "synabun", "args": ["mcp"] runs the same server. Read the docs, or see how SynaBun compares with other memory tools.

It connects to Claude Code, Codex CLI, Gemini CLI and OpenCode with one switch each, and to Cursor, Windsurf or any other tool that supports MCP (the Model Context Protocol) with a config snippet you copy. It comes with the Neural Interface, a local web app where you see what your tools remember and run your coding agents.

What you can do with it

  • Keep context between sessions. Your assistant saves what it learned as it works and looks it up before the next task. Search matches meaning as well as keywords.
  • See what it knows. Browse, search, edit and delete memories in the Neural Interface, on a 3D map where related memories sit together.
  • Run Claude Code, Codex and OpenCode side by side. Each has a side panel in the Neural Interface, next to terminals, a file explorer and a whiteboard, all sharing the same memory.
  • Delegate. The SynaBun Assistant plans a task, proposes a model for it, hands it to a worker in Claude Code, Codex or OpenCode and reports the result. You can also message it from WhatsApp.
  • Automate. Save a task as a template, then run it as a loop or on a schedule.
  • Give agents a browser. Browser tools let an agent open pages, click, type and read in a browser you can watch.

Quick start

You need Node.js 22.19 or newer.

bash
npm install -g synabun
npm --prefix "$(npm root -g)/synabun/mcp-server" run setup:embeddings
synabun
  1. Install. The first command installs SynaBun. The second downloads the model that powers search by meaning; without it SynaBun still works, with keyword search only. In Windows Command Prompt, replace $(npm root -g) with the path that npm root -g prints.

  2. Start. synabun starts the Neural Interface at http://localhost:3344 and opens the setup wizard in your browser. The first start also installs a Chromium build for the browser tools.

  3. Connect your AI tool. In the wizard, add your projects and switch on the tools you use. SynaBun registers itself with Claude Code, Codex CLI, Gemini CLI and OpenCode, and installs a short set of rules that tell each tool when to recall and when to remember. For Cursor, Windsurf or another MCP tool, copy the config snippet shown in the same step. You can change the connections later in Settings → AI connections.

  4. Try it. Start a new session in your AI tool and say:

    Remember that we deploy from the release branch, never from main.

    Start another session and ask:

    What do you remember about how we deploy?

    Then open http://localhost:3344 to see the memory on the map. Press / to search, a to open the Assistant, and the ? button in the title bar for a tour.

Leave synabun running while you work: Claude Code reaches its memory through it. Stop it with Ctrl+C. If something looks wrong, synabun doctor reports the state of your data and your tool connections.

To run from source instead:

bash
git clone --depth=1 https://github.com/danilokhury/Synabun.git
cd Synabun
npm start

npm start installs dependencies, builds the MCP server and starts the app. Once it is up, run npm --prefix mcp-server run setup:embeddings in a second terminal to turn on search by meaning.

How it works

Your AI tool ── MCP ──▶ SynaBun MCP server ──▶ memory.db (SQLite) ◀── Neural Interface (localhost:3344)
  • A local database. Memories live in one SQLite file on your disk. Each one is indexed for keyword search and for search by meaning, using a model that runs on your machine.
  • An MCP server. It gives your AI tool the memory tools: remember, recall, reflect, forget, restore and a few more. Any MCP client can use it.
  • The Neural Interface. A local web app on port 3344 that reads the same database. It holds the memory map, settings, the side panels, the Assistant and your automations.
  • Rules and hooks. The installed rules tell each tool to recall before substantial work and to remember after it. In Claude Code, hooks add to that: they bring relevant memories into the session and remind the assistant to save its work.

Features

Memory

  • Keyword and meaning search. recall combines both and can return compact results sized to a token budget.
  • Categories you define. Each category's description tells the assistant what belongs there.
  • One memory for every project. Recall favours the project you are in and still finds what you learned elsewhere.
  • Hard to lose. Edits keep a revision history you can undo, deleted memories go to a trash you can restore from, and sync flags memories whose source files have changed.
  • Backups. Scheduled, checksum-verified backups in Settings → Memory & backups. synabun restore-backup --from <backup.zip> checks a backup, and adding --apply restores it.

Neural Interface

  • Memory map. A 3D map of everything stored: top-level categories are continents, categories are islands, and similar memories sit side by side.
  • Workspace. Terminals, a file explorer and a whiteboard next to your memories.
  • Settings you can search, in English and Brazilian Portuguese.
  • A workspace tour behind the ? button.
  • Showcase mode for screenshots. Open the interface with ?showcase=1 and it loads your layout without saving any change to it, and blurs your own content: memories, session titles, transcripts, terminal output, account names and anything that looks private (emails, home folder paths, ids, keys, phone numbers, the names of your other projects). ?lang=en or ?lang=pt-BR sets the language for that page only. Map labels drawn on the canvas cannot be blurred one by one, and the whiteboard and memory positions you drag still save.

Coding agents

  • Side panels for Claude Code, Codex and OpenCode. Streaming answers, tool calls, approvals, plans and resumable sessions, on your own accounts. Gemini CLI and plain shells open as terminal tabs.
  • SynaBun Assistant. One assistant that recalls memory on every turn, proposes where a task should run, dispatches it to a worker and reads back a structured result. Budget caps and a token gauge keep spending visible.
  • WhatsApp Link. Message the Assistant from your phone as a linked device, with three permission levels. See docs/whatsapp.md.
  • Computer use on macOS. The Assistant can see and operate desktop apps, behind guards and stop controls.
  • Style Guide. A brand and design system per project, saved as DESIGN.md and design tokens. Agents read it and can only propose changes. See docs/style-guide.md.

Automations and tools

  • Automation Studio and schedules. Task templates you run as loops or on a schedule.
  • Browser tools. Navigate, click, type, read and take screenshots, or batch several actions into one call. See docs/browser-v2.md.
  • Integrations. Tool groups for Discord, Google Search Console, YouTube Studio, Leonardo.ai and Bluesky, and readers for X, Facebook, Instagram, LinkedIn, TikTok and WhatsApp Web. Tool profiles limit a session to the groups it needs.
  • Skills. /synabun brainstorms from memory, audits memories against your code, saves a conversation and creates schedules. /leonardo guides image and video prompts.
  • Claude Code hooks. How they are installed, isolated and measured: docs/hook-integrity.md.
  • AI decisions (optional). With your own TypeSafe API key, SynaBun asks for a judgment where a fixed rule would guess: is this memory a duplicate, does it hold a secret, is it stale. Every judgment has a local fallback, and nothing is sent without a key. See docs/judgments.md.

Requirements

  • Node.js 22.19 or newer.
  • macOS, Windows or Linux. Computer use is macOS only.
  • The coding tools you want to use, installed and signed in with your own accounts. SynaBun does not include model access.
  • Optional: C/C++ build tools. Terminals use a native module. If it has no prebuilt binary for your system, it is compiled during install; if that fails, everything except terminals still works.
  • Optional: credentials for integrations such as Discord, YouTube or AI decisions. You enter them in Settings when you turn the feature on.

Updating

bash
npm install -g synabun@latest
npm --prefix "$(npm root -g)/synabun/mcp-server" run setup:embeddings

SynaBun also offers new versions inside the app. Either way, run the second command after each update: the search model is kept inside the installed package, which the update replaces. If recall reports Local embeddings unavailable; keyword retrieval used., this is the fix.

Coming from 2026.x? Run npm i -g synabun@latest once by hand. Versions used to be dates (2026.9.5) and are now plain semver (2.0.0), so the in-app update check of an older install does not offer 2.0.0. From 2.0.0 on, the in-app updater works as before.

Running from source? git pull --ff-only, then npm run mcp:build and npm start.

Before a new version starts for the first time, SynaBun takes a verified snapshot of your data and keeps it in backups/updates in your data folder. If it cannot take the snapshot, it stops instead of starting.

Your data and privacy

Everything SynaBun stores is in one folder outside the app: ~/.synabun on macOS and Linux, %APPDATA%\synabun on Windows. Set SYNABUN_DATA_HOME to use another place.

~/.synabun/
├── .env                 # settings and credentials for integrations
├── data/                # interface state, schedules, logs
├── backups/             # backups and pre-update snapshots
└── mcp-data/memory.db   # your memories
  • Your memories stay on your machine. The database is a local file and the search model runs locally.
  • What does leave it. Your AI tools send your prompts, and the memories they recall, to their own providers. Optional features (AI decisions, WhatsApp, Discord, the browser) talk to their services once you set them up. SynaBun checks npm and GitHub for new versions, and the interface loads web fonts and one script from public CDNs.
  • Keep it on a network you trust. The Neural Interface has no login and listens on all network interfaces. Do not expose port 3344 to the internet. The full security model is in SECURITY.md.
  • Back up from the app. Copying memory.db by hand while SynaBun is running can miss recent writes.

Links

License

Licensed under the Apache License, Version 2.0.

You are free to use, modify, and distribute SynaBun under Apache 2.0. Premium features and enterprise extensions may be offered under a separate commercial license. See LICENSE-COMMERCIAL.md for details. Third-party notices are in NOTICE and THIRD-PARTY-LICENSES.md.

Trademark Notice

"SynaBun" is a trademark of its authors. The license does not grant permission to use the SynaBun name, trademarks, service marks, or branding. If you fork this project, you must use a different name for your derivative work.

将 Synabun MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 Synabun 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请保持终端窗口及其中的进程运行。
3

将 Synabun 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 Synabun MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "synabun": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 Synabun MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 Synabun MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 Synabun 帮我完成这项任务吗?
Synabun
当然。我已阅读。
以下是我使用 Synabun 得到的结果。

常见问题

Synabun MCP 服务器有什么用途?

Synabun 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 Synabun MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您可以让 Claude、ChatGPT、Gemini 等不同 AI 模型,或您在 TypingMind 中配置的其他模型使用 Synabun,而无需为每个模型单独配置 MCP 服务器。

为什么在 TypingMind 中使用 Synabun MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是优秀的大语言模型聊天前端之一。连接 Synabun 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 Synabun MCP 连接到 TypingMind?

Synabun 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

Synabun MCP 在 TypingMind 中提供哪些工具?

Synabun 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 Synabun MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行掌控模型提供商、API 密钥、提示词和 MCP 配置。如果 Synabun 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇