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 集成