Getting Started

From zero to a compounding knowledge base in seven steps. Local mode is free forever — no account needed.

1

Install the CLI

Requires Node.js. One command gets you going on every platform:

$ npm install -g meshnote

Verify with npx meshnote --version.

2

Create a brain

A brain is a directory with a specific structure. The init command scaffolds one from a template:

$ meshnote init ~/brains/research --template research

This creates a directory tree with a schema.md (LLM operating instructions), an empty raw/sources/ folder for your source documents, and a wiki/ directory where the LLM writes its pages.

~/brains/research/
├── schema.md          ← LLM operating instructions
├── raw/sources/       ← you drop files here
└── wiki/
    ├── index.md        ← catalog of all pages
    ├── log.md          ← activity log
    ├── entities/       ← people, orgs, tools
    ├── concepts/       ← ideas, topics
    ├── summaries/      ← one per source
    └── synthesis/      ← cross-cutting analyses

Templates

The template determines the schema.md — the rules your LLM follows when organizing this brain. Same tool, wildly different behavior:

research

Papers, methodology, contradictions, an evolving thesis. Tracks confidence levels and source quality.

book

Chapter-by-chapter companion wiki. Characters, plot threads, themes, world-building. Spoiler-aware.

personal

Private second brain. Journal, goals, relationships, reflections. Privacy-first by default.

business

Team knowledge base. Meetings, decisions, customers. ADR-style decision pages.

custom

Generic LLM Wiki pattern. Use when none of the above fit — then co-evolve the schema.md with your agent.

3

Connect your agent

Meshnote speaks the Model Context Protocol (MCP). Add this to your agent's MCP config and every registered brain becomes visible to the LLM:

Claude Code / Claude Desktop

Add to ~/.claude/settings.json under "mcpServers":

{
  "mcpServers": {
    "meshnote": {
      "command": "npx",
      "args": ["-y", "meshnote", "mcp"]
    }
  }
}

Or if you installed globally with npm install -g meshnote:

{
  "mcpServers": {
    "meshnote": {
      "command": "meshnote",
      "args": ["mcp"]
    }
  }
}

This launches meshnote as a local stdio server. It works with any MCP-compatible client — Cursor, Codex, Windsurf, or anything else that supports the protocol.

Your agent now has 14 tools: list_projects, get_schema, read_page, write_page, search_wiki, and more.

4

Drop a source

Save any document into your brain's raw/sources/ folder. Articles, papers, meeting transcripts, book chapters, podcast notes — anything your agent should know about. Plain text or markdown, no special format required.

$ cp ~/Downloads/interesting-paper.md ~/brains/research/raw/sources/

Or use the CLI to download from a URL:

$ meshnote source add https://example.com/article -p research

Sources are immutable. Once they're in raw/, nothing rewrites them. They're the ground truth your wiki is built from.

5

Ask your agent to ingest

In your agent session (Claude Code, Cursor, etc.), just ask in plain English:

"Ingest the new source in my research brain."

Behind the scenes, your agent:

  1. 1. Reads the brain's schema.md to understand the operating rules
  2. 2. Reads the source document
  3. 3. Creates a summary page, entity pages, and concept pages — all cross-linked with [[wikilinks]]
  4. 4. Searches for existing pages to update with new evidence
  5. 5. Logs the work and updates the index

You dropped a file and said two words. Your agent wrote a dozen structured, interlinked markdown pages following the brain's schema. Every write is atomic — a crashed ingest never leaves a half-written file.

6

Browse your wiki

Everything is plain markdown on disk. Open your project directory in any of these:

  • Obsidian — open the project folder as a vault. Graph view, backlinks, and community plugins all work.
  • VS Code — markdown preview, full-text search, git integration
  • Any text editor — it's just files and folders

Or use the CLI to search and read pages directly:

$ meshnote search "attention mechanism" -p my-research
$ meshnote page read wiki/entities/Karpathy.md -p my-research
$ meshnote graph -p my-research

No lock-in. Your wiki is a directory of markdown files — move it, copy it, version it with git.

7

Hosted mode optional — $8/mo

Local mode keeps everything on your machine. If you want your brains accessible from any device and any agent — Claude Code on your laptop, Claude.ai on the web, Cursor on another machine — subscribe to hosted mode.

After subscribing, create your brains in the web dashboard and connect your agent to the cloud MCP endpoint:

Claude Code / Claude Desktop (hosted)

{
  "mcpServers": {
    "meshnote": {
      "type": "url",
      "url": "https://meshnote.io/mcp",
      "headers": {
        "Authorization": "Bearer mnk_your-api-key"
      }
    }
  }
}

Generate an API key from the web dashboard after logging in. Keys start with mnk_.

Claude.ai (web connector)

Claude.ai supports MCP via OAuth. Add a connector with these settings:

  • Name: meshnote
  • URL: https://meshnote.io/mcp
  • Client ID: leave empty
  • Client Secret: leave empty

OAuth uses Dynamic Client Registration — no client ID or secret needed. You'll be redirected to log in, and Claude.ai will receive an API key automatically.

What hosted mode gives you

  • Cloud MCP endpoint — one brain, every agent, every device
  • OAuth for Claude.ai web connectors
  • API keys for programmatic agent connections
  • Same plain markdown — export your data anytime

That's it.

Drop sources in, ask your agent questions, watch your wiki grow. The more you use it, the further ahead you get.