npm mindbase-mcpstdioMITupdated 15d ago
An open-source implementation of Andrej Karpathy's LLM Wiki idea: an AI that builds and maintains a wiki from your sources. Not RAG-in-a-vector-DB. A real markdown wiki on your disk, that an LLM gardens for you between conversations.
O que dΓ‘ para fazer com mindbase?
MindBase β Karpathy's LLM Wiki, as a product
An open-source implementation of Andrej Karpathy's LLM Wiki idea: an AI that builds and maintains a wiki from your sources. Not RAG-in-a-vector-DB. A real markdown wiki on your disk, that an LLM gardens for you between conversations.
npx mindbase-app
One command: starts the local server, opens the web app, and walks you through picking a free local model that fits your RAM. No API key, nothing leaves your machine. (Node 20+)
MindBase implements Andrej Karpathy's LLM-Wiki pattern: you feed it sources (papers, articles, thoughts); the LLM reads, cross-references, flags contradictions, and writes structured wiki pages. Later, when you ask a question, the wiki already has the synthesized answer β no vector-search re-derivation at query time.
Status: Early access, actively developed. What's new: CHANGELOG Β· Releases
Why MindBase
You read a lot. Papers, articles, tweets, docs. You want to remember them, connect them, form opinions from them. Today you have two bad options:
- Notion / Obsidian / Roam: Passive containers. You do all the organizing. AI features are bolted-on generation, not maintenance.
- NotebookLM / Perplexity Pages / ChatGPT search: RAG-based. Nothing accumulates. Every question re-derives the answer from raw sources.
MindBase is the third option: the LLM actively maintains a persistent, structured wiki as you feed it sources. Knowledge compounds. Your context.md gets sharper every time you contribute. The AI remembers you across sessions because your beliefs are written down in markdown files β not stored in a chat history that gets summarized away.
Think of it as a personal Wikipedia that an AI intern writes for you, kept up to date, cross-referenced, and honest about what it doesn't know.
How it works (30 seconds)
Three physical layers on disk (Karpathy's model):
| Layer | Who owns it | What lives there |
|---|---|---|
sources/ |
You β append-only, the AI never rewrites it | Quick captures, full notes, PDFs, URLs |
context.md + sources/research/ |
The AI β every change human-approved | The maintained wiki: synthesis, concept pages, [[wikilinks]] |
state/ Β· logs/ Β· artifacts/ |
Derived β always rebuildable | Search index, snapshots, lint findings, op history |
Three operations run the loop: ingest (AI reads a source, discusses takeaways, you approve the wiki updates), build (regenerate context.md from everything unbuilt), lint (the AI audits its own wiki for contradictions, stale claims, and orphans).
What makes it different
- The AI asks before writing. Every ingest shows takeaways + a checkbox plan; only what you approve gets written. No black-box edits to your knowledge.
- You can watch the wiki absorb your notes. Every note carries a status chip β β¨ Add to wiki until digested, β In wiki after.
- It audits its own knowledge. One command re-reads the whole wiki and reports contradictions with the exact conflicting sentences quoted. Notion and NotebookLM structurally cannot do this.
- Free and local by default. Hardware-detect wizard installs the best Ollama model for your RAM. Cloud keys optional.
- Plain markdown on disk. Grep it, git it, open it in Obsidian, leave anytime.
Install
Browser (fastest): npx mindbase-app β shown above. Everything runs locally at localhost:4321.
Claude Code (flagship): the full Karpathy 8-step ingest with sub-agents, slash commands, and per-agent tool boundaries:
/plugin marketplace add frankchu91/mindbase-llm-wiki
/plugin install mb@mindbase
Restart when prompted, then type / β you should see /mb:contribute, /mb:build, /mb:ask, /mb:lint and 8 more. You get 5 sub-agents with strict tool allowlists (the builder has no file-write tool at all β only an atomic-write MCP call), plus a SessionStart hook that auto-injects your project context.
Add to ~/.cursor/mcp.json:
{ "mcpServers": { "mindbase": { "command": "npx", "args": ["-y", "mindbase-mcp"] } } }
Restart Cursor β the tool picker should list mindbase_contribute and 48 others. Recommended: add a conventions block to ~/.cursor/rules.md so the LLM reliably routes "add to mindbase X" to the tools β copy it from the guide.
Cascade settings β MCP β add:
{ "mcpServers": { "mindbase": { "command": "npx", "args": ["-y", "mindbase-mcp"] } } }
Same rules-file approach as Cursor works for Cascade.
Cline settings β MCP Servers:
{ "mcpServers": { "mindbase": { "command": "npx", "args": ["-y", "mindbase-mcp"] } } }
Cline auto-detects; every tool call gets a confirmation dialog by default.
~/.continue/config.json, under experimental.modelContextProtocolServers:
{ "experimental": { "modelContextProtocolServers": [ { "transport": { "type": "stdio", "command": "npx", "args": ["-y", "mindbase-mcp"] } } ] } }
MCP tools appear under @ in chat.
Point it at npx -y mindbase-mcp as a stdio server. See your client's MCP docs for the config location.
Next: create your first project and learn the four daily workflows in the Guide β
The web UI
Since 0.3 the browser app stands on its own β write notes in a full WYSIWYG editor (Cmd+N), quick-capture from anywhere (Cmd+I), and run the AI operations with approval cards: /contribute, /build, /lint, /research. Live demos on the website.
Free local models: the setup wizard detects your hardware and installs what fits β llama3.2:3b (8GB), qwen3:14b (24GB+), or Meta's Muse Glimmer 30B (32GB+ Apple Silicon, Ollama β₯ 0.32.7). Measured guidance: qwen3:14b for interactive work (~30s), Glimmer for background lint/build β slower, but its findings quote the exact conflicting sentences. The model switcher on the chat composer flips between them in two clicks.
| Feature | Claude Code | Cursor / Windsurf / Cline / Continue | Web UI |
|---|---|---|---|
Slash commands (/mb:*) |
β | β (use natural language) | β
(/contribute, /build, /lint, /research) |
| MCP tools directly | β | β | β |
| Karpathy 8-step ingest with approval | β (sub-agents) | β οΈ Manual via prompt | β (approval cards) |
| Contribute / ingest PDF & URL | β | β | β (upload + β¨ Process) |
| Ask wiki with cited answers | β | β | β |
| Build / health check | β | β | β |
| Wiki tree browsing + rich editor | β | β | β |
-p project-id routing |
β | β οΈ natural language | β (switcher) |
Where your data lives
Everything is plain markdown under ~/mindbase-data/ (override: MINDBASE_DATA_DIR):
~/mindbase-data/projects/my-research/
βββ README.md # Ops manual β you edit, LLM reads
βββ context.md # Synthesized truth β LLM writes, you approve
βββ index.yaml # Auto-generated catalog
βββ sources/
β βββ contributors/<you>/ # Your dated entries + notes (append-only)
β βββ research/ # LLM-authored wiki pages
β βββ raw/ # PDFs, HTML captures
βββ logs/ # Chronological operation log
βββ artifacts/ # Briefs, exports, lint findings
βββ state/builder/snapshots/ # context.md snapshots for rollback
No proprietary database β what you see on disk is what MindBase knows. git init it, back it up with anything, delete a project with rm -rf.
Architecture at a glance
Claude Code / Cursor / any MCP editor Web UI (npx mindbase-app)
β MCP Β· sub-agents with β /commands Β·
β per-agent tool allowlists β approval cards
βββββββββββββββ¬ββββββββββββββββββββββββββ¬βββββββ
βΌ βΌ
ββββββββββββββββββββββββββββββββββββββββββββββββ
β One ops engine: gather context β single β
β constrained JSON completion β human β
β approval β whitelisted executors β log β
βββββββββββββββββββββββ¬βββββββββββββββββββββββββ
βΌ
~/mindbase-data/ Β· plain markdown
(LLM: Ollama local models or any cloud key)
Monorepo: packages/core (TS strict library) Β· apps/mcp (49-tool MCP server) Β· apps/server + apps/web (Express + React UI) Β· apps/app (npx launcher) Β· apps/plugin (Claude Code bundle).
Docs & help
- Guide β first project, the four daily workflows, multi-project routing, troubleshooting
- Website β live demos
- CHANGELOG Β· Issues β I reply to every issue same-day during beta
- The idea: Karpathy's LLM Wiki gist
Roadmap
Next: browser extension for one-click page capture Β· audio input via Whisper Β· unified meta-tool for Cursor/Windsurf slash-like UX. Later: team projects with human-in-the-loop review Β· audio digests Β· desktop app Β· mobile capture.
Feedback
Beta through 2026-Q4. If you tried MindBase and gave up β please tell me why: issues or haobing0304@gmail.com. The blockers you hit are gold.
License
MIT β do what you want, no warranty. If you build something interesting on top, I'd love to hear about it.
Built with the belief that AI's most valuable gift is not "generation on demand" but "gardening of a persistent artifact you own."
InstalaΓ§Γ£o
Adicione mindbase ao seu cliente. Escolha o que vocΓͺ usa.
claude mcp add mindbase-mcp -- npx -y mindbase-mcpcodex mcp add mindbase-mcp -- npx -y mindbase-mcpamp mcp add mindbase-mcp -- npx -y mindbase-mcp{
"mcpServers": {
"mindbase-mcp": {
"command": "npx",
"args": [
"-y",
"mindbase-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"mindbase-mcp": {
"command": "npx",
"args": [
"-y",
"mindbase-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"mindbase-mcp","command":"npx","args":["-y","mindbase-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"mindbase-mcp": {
"command": "npx",
"args": [
"-y",
"mindbase-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"mindbase-mcp": {
"command": "npx",
"args": [
"-y",
"mindbase-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"mindbase-mcp": {
"command": "npx",
"args": [
"-y",
"mindbase-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"mindbase-mcp": {
"type": "local",
"command": "npx",
"args": [
"-y",
"mindbase-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"mindbase-mcp": {
"command": {
"path": "npx",
"args": [
"-y",
"mindbase-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y mindbase-mcpRun `goose configure`, choose **Add Extension β Command-line Extension**, and paste this command.
PontuaΓ§Γ£o
39 / 100
Incompleta
- DocumentaΓ§Γ£o25/25
- ManutenΓ§Γ£o19/25
- ConfianΓ§a13/20
- Capacidade0/15
- InstalaΓ§Γ£o12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 7 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint β no local install
HistΓ³rico de versΓ΅es
| VersΓ΅es | Publicada |
|---|---|
| 0.1.3Mais recente | 25 de jul. de 2026 |
| 0.1.2 | 21 de jul. de 2026 |