# nb-mcp-server

> nb-mcp-server is an MCP server for knowledge and memory. Rust MCP server for reading, writing and editing nb notebooks without shell escaping. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI, macOS, Linux, Windows
- **Repository:** https://github.com/emcd/nb-mcp-server
- **MCP Registry name:** io.github.emcd/nb-mcp-server
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory), [productivity](https://ai-powered.com/categories/productivity)
- **Listing updated:** 2026-11-15

## About

The nb note-taking CLI is awkward for assistants: Markdown with backticks triggers shell substitution, and nb assumes one default notebook. This server accepts content as JSON parameters and qualifies every command with an explicit notebook, so a note full of code fences arrives intact and each project can use its own notebook.

The canonical entry is a single multiplexed nb tool with a command parameter, which keeps the token footprint small. Direct typed tools also exist for notes, todos, bookmarks, folders and imports. Editing is deliberately cautious: replace_note_body requires a fingerprint from a prior show so a stale overwrite is rejected, edit_note_substring checks an expected match count, and edit_note_lines verifies line anchors before applying a batch.

It needs nb installed first and ships as a crates.io package or prebuilt macOS, Linux and Windows binaries. Options include a notebook name by environment variable or flag, disabling commit signing and allowing top-level notes.

## Features

- **Explicit notebooks:** Every command is qualified with a notebook, so projects stay separate.
- **JSON content:** Note bodies pass as parameters with no shell escaping.
- **Guarded edits:** Fingerprints and expected counts block stale or destructive overwrites.
- **Line-level reads:** Anchored windows into a note with line-ending info.
- **Todos and bookmarks:** Create and complete tasks, save URLs and import files.
- **Atomic tag edits:** Add and remove tags in one operation.

## Good for

- Keep per-project decision notes written by an agent
- Let an assistant tick off todos in a notebook
- Patch one passage of a long note safely
- Save bookmarks with comments from a chat

## Install

### Claude Desktop (Claude Desktop → Settings → Extensions)

```text
https://github.com/emcd/nb-mcp-server/releases/download/v0.16.3/nb-mcp-server-0.16.3-aarch64-apple-darwin.mcpb
```

Download the bundle and open it with Claude Desktop, or drag it onto Settings → Extensions and click Install. This server is only published as a Claude Desktop bundle.

## Tools

From the tool list in its README, going by the names, 1 of 24 tools deletes data and 5 change data; 12 names don't say. From the server's own tool labels and tool names; not verified by us.

- `nb`: Multiplexed tool that runs any nb command by name.
- `add` (name suggests: changes): Create a note.
- `show` (name suggests: reads): Read a note.
- `delete` (name suggests: deletes): Delete a note.
- `move` (name suggests: changes): Move or rename a note.
- `list` (name suggests: reads): List notes.
- `search` (name suggests: reads): Full-text search.
- `todo`: Create a todo.
- `do`: Mark a todo complete.
- `undo`: Reopen a todo.
- `tasks`: List todos.
- `bookmark`: Save a URL.
- `folders`: List folders.
- `mkdir`: Create a folder.
- `import`: Import a file or URL.
- `status` (name suggests: reads): Show notebook info.
- `notebooks`: List notebooks.
- `replace_note_body`: Replace a note body, guarded by a fingerprint.
- `edit_note_substring` (name suggests: changes): Replace matches of a pattern with an expected count.
- `edit_note_lines` (name suggests: changes): Apply line edits verified against anchors.
- `retitle_note`: Change a note's title.
- `edit_note_tags` (name suggests: changes): Add or remove tags atomically.
- `show_note_lines` (name suggests: reads): Read a bounded window of lines.
- `search_note_lines` (name suggests: reads): Search with anchored line matches.

## FAQ

### Do I need nb installed?

Yes. Install nb first, then the server from crates.io or a release binary.

### How do I choose the notebook?

Set NB_MCP_NOTEBOOK or pass --notebook, which takes precedence.

### Why were whole-note overwrites removed?

The old edit tool was replaced by body-aware tools to avoid destructive overwrites.

### Which platforms have builds?

Prebuilt packages exist for Apple Silicon macOS, Linux (arm64 and x86_64) and Windows x86_64.

### What are the best alternatives to nb-mcp-server?

The closest alternatives to nb-mcp-server are MCP Notes Server, Provenote MCP, Notes by Halo, SoloMD and Simplenote MCP.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [MCP Notes Server](https://ai-powered.com/mcp/mcp-notes-server): MCP Notes Server is an open-source MCP server for knowledge and memory.
- [Provenote MCP](https://ai-powered.com/mcp/provenote-mcp): Provenote MCP is an open-source MCP server for knowledge and memory.
- [Notes by Halo](https://ai-powered.com/mcp/notes-by-halo): Notes by Halo is a free MCP server for knowledge and memory.
- [SoloMD](https://ai-powered.com/mcp/solomd): SoloMD is an open-source MCP server for knowledge and memory.
- [Simplenote MCP](https://ai-powered.com/mcp/simplenote-mcp): Simplenote MCP is an open-source MCP server for productivity.
- [Vbnote](https://ai-powered.com/mcp/vbnote): Vbnote is an MCP server for knowledge and memory.
- [sourcebolt](https://ai-powered.com/mcp/sourcebolt): sourcebolt is an open-source MCP server for knowledge and memory.
- [Notion Full MCP](https://ai-powered.com/mcp/notion-full-mcp): Notion Full MCP is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/nb-mcp-server
