worldbrain-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@worldbrain-mcpFind the best path from CHARGE to C, avoiding A if possible"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
世界大脑 WorldBrain — Auditable Reasoning MCP Service
The transparent decision-making brain driving all embodied devices. Encapsulates "world graph → A* auditable reasoning → physical carrier execution → learning feedback" as a standard MCP (Model Context Protocol) stdio service, letting any AI agent connect by simply copying a config.
Zero dependencies · Zero server · Free distribution to AI Agents. Uses only Node.js built-in modules, with the kernel and 世界大脑.html as a single source of truth.
0. Installation (Passive Customer Acquisition Entry)
npm install -g worldbrain-mcp # 全局安装,自带 bin
npx worldbrain-mcp --selftest # 免安装验证Source / Issues: https://github.com/genesis-plan/worldbrain-mcp
Any MCP-capable client (Claude Desktop / Cursor / Cline, etc.) can connect by copying the config below — no web page, no server required.
Related MCP server: gbrain
1. What It Is
世界大脑 exposes an "auditable reasoning" capability to external agents:
Capability | Corresponding Tool | Description |
Scene awareness |
| First inspect the world graph structure, or import your own scene (mosquito zapper is just the default example) |
Auditable reasoning |
| A* optimal path + rationale for each step + honest marking of undecidable regions 𝕌 |
Physical carrier integration |
| Carrier reports battery/density, automatically generating hard/soft constraints |
Learning loop |
| Execution reward → confidence update; experience base queryable and extendable |
Deterministic, no hallucination: reasoning/auditing/learning all happen in the local kernel, not through an LLM. The free LLM (OpenRouter :free) is only used for the web version's "natural language → structured state" perception (see 世界大脑.html); the MCP layer depends on no external API.
2. File List
File | Purpose |
| The MCP service itself (stdio, zero dependencies) |
| Single-file demo + internal control kernel (MCP extracts and reuses the kernel from this) |
| This integration guide |
When deploying,
worldbrain-mcp.jsand世界大脑.htmlmust be in the same directory (or set theWORLDBRAIN_HTMLenvironment variable to point to the html).
3. Quick Integration (3 Client Types)
1. Claude Desktop
Edit claude_desktop_config.json:
{
"mcpServers": {
"worldbrain": {
"command": "node",
"args": ["C:/你的路径/世界大脑/work/worldbrain-mcp.js"]
}
}
}2. Cursor / Cline / Any MCP-capable Client
Add to the MCP configuration:
{
"mcpServers": {
"worldbrain": {
"command": "node",
"args": ["/abs/path/to/worldbrain-mcp.js"]
}
}
}3. Command-Line Self-Test (Verify the Server Runs)
node worldbrain-mcp.js --selftest
# 输出:SELFTEST OK — 全部 N 项工具验证通过4. Tool Interface (Called by External Agents)
world_info() → Current world graph structure
{ "nodes": ["CHARGE","A","B","C"], "edgeCount": 10, "edges": [...] }set_world({nodes, edges, coord?}) → Import your scene
{
"nodes": ["S","A","B","T"],
"edges": [{"from":"S","to":"A","w":2},{"from":"A","to":"T","w":3}],
"coord": {"S":[0,0],"A":[3,0],"T":[6,0]}
}→ { "ok": true, "nodes": ["S","A","B","T"], "edgeCount": 2 }
reason({start?, goal, hard?, soft?}) → Auditable optimal path
{ "start": "CHARGE", "goal": "C", "hard": ["A"], "soft": ["B"] }→ { "status":"optimal", "path":["CHARGE","B","C"], "cost":6, "steps":[...], "note":"..." }
Honestly returns when undecidable:
{ "status":"unknown", "U": true, "reason":["目标不在世界图"] }carrier_report({battery?, goal, density?}) → Physical carrier constraints
{ "battery": 100, "goal": "A", "density": {"A":8,"B":3,"C":5} }→ { "battery":100, "hard":[], "soft":["B"], "note":"电量充足" }
When battery <20,
hard:["A","B","C"](forbidden to leave the charging dock).
audit({start?, goal, hard?, soft?}) → Five-section audit report
{ "summary": {...}, "details": [...], "evidence": [...], "constraints": [...], "unknown": [], "status": "valid" }learn({path, success}) → Learning loop
{ "path": ["CHARGE","A","C"], "success": true }→ { "updated":[{"transition":"CHARGE→A","confidence":0.6}], "knowledgeBaseSize": 5 }
knowledge_query({from?, to?}) / knowledge_add({from, to, success?, confidence?, source?})
Query and add to the experience base.
5. Minimal Call Example (Agent Perspective)
1. 调用 world_info() → 了解当前场景有哪些节点
2. 调用 set_world(我的场景) → (可选)换成你自己的物理载体/任务图
3. 调用 carrier_report(电量,目标,密度) → 载体上报,拿到硬/软约束
4. 调用 reason(起点,目标,硬,软) → 得到可审计最优路径
5. 载体按 path 执行
6. 调用 learn(执行路径, 成功?) → 置信度更新,越用越准6. Honest Boundaries (Per Product Wording, No Fabrication)
Deterministically implemented: reasoning (A*+constraints), auditing (five-section rationale chain), knowledge base (experience + confidence), learning (single-step feedback), physical carrier integration, MCP integration.
Documented but currently not implemented (TODO stubs in code, no jargon piled on to fake implementation):
Perceptual Banach fixed-point belief convergence (Layer1)
PAC learning sample complexity bounds / knowledge distillation (Layer2/6)
do-calculus causal discovery (Layer5)
World model / counterfactual reasoning (Layer2 extension)
Hoare logic formal verification (Layer7 upgrade)
LSH / vector similarity retrieval (Layer3, currently exact array matching)
Provable within mathematical fidelity: on a finite world graph with an admissible Euclidean heuristic, A* is complete and optimal (finds the optimal path, or honestly marks 𝕌).
7. License and Distribution
Free, open source, distributed to AI Agents. Suitable for software copyright / patent materials and passive customer acquisition scenarios.
This server cannot be deployed
Maintenance
Related MCP Connectors
Persistent memory, hybrid search and a goal graph for AI agents, over stdio or remote HTTP.
Governed personal world model and memory for your AI agent. Pair once, connect over MCP.
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
- UnifAPIOAuthcom.unifapi
Hosted MCP server for live public-data APIs and Skills for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceA universal MCP server providing persistent, structured memory through a knowledge graph with graph storage, semantic vector search, and multi-hop traversal for AI agents and IDEs.24 PyPI1MIT
- AlicenseNot gradedqualityCmaintenanceA local-first compiled knowledge graph MCP server that provides structured memory for AI agents with full-text search, vector embeddings, and timeline tracking.214 npm8MIT
- AlicenseNot gradedqualityDmaintenanceProvides a stdio MCP bridge for coding agents to query and record engineering knowledge locally, preserving debugging history, failed attempts, and verified solutions.0MIT
- AlicenseNot gradedqualityBmaintenanceA lightweight, self-hostable MCP server for shared memory, structured command relay, and traceable decision evidence across AI runtimes.1MIT