MindBase
This server is the MCP backend for MindBase, an LLM-maintained personal wiki. It lets you search, read, write, synthesize, and maintain a persistent knowledge base of plain-markdown wiki pages, with graph awareness, spaced repetition, RSS ingestion, project management, and conversational ingest workflows.
Search & retrieval – full-text (
search_wiki), cross-project (search_all_projects), semantic (semantic_search), project-scoped (search_in_project), and natural-language Q&A with citations (ask_wiki).Read & navigate wiki – view full page with links/backlinks (
read_wiki_page), list recent pages (list_recent), find related pages (find_related), export a subgraph (export_subgraph).Write & edit notes – create notes from templates or raw markdown (
create_note,create_daily_note), append/replace sections (append_to_page,update_note_section), tag and set visibility (tag_note,set_visibility), save chat excerpts (save_chat_excerpt), quick-capture to inbox (quick_capture).Ingest sources – one-shot ingest (
ingest_source), conversational two-step plan/execute (ingest_plan/ingest_execute), ingest files/URLs (mindbase_ingest_file), archive raw docs.Synthesis & analysis – synthesize a topic with contradictions/gaps (
synthesize_topic,find_contradictions,find_gaps), wiki health checks (run_wiki_health,get_graph_insights,find_orphans,suggest_links), daily brief/pulse (generate_daily_brief,get_pulse).Spaced repetition – list/answer review cards (
list_review_cards,answer_card) and create cards (create_card).RSS feeds – subscribe, list feeds (
add_rss_feed,list_feeds).Chat history – list/recall past chats (
list_chats,recall_chat).Project management – init/load/validate projects (
mindbase_init_project,mindbase_load_project,mindbase_validate_structure), migrate legacy layout (mindbase_migrate), status dashboard (mindbase_status), rebuild index (mindbase_rebuild_index), atomic context.md writes (mindbase_atomic_write_context), gather modified sources (mindbase_gather_sources), append log entries (mindbase_append_log), contribute entries (mindbase_contribute), save research (mindbase_research_save), export portable bundles (mindbase_export), apply schema templates (mindbase_apply_template).
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-appOne 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.
Related MCP server: vault-mcp
How it works (30 seconds)
Three physical layers on disk (Karpathy's model):
Layer | Who owns it | What lives there |
| You — append-only, the AI never rewrites it | Quick captures, full notes, PDFs, URLs |
| The AI — every change human-approved | The maintained wiki: synthesis, concept pages, |
| 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@mindbaseRestart 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 ( | ✅ | ❌ (use natural language) | ✅ ( |
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 | ❌ | ❌ | ✅ |
| ✅ | ⚠️ 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 rollbackNo 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."
Available Tools
50 toolsadd_rss_feedA
Subscribe MindBase to a new RSS feed. New entries are auto-fetched every 60 minutes and compiled into wiki pages. Use this when the user says things like "subscribe me to ", "follow this blog", "add this to my feeds", or shares a feed URL.
Inputs: url (required), tags, project.
answer_cardA
Submit an answer to a review card. Use ratings as: forgot (didn't know), hard (struggled), good (right answer with effort), easy (instant recall). After answering, the card is rescheduled according to SM-2.
Inputs: id (required), rating (required).
append_to_pageA
Append content to a section of an existing wiki page. Creates the section if missing. Refuses to modify human-edited pages unless force: true.
Inputs: slug (required), content (required), section (required), force.
ask_wikiA
Ask a natural-language question against the user's wiki. Performs graph-aware retrieval (search → top hits + their 1-hop wikilinks) and returns a cited answer using the configured LLM. Best tool for "what do I know about X?" questions. The answer text contains [N] citation markers — match each N to the corresponding entry in the citations array and render as a clickable link to mindbase_uri.
Inputs: question (required), max_pages, context_pages.
create_cardA
Create a new review card manually. Use this when you and the user have just discussed a fact worth remembering long-term, e.g. "add this to my reviews". The card will be scheduled for review immediately.
Inputs: answer (required), question (required), tags, source_slug.
create_daily_noteA
Open or create the daily note for today (or a specific date). Daily notes follow the slug pattern daily-YYYY-MM-DD and are auto-linked to yesterday/tomorrow. Returns the existing page if already created, marking created: false.
Inputs: date.
create_noteA
Create a new wiki note. Use for: capturing a thought, starting a research page, or building a meeting/person/project page from a template. At least one of title or content is recommended. If template is given, it is filled with standard vars (date, time, slug, yesterday_slug, tomorrow_slug, title) plus any custom variables. Existing slugs cause an error — use append_to_page or update_note_section to extend.
Inputs: kind, slug, tags, title, +4 more.
export_subgraphB
Export a page + its connected neighbors (up to N hops) as a self-contained markdown bundle.
Inputs: slug (required), depth.
find_contradictionsA
Find self-contradictions in the wiki on a given topic. Returns only contradictions, no full synthesis. Useful when the user wants to reconcile evolving views.
Inputs: topic (required).
find_gapsB
Find gaps in the wiki's coverage of a topic. Returns LLM-suggested missing pieces (e.g., "you mention X but never document Y").
Inputs: topic (required).
find_orphansA
List wiki pages with no incoming links (orphans).
Inputs: no named parameters.
generate_daily_briefA
Generate a morning brief summarizing recent wiki activity with [N] citations. Default 24h lookback. Does not email — for that use the web UI Settings → Daily Brief → Send Now.
Inputs: since_hours, include_on_this_day.
get_graph_insightsB
Compute graph insights for the wiki: top hubs, orphans, broken links, fragmented tag clusters.
Inputs: no named parameters.
get_pulseA
Get today's (or a specific date's) wiki pulse: weekly writes, new connections, contradictions, stale notes, SRS due count. Use to give the user a daily situational awareness of their knowledge base.
Inputs: date, refresh.
ingest_executeA
Conversational ingest, step 2 of 2. Commits the user-approved subset of a plan returned by ingest_plan. approvals is a map of action id → boolean; omitted ids default to approved (true). Returns the per-action results plus a summary of what got created / updated.
Inputs: planId (required), approvals.
ingest_planA
Conversational ingest, step 1 of 2. Reads the source, returns the LLM's narrative takeaways and a structured plan of proposed actions — without writing anything yet. The user reviews the takeaways + plan, decides which actions to approve, and then calls ingest_execute(planId, approvals) to commit the approved subset.
Inputs: text, title, raw_id, source_url.
ingest_sourceA
Ingest a new source into the wiki: saves the raw text, runs LLM compile to create/update wiki pages, applies cross-linking. Returns a summary of changes.
Inputs: text (required), title, source_url.
list_chatsC
List recent chat sessions saved in MindBase, newest first.
Inputs: days, limit.
list_feedsA
List all RSS feeds the user is subscribed to, with stats (last poll time, items ingested, errors). Use this when the user asks "what feeds am I subscribed to?" or wants to check their RSS subscriptions.
Inputs: no named parameters.
list_recentA
List wiki pages added or updated within the past N days, newest first.
Inputs: days, limit.
list_review_cardsA
List spaced-repetition review cards. By default returns cards due now (due_only=true). Use this to conduct an interactive review session: list due cards, present each Q to the user, wait for their answer, call answer_card, repeat.
Inputs: limit, due_only.
mindbase_append_logA
Append a structured entry to logs/.md. Format: ## [YYYY-MM-DD HH:MM] {operation} | {topic} | {details}
Inputs: topic (required), operation (required), details, projectId.
mindbase_apply_templateA
Overlay a schema template onto an existing project. Appends template prose to README.md and seeds template-specific sections in context.md. Idempotent — re-running with same template is a no-op marker.
Inputs: templateId (required), projectId.
mindbase_atomic_write_contextA
Write new content into context.md atomically. Steps: (1) snapshot current context.md → state/builder/snapshots/.md, (2) tmpwrite + rename, (3) append log entry. Enforces 400-line cap by truncating overflow to sources/research/.md.
Inputs: content (required), projectId.
mindbase_contributeA
Append a contributor entry to the current project. Writes to sources/contributors//.md (append-only) plus log entry. Route mode forces routing: auto (LLM decides), daily (only contributor file), concept (also flag for /mb:build to extract concept), daily+concept (both).
Inputs: text (required), mode, user, projectId.
mindbase_exportA
Export a project to a portable artifact. markdown-bundle: copies project tree to artifacts/exports/-/. zip-archive: same plus zips (uses zip if available).
Inputs: target, projectId.
mindbase_gather_sourcesA
List contributor + research files modified since the last build (or since a given ISO date). Returns paths + sizes + mtimes. Used by /mb:build to know what to synthesize.
Inputs: since, projectId.
mindbase_ingest_fileA
Ingest a file (PDF, .md, or .txt) into a project: archives the original into sources/raw//, extracts text locally (pdfjs for PDFs — no API call), writes an .extracted.md sidecar for PDFs, and returns the text. Accepts a local absolute path OR an http(s) URL that points directly at a file (e.g. an arXiv PDF link) — URLs are downloaded first. After calling this, discuss the key takeaways with the user and file a summary via mindbase_contribute.
Inputs: path (required), title, projectId.
mindbase_init_projectA
Scaffold a new MindBase project with the v2 layout: README.md, context.md, index.yaml, sources/contributors/, sources/research/, sources/raw/, state/, logs/, artifacts/. Idempotent — refuses to overwrite existing project.
Inputs: name (required), mission, template.
mindbase_load_projectA
Load the README + context + index.yaml for a project (defaults to currentProjectId in config.json). Returns the three file bodies for context injection. Read-only by default; pass persist=true to also update config.json currentProjectId (i.e. switch the active project).
Inputs: persist, projectId.
mindbase_migrateA
Migrate one or all projects from legacy wiki/ layout to v2 layout. Snapshots to archive/-/ first; idempotent on re-run.
Inputs: all, user, dryRun, projectId.
mindbase_rebuild_indexA
Regenerate index.yaml by scanning the project tree. Always overwrites; never partial-merges. Output schema: { project, files, contributors, sources, last_build }.
Inputs: projectId.
mindbase_research_saveA
Save research findings to sources/research/.md. Appends if file exists; otherwise creates. Always appends a log entry.
Inputs: body (required), topic (required), sources, projectId.
mindbase_statusB
Project dashboard: last build time, line counts, contributor stats, recent operations, file counts. Read-only.
Inputs: projectId.
mindbase_validate_structureA
Validate that a project conforms to the v2 layout. Returns list of missing required files/dirs. Used as a precondition guard by /mb:build and /mb:migrate.
Inputs: projectId.
quick_captureA
Save content to the inbox for later batch processing (NOT a direct wiki note). Use this for "save this for later, I will categorize it myself in the MindBase UI". To create a wiki note directly, use create_note instead.
Inputs: content (required), tags.
read_wiki_pageA
Read the full content (markdown body + frontmatter + incoming/outgoing wikilinks) of a wiki page by its slug.
Inputs: slug (required).
recall_chatB
Search past saved chat conversations by content. Returns matching chats with previews.
Inputs: query (required), limit.
run_wiki_healthA
Run the full Wiki Health pipeline: build graph → generate insights → auto cross-link → L2 lint. Writes _insights.md and applies improvements.
Inputs: no named parameters.
save_chat_excerptA
Save a fragment of the current AI conversation as a wiki page. LLM auto-titles it if no suggested_title. Marks created_via: mcp for audit.
Inputs: content (required), source_chat_id, suggested_title.
search_all_projectsA
Search the user's wiki across EVERY project (not just the current one). Returns ranked matches with their owning project id, suitable for citing as [[<project>/<slug>]] cross-project wikilinks. Use this when answering open-ended "have I seen this before" questions or proposing cross-project bridges during ingest.
Inputs: query (required), limit, crossProjectOnly.
search_in_projectA
Search the wiki, restricted to pages tagged with a specific project (uses the project frontmatter field).
Inputs: query (required), project (required), limit.
search_wikiA
Full-text search across the user's MindBase wiki — matches page titles, one-liners, and slugs. Returns ranked list with snippets.
Inputs: query (required), limit.
semantic_searchB
Embedding-based semantic search across the wiki. Falls back to keyword search if embeddings are unavailable.
Inputs: query (required), limit.
set_visibilityB
Set the visibility level of a wiki page. "internal" and "pii" pages are excluded from semantic search and Q&A by default.
Inputs: slug (required), level (required).
suggest_linksA
Suggest wikilinks that should be added to a specific page (review mode — does NOT modify the page).
Inputs: slug (required).
synthesize_topicA
Synthesize what the user's wiki collectively knows about a topic. Returns structured threads with row-level citations, contradictions, and gaps. Cached; pass force_refresh: true to regenerate.
Inputs: topic (required), force_refresh.
tag_noteA
Add or replace tags on a wiki page. mode: "add" merges with existing tags (default); "replace" overwrites.
Inputs: slug (required), tags (required), mode.
update_note_sectionA
Replace the content under a section heading on an existing page. Refuses to modify human-edited pages unless force: true.
Inputs: slug (required), section (required), new_content (required), force.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 50 tools
There are five different search/retrieval entry points (search_wiki, search_all_projects, semantic_search, search_in_project, ask_wiki) whose selection criteria overlap heavily, and multiple ingest-like tools (ingest_source, ingest_plan/execute, quick_capture, save_chat_excerpt, mindbase_ingest_file) that an agent could easily conflate. Despite good individual descriptions, the boundaries between them are too subtle for reliable automatic tool selection.
The tool names mix a clean simple verb_noun convention (search_wiki, create_note, list_feeds) with a large prefixed mindbase_* family (mindbase_init_project, mindbase_atomic_write_context, mindbase_rebuild_index). Across the set there is also inconsistent terminology for seemingly similar resources: review cards vs cards, notes vs wiki pages, search vs query, and ingest vs capture.
50 tools is a very large surface for a single MCP server, crossing several domains: wiki operations, projects, RSS, spaced repetition, chat recall, and internal v2 project management. The count exceeds what an agent can reliably reason about, and many tools appear to be internal project-workflow helpers rather than user-facing knowledge-base operations.
Core create/read/update/search functionality exists for notes, but there is no delete/archive for wiki pages, no feed removal, no review-card update/delete, and no way to list all pages beyond recent activity. The tool surface has several dead ends that will force agents into awkward workarounds, although rich project-level operations are covered.
Maintenance
Related MCP Connectors
Personal wiki and memory layer for AI assistants. Persistent, structured memory across sessions.
One memory, every AI. A shared, user-owned markdown memory your AI clients read and write over MCP.
Self-hosted AI workspace: semantic RAG document search, long-term memory, and AI chat via MCP.
Personal knowledge base MCP server with semantic search, auto-categorization, metadata extraction
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables creation of persistent, compounding knowledge bases using Karpathy's LLM Wiki pattern with LLM-maintained markdown wikis. Supports automated ingestion, cross-referencing, synthesis, and linting of sources as an alternative to traditional RAG systems.63MIT
- AlicenseAqualityDmaintenanceMarkdown + SQLite knowledge store with bidirectional wikilinks, exposed as an MCP server for AI agents to maintain an interconnected knowledge base.11MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for persistent, compounding markdown wikis maintained by LLMs. Enables incremental knowledge base building with interlinked pages, search, and raw source management.1MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that ingests books into a structured, cross-linked wiki of sources, entities, concepts, and syntheses, managed by an LLM.2MIT