Bolor Brain Mcp

io.github.photoxpedia由 GitHub 帳號 photoxpedia 發布v1.1.0更新於 Oct 24, 2026

Cognitive architecture MCP server with memory, learning, and contextual understanding

發布方自己的服務:BrainDog

已驗證STDIO僅桌面知識與記憶AI 與機器學習

概覽

AI 產生的概覽

一個本機 MCP 伺服器,為助理提供結構化推理引擎以及持久化記憶與學習能力,資料以 JSON 形式保存在使用者電腦上。

可以做什麼
執行六種推理方式:混合自動選擇、符號鏈式推理、知識圖譜走訪、基於案例的比對、假設檢定與類比遷移,另有統計工具顯示已存案例、事實、節點與邊的數量。儲存、檢索與刪除案例、事實及知識圖譜節點或邊,並記錄問題、解決方案與結果供日後回想。將大腦狀態持久化到本機目錄,讓已解決的問題在後續工作階段中可被回想。
適用情境
適合希望助理深入分析複雜問題、系統化除錯或依證據做技術決策,並在多次工作階段間累積可重用案例與事實的情境。它只是思考層,需搭配已能處理檔案與執行的助理使用。
執行需求
以本機 stdio 程序執行;README 透過複製儲存庫並以 pip 安裝、設定為 Python 模組,清單則列出以 npx 執行的 npm 套件。選用環境變數 BRAIN_LOG_LEVEL 與 BRAIN_USE_SQLITE。未宣告身分驗證。
安裝前請注意
它會把持久狀態寫入本機目錄,forget 工具會依 ID 刪除已存案例或事實。README 的安裝步驟會複製並安裝第三方儲存庫的程式碼,執行前請先審查。不要求任何憑證。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Bolor Brain Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Bolor Brain MCP

Pure intelligence for Claude Code. Reasoning, memory, and learning -- nothing else.

[License: MIT] [Python 3.11+] [MCP Compatible]


What Is This?

Bolor Brain is an MCP server that gives Claude Code a brain: structured reasoning, persistent memory, and learning from experience.

User --> Claude Code (Gateway + Executor)              |         +----+----+    Bolor Brain   NSAF      (MCP)       (MCP)      THINK       EVOLVE
  • Claude Code = Gateway + tool execution + sessions + permissions
  • Bolor Brain = Reasoning engines + memory + learning + persistence
  • NSAF = Strategy evolution + self-improvement (separate MCP server)

Bolor Brain does NOT execute anything. No file ops, no scheduling, no autonomous loop. Claude Code already does all of that. Bolor Brain only thinks.


Quick Start

1. Install

bash
git clone https://github.com/photoxpedia/bolor-brain-mcp.gitcd bolor-brain-mcppip install -e .

2. Configure Claude Code

Add to ~/.claude/mcp-config.json:

json
{  "mcpServers": {    "bolor-brain": {      "command": "python",      "args": ["-m", "mcp_server"],      "cwd": "/path/to/bolor-brain-mcp"    }  }}

3. Use

/reason Why is Python popular for data science?/debug API returns 500 errors under load/decide PostgreSQL or MongoDB for our app?/learn-from We fixed the memory leak by increasing connection pool

MCP Tools (11)

Reasoning (6)

ToolWhat It Does
reason_hybridAuto-selects best reasoning approach for any query
reason_symbolicForward/backward chaining with facts and rules
reason_knowledge_graphGraph traversal, path finding, relationship exploration
reason_case_basedFind similar past problems and their solutions
reason_hypothesisGenerate and test hypotheses from observations
reason_analogicalCross-domain pattern transfer (atom ~ solar system)

Memory (4)

ToolWhat It Does
rememberStore a case, fact, node, or edge
recallRetrieve matching cases or facts
learnStore problem/solution/outcome (shortcut for remember)
forgetDelete a case or fact by ID

Utility (1)

ToolWhat It Does
brain_statsCases, facts, nodes, edges count

Skills (6)

SkillWhen To Use
/reasonDeep analysis of any complex problem
/debugSystematic bug hunting with hypothesis testing
/decideEvidence-based technical decisions
/learn-fromStore experiences for future use
/nsafNSAF evolution integration (requires NSAF MCP)
/orchestrateMeta-orchestration combining Bolor Brain + NSAF

Persistence

Brain state persists to ~/.bolor-brain/ as JSON:

~/.bolor-brain/  cases.json       # Problem -> solution -> outcome  facts.json       # Symbolic reasoning facts  knowledge.json   # Knowledge graph (nodes + edges)

Knowledge compounds over time. Solve a bug once, recall the solution instantly next time.


With NSAF

Add NSAF to get evolution capabilities:

json
{  "mcpServers": {    "bolor-brain": {      "command": "python",      "args": ["-m", "mcp_server"],      "cwd": "/path/to/bolor-brain-mcp"    },    "nsaf": {      "command": "python3",      "args": ["nsaf_mcp_server.py"],      "cwd": "/path/to/nsaf",      "env": { "PYTHONPATH": "/path/to/nsaf" }    }  }}

Together: Bolor Brain reasons about WHAT to do. NSAF evolves HOW to do it better. Claude Code executes.

See skills/nsaf.md and skills/orchestrate.md for combined workflows.


Testing

bash
pytest tests/ -v# 376 tests

Project Structure

mcp_server.py                    # MCP server (11 tools)persistence.py                   # JSON persistence to ~/.bolor-brain/modules/  config.py                      # Configuration  reasoning_engines/    symbolic_reasoner.py          # Forward/backward chaining    knowledge_graph.py            # Graph-based knowledge    case_based_reasoner.py        # 4R cycle (retrieve, reuse, revise, retain)    hypothesis_engine.py          # Hypothesis generation and testing    analogical_reasoner.py        # Cross-domain pattern transfer    hybrid_reasoner.py            # Orchestrates all 5 enginesskills/                          # Claude Code skills  reason.md, debug.md, decide.md, learn-from.md, nsaf.md, orchestrate.mdtests/                           # 376 testsAGENT_GUARDRAILS.md              # Production safety guidelines

Author

Bolorerdene Bundgaa

License

MIT -- see LICENSE

來源:README.md,提交 d798c20

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.1.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Brain 整合