io.github.photoxpedia/bolor-brain-mcp

السجل الرسمي الذكاء الاصطناعي والوكلاء

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

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

NPM package bolor-brain-mcp
Claude Code
claude mcp add bolor-brain-mcp -e 'BRAIN_USE_SQLITE=<BRAIN_USE_SQLITE>' -e 'BRAIN_LOG_LEVEL=<BRAIN_LOG_LEVEL>' -- npx -y bolor-brain-mcp@1.1.0
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "bolor-brain-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "bolor-brain-mcp@1.1.0"
            ],
            "env": {
                "BRAIN_USE_SQLITE": "<BRAIN_USE_SQLITE>",
                "BRAIN_LOG_LEVEL": "<BRAIN_LOG_LEVEL>"
            }
        }
    }
}

متغيرات البيئة

  • BRAIN_USE_SQLITE Enable SQLite storage (default: true)
  • BRAIN_LOG_LEVEL Log level (default: INFO)

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. Bolor Brain MCP
  2. What Is This?
  3. Quick Start
  4. MCP Tools (11)
  5. Skills (6)
  6. Persistence
  7. With NSAF
  8. Testing
  9. Project Structure
  10. Author
  11. License

Bolor Brain MCP

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


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
git clone https://github.com/photoxpedia/bolor-brain-mcp.git
cd bolor-brain-mcp
pip install -e .
2. Configure Claude Code

Add to ~/.claude/mcp-config.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:

{
  "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

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 engines
skills/                          # Claude Code skills
  reason.md, debug.md, decide.md, learn-from.md, nsaf.md, orchestrate.md
tests/                           # 376 tests
AGENT_GUARDRAILS.md              # Production safety guidelines

Author

Bolorerdene Bundgaa

  • Website: bolor.me
  • Email: bolor@ariunbolor.org

License

MIT -- see LICENSE

الأسئلة الشائعة

ما هو io.github.photoxpedia/bolor-brain-mcp؟

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

كيف أثبّت io.github.photoxpedia/bolor-brain-mcp؟

يعمل على جهازك. في Claude Code: claude mcp add bolor-brain-mcp -e 'BRAIN_USE_SQLITE=<BRAIN_USE_SQLITE>' -e 'BRAIN_LOG_LEVEL=<BRAIN_LOG_LEVEL>' -- npx -y bolor-brain-mcp@1.1.0. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج io.github.photoxpedia/bolor-brain-mcp إلى مفتاح API؟

لا يذكر إدراجه في السجل أي مفتاح أو سر إلزامي. قد تتطلب بعض الميزات حسابًا لدى الخدمة التي يتصل بها.

هل io.github.photoxpedia/bolor-brain-mcp مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون io.github.photoxpedia/bolor-brain-mcp؟

ينشره photoxpedia. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.