claude-nb-mcp
Click on "Install 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., "@claude-nb-mcpAdd a note about the authentication bug."
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.
claude-nb-mcp
MCP server for integrating nb (command-line note-taking) with Claude Code.
Features
Working Directory-based Notebooks: Automatically organizes notes by project/working directory
Claude Folder Organization: Separates Claude-generated notes from manual notes
4 Core Tools: Add, list, search, and show notes
Secure: Prevents command injection and provides proper error handling
Easy Setup: Simple integration with Claude Code
Related MCP server: Dev Notes MCP Server
Folder Structure
Claude-generated notes are automatically organized in a claude/ subfolder within each notebook:
~/.nb/
├── dotfiles/
│ ├── claude/ # Claude-generated notes
│ │ └── 20260101171752.md
│ └── manual-note.md # Your manual notes
└── my-app/
├── claude/ # Claude-generated notes
└── manual-note.md # Your manual notesThis separation allows you to:
Keep Claude's automatic notes separate from your manual notes
Easily filter or search only Claude's notes
Maintain a cleaner organization
Prerequisites
nb (v7.x recommended)
Node.js >= 18.0.0
Claude Code
Installing nb
# macOS
brew install nb
# Or using the installer
curl -L https://raw.github.com/xwmx/nb/master/nb -o /usr/local/bin/nb && chmod +x /usr/local/bin/nbInstallation
Clone this repository:
cd ~/workspace # or your preferred location
git clone https://github.com/lowbridgee/claude-nb-mcp.git
cd claude-nb-mcpInstall dependencies:
npm installBuild the project:
npm run buildRegister with Claude Code:
claude mcp add --transport stdio nb --scope user -- node /absolute/path/to/claude-nb-mcp/dist/index.jsReplace /absolute/path/to/claude-nb-mcp with the actual absolute path.
Usage
Automatic Notebook Selection
When you run Claude Code in a project directory, notes are automatically saved to a notebook named after that directory:
Working Directory | Notebook Name |
|
|
|
|
Available Tools
nb_add
Add a new note to the current project's notebook.
Parameters:
content(required): Note contenttitle(optional): Note titletags(optional): Array of tags
Example:
nb_add({
content: "This is a technical note about the authentication bug.",
title: "Auth Bug Analysis",
tags: ["bug", "authentication"]
})nb_list
List notes from the current project's notebook.
Parameters:
limit(optional, default: 20): Maximum number of notestype(optional): Filter by type (note,bookmark,todo)
Example:
nb_list({ limit: 10, type: "note" })nb_search
Search notes in the current project's notebook.
Parameters:
query(required): Search querylimit(optional, default: 10): Maximum results
Example:
nb_search({ query: "authentication", limit: 5 })nb_show
Show the full content of a specific note.
Parameters:
id(required): Note ID (fromnb_listoutput)
Example:
nb_show({ id: 3 })Custom Notebook Name
You can override the automatic notebook name by setting the NB_NOTEBOOK environment variable:
{
"mcpServers": {
"nb": {
"type": "stdio",
"command": "node",
"args": ["/path/to/claude-nb-mcp/dist/index.js"],
"env": {
"NB_NOTEBOOK": "my-custom-notebook"
}
}
}
}Development
# Build
npm run build
# Watch mode
npm run devHow It Works
Notebook Detection: On startup, the server reads
PWDorprocess.cwd()to determine the working directoryNotebook Name: Uses the basename of the working directory (e.g.,
dotfilesfrom/Users/you/dotfiles)nb Commands: Executes
nb <notebook>:<command>for all operations
Troubleshooting
"nb command not found"
Install nb:
brew install nb
# or
curl -L https://raw.github.com/xwmx/nb/master/nb -o /usr/local/bin/nb && chmod +x /usr/local/bin/nbNotes not showing up
Check which notebooks exist:
nb notebooksVerify the notebook name matches your project directory:
nb dotfiles:list # Replace 'dotfiles' with your directory namePermission errors
Ensure the MCP server has execute permissions on nb:
which nb
nb --versionLicense
MIT
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/lowbridgee/claude-nb-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server