
Brainy
io.github.memokar由 GitHub 帳號 memokar 發布v0.2.0更新於 Nov 4, 2026
Shared knowledge base + task queue so Claude, ChatGPT and other agents can work together safely.
發布方自己的服務:Brainy Prices — UAE Cost of Living
概覽
自架的共享知識庫與任務佇列,讓多個 AI 代理讀取同一份 Markdown 知識、以原子方式領取任務並留下稽核紀錄。
- 可以做什麼
- 讀取與檢索知識:列出、取得、搜尋、寫入與附加 Markdown 文件,或提出寫入提案等待人工核准
- 管理任務:建立、領取、續約、完成、失敗與釋放任務,支援相依性、優先順序與審核/核准/拒絕
- 保留資源:依空間對自由格式的資源鍵進行領取、續約、釋放與列出,採原子租約
- 管理存取與維運:空間、角色、各空間 ACL、服務權杖、OAuth 2.1 連接器、網頁管理介面與稽核日誌
- 適用情境
- 當多個代理(Claude、ChatGPT、機器人)或人類需要共用同一份事實來源並互相交接工作時適用,可避免彼此覆寫檔案或重複領取同一任務。適合希望自架、依區域授權、人工核准並保留稽核軌跡的情境。
- 執行需求
- 以本機 Docker 容器(映像 ghcr.io/memokar/brainy)執行,或在實體機器上使用 Python 3.10+(無第三方相依套件)。用戶端透過 /mcp 的 streamable HTTP 端點或 stdio 子程序連線,並在 Authorization 標頭帶上首次啟動時僅列印一次的服務權杖。遠端連接器需要 HTTPS 與 OAuth 2.1 設定;持久化資料需要掛載磁碟區或資料庫與知識目錄路徑。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Brainy,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Brainy
[CI] [License: AGPL-3.0] [Dependencies: none]
A shared brain for your AI agents — and for the humans who work with them.
Brainy is a self-hosted knowledge and task backbone that Claude, ChatGPT and any other MCP-capable AI connect to through one controlled endpoint. Every agent reads the same knowledge, works on the same task list and leaves an audit trail — so your AIs can hand work to each other instead of living in separate chat silos.
Why Brainy?
- AIs that collaborate. ChatGPT creates a task, Claude claims it, does the work and writes the result back; a human reviews. Coordination happens through tasks — no hidden agent-to-agent magic.
- One source of truth. Knowledge lives as plain Markdown in a Git repository. Every write is a commit, so you get history, diffs and rollback for free.
- Safe by default. No shell, no filesystem, no eval over MCP. Path allowlist, per-space ACLs, secret detection on writes, rate limits, hashed tokens and an append-only audit log.
- No double work. Atomic task claims with leases and claim tokens guarantee that two agents never process the same task at the same time.
- Human in the loop. Agents can propose knowledge changes; a human approves or rejects them (web UI or Telegram). Tasks can require review/approval before they count as done.
- Zero dependencies. Pure Python standard library + SQLite. No pip install, tiny attack surface.
Why not just a markdown file?
A shared notes file in a Git repo is a great knowledge store — and Brainy keeps that part on purpose: knowledge is plain Markdown in Git, with history, diff and rollback. The problem is everything a bare file doesn't do once more than one agent touches it:
- Two agents overwrite each other. Nothing serializes concurrent writes to the same file.
Brainy writes go through optimistic concurrency (
expected_git_commit) plus a server-side write lock: exactly one writer commits, the others get aConflictand re-read — no lost edits. - No task hand-off. A file can list TODOs, but it can't stop two agents from grabbing the same
one. Brainy tasks use an atomic claim (
UPDATE ... WHERE status='READY', one row): exactly one agent wins, the rest get a conflict and move on. - No per-area permissions. A file is all-or-nothing. Brainy has Spaces with per-space ACLs, so an agent only reads/writes the areas you grant it.
- No approval step. Agents can propose changes for a human to approve (web UI or Telegram) instead of writing straight to the source of truth.
- "Who changed what?" beyond
git blame. Every action — reads of task state, claims, writes, rejections — lands in an append-only audit log enforced by a DB trigger.
Both guarantees above are covered by a concurrency test
(tests/test_concurrency.py): 20 threads racing on one task yield
exactly 1 winner and 19 conflicts, and 20 threads writing the same file yield exactly 1
commit and 19 conflicts, with the repo left clean.
How is Brainy different?
Honest comparison with the tools people mention most. Beads is closest to Brainy's task side, and Central Brain to its knowledge side; neither is a one-to-one match. Facts are from each project's own docs (links below); where something isn't documented, it says so rather than guessing.
Features
Quickstart (Docker)
Try it in one command — no clone, no setup. Runs a throwaway demo (temporary database + example knowledge, deleted on exit) as an MCP stdio server:
For a real install, run the server (prebuilt image, published on every release):
Or build it yourself with Compose:
Brainy now listens on http://127.0.0.1:8765 (MCP endpoint: /mcp, admin UI: /admin — log in
with the token). For remote AI connectors put it behind HTTPS (see
deploy/nginx-brainy.conf.example) and set BRAINY_PUBLIC_BASE_URL.
Quickstart (bare metal, Linux, Python ≥ 3.10)
Connecting an AI
- Claude Code:
- Local stdio clients (e.g. Claude Desktop): run Brainy as a subprocess:
Try it without any setup:
python3 scripts/stdio.py --demo(temporary data, deleted on exit). - Any other MCP client with custom headers: endpoint
https://<your-host>/mcp, headerAuthorization: Bearer <service token>. - Claude.ai / ChatGPT remote connectors: use the OAuth 2.1 flow (discovery at
/.well-known/oauth-authorization-server). SetBRAINY_PUBLIC_BASE_URLto your HTTPS URL.
Brainy is listed in the official MCP Registry as
io.github.memokar/brainy.
Give each AI its own principal (e.g. claude, chatgpt) with role AGENT and only the spaces it
needs. Every action then shows up in the audit log under that name.
Example: two coding agents in one repo
Two agents working the same repository can step on each other's files. With resource claims each one reserves the area it's about to touch — a free-form key per space — and the other backs off until it's released or the lease expires:
Same guarantee as task claims — exactly one holder at a time, expired leases free up automatically
(see tests/test_resources.py). Resource claims reuse the task
permissions/scopes (can_claim_tasks / brainy:tasks:write), so any agent that can claim tasks can
claim resources.
Configuration
All configuration comes from environment variables — see .env.example.
Secrets (tokens, keys) are never stored in the repository or the knowledge base.
Extensions
The core ships a worker plugin interface and a deterministic MockWorker. Real workers that let
agents execute tasks autonomously (e.g. Claude Code, Codex) are separate extensions loaded via
BRAINY_WORKER_PLUGINS. See docs/extensions.md.
Running the tests
Status & roadmap
Brainy runs in production for its author. Current limitations:
- Code comments are still partly German; all user-facing text is English.
- Single-node design (SQLite). PostgreSQL only if real multi-writer load appears.
License
Copyright (C) 2026 Mehmet Karakolcu
Brainy is dual-licensed:
- Open source: GNU AGPL-3.0. Free for everyone, including companies — but if you modify Brainy and offer it to others (also as a network service), you must publish your changes under the AGPL.
- Commercial license: for companies that want to use or embed Brainy without AGPL obligations. See COMMERCIAL.md.
Contributions require agreeing to the Contributor License Agreement.
Footnotes
-
Beads — https://github.com/steveyegge/beads (MIT, Go; stores issues in Dolt, a version-controlled SQL database; earlier versions used SQLite + JSONL). ↩
-
Central Brain by NeuroAIgent — https://neuroaigent.ai (local-first AI memory, Windows + Apple-silicon macOS, MCP integration; pricing per the site at time of writing: $12/mo solo, $35/mo for 4 licenses). ↩
來源:README.md,提交 96783ee
工具
0版本歷史
3- v0.2.0最新Oct 7, 2026
- v0.1.1Oct 7, 2026
- v0.1.0Oct 6, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分