better-bear
The better-bear server provides comprehensive management of Bear notes via CloudKit, enabling full note management, organization, and an LLM-optimized context library.
Note Management
List, retrieve, create, edit (append, replace body, insert after a line, replace sections, edit front matter), trash, and archive/unarchive notes
Search & Discovery
Full-text search across titles, tags, and body content with relevance ranking and snippets
Filter by date range; find untagged notes or duplicates by title
Tag Management
List all tags with counts and hierarchy; add, remove, rename, or delete tags across notes
TODO Management
List notes with incomplete TODOs, get all TODO items from a note, and toggle completion status
Attachments
Attach files or images to notes with control over placement (append, prepend, before/after specific text)
Stats, Health & Sync
Library statistics (total notes, words, tags, TODOs, top tags)
Health checks (duplicates, empty notes, sync conflicts, oversized notes)
Trigger incremental or full iCloud sync
Context Library (LLM Knowledge Base)
Initialize a curated local folder (
bear/,external/,inbox/) optimized for LLM consumptionSync qualifying notes (tagged
#context) into the library; read the index and fetch specific filesSearch across all context library content (Bear notes, external files, inbox)
Add/remove notes via tagging; import external content (Jira tickets, Slack threads, docs)
Triage inbox files: keep (move to external), push to Bear as a note, or discard
Push external files into Bear as new tagged notes; remove external files
Monitor context library health: note counts, token totals, sync freshness, warnings
Enables authentication and synchronization with iCloud CloudKit to access and manage Bear notes stored in the cloud.
better bear
MCP server and CLI for Bear notes via CloudKit. Includes a context library — a curated, synced folder of notes optimized for LLM consumption, inspired by Karpathy's LLM Knowledge Base pattern.
Full docs: better-bear.com
Install
Install the CLI, then connect to Claude:
curl -sL https://raw.githubusercontent.com/KuvopLLC/better-bear/main/install.sh | bash
bcli auth
bcli mcp installThis installs the bcli binary, authenticates with iCloud, and sets up the MCP server for both Claude Desktop (via .mcpb bundle) and Claude Code.
Other install methods
Method | Command |
Claude Desktop only |
|
Claude Code only |
|
Claude Code (direct) |
|
Config file |
|
.mcpb bundle | Download from latest release and double-click |
Manage
bcli mcp status # check what's configured
bcli mcp uninstall # remove from Claude Desktop and Claude Code
bcli mcp reinstall # clean uninstall + install
bcli upgrade # upgrade bcli binaryRelated MCP server: Bear Notes MCP Server
CLI
All commands also work standalone from the terminal:
bcli ls # list notes
bcli search "query" # full-text search
bcli create "Title" -b "Body" # create a note
bcli edit <id> --append "text" # append to a note
bcli tags # list all tags
bcli attach <id> photo.jpg # attach a file
bcli stats # library statistics
bcli health # health checkSee better-bear.com for the full command reference.
Context Library
Turn a subset of your Bear notes into a synced, curated context folder that Claude can navigate using index-first retrieval. Tag notes with #context in Bear, sync, and Claude reads a compact index to find relevant files — loading only what it needs, not everything.
bcli context init # one-time setup
bcli context sync # pull qualifying notes
bcli context add <id> --subtag research # tag a note for inclusion
bcli context status # health checkOr tell Claude: "Set up a context library" — and it handles everything via MCP tools.
The architecture follows Karpathy's three-folder pattern: bear/ (synced from CloudKit), external/ (PDFs, exports, shared docs), and inbox/ (drop zone for triage). An index.md manifest maps everything. See better-bear.com for full documentation.
MCP Tools
34 tools covering notes, tags, TODOs, attachments, search, front matter, stats, health checks, and the context library. See the MCP server README for the full list.
Contributors
Available Tools
35 toolsbear_add_tagA
Add a tag to an existing Bear note. The tag is inserted into the note's markdown. Hierarchical tags like 'parent/child' also index every ancestor — so the note becomes discoverable under both #parent and #parent/child in Bear's sidebar.
Inputs: id (required), tag (required).
bear_archive_noteAIdempotent
Archive a Bear note. Archived notes are hidden from the main list but not deleted. Use 'undo' to unarchive.
Inputs: id (required), undo.
bear_attach_fileA
Attach a file or image to an existing Bear note. The file is uploaded to iCloud and embedded in the note's markdown. Supports common image formats (jpg, png, gif, webp, heic) and other file types (pdf, zip, etc.). By default the attachment is appended to the end. Use 'after' or 'before' to place it relative to text in the note, or 'prepend' to put it right after the title.
Inputs: id (required), file_path (required), after, before, +1 more.
bear_context_addAIdempotent
Add a Bear note to the context library by tagging it with #context. Optionally specify a subtag for grouping (e.g., subtag 'jira' → #context/jira). Triggers a sync after tagging.
Inputs: id (required), subtag.
bear_context_fetchARead-onlyIdempotent
Load the full content of specific files from the context library. Pass relative paths like 'bear/arch-overview.md' or 'external/jira-ticket.md'. Use after reading the index to load only relevant files — never load everything.
Inputs: paths (required).
bear_context_importA
Import external content into the context library. Content is written to the external/ directory with YAML front matter (source, group, summary, date). Use this to add non-Bear content like Jira tickets, Slack threads, API docs, or any markdown. The content is passed via stdin and a filename must be provided.
Inputs: filename (required), content (required), group, source, +1 more.
bear_context_indexARead-onlyIdempotent
Get the context library index — a structured table of contents of all files (Bear notes, external files, inbox). Read this FIRST before answering questions from context. Use it to identify which files to fetch, rather than loading everything. Includes cache freshness metadata.
Inputs: no named parameters.
bear_context_ingestARead-onlyIdempotent
Scan the inbox/ directory and list all untriaged files. Returns filename, size, content preview (first 500 chars), and any detected YAML front matter for each file. Does NOT modify anything — use bear_context_triage to act on files.
Inputs: no named parameters.
bear_context_push_to_bearAIdempotent
Push an external file to Bear as a new note. Creates a Bear note from the file content, tags it with #context (+ optional subtag), and removes the original external file. Use when external content has matured enough to become a permanent Bear note.
Inputs: filename (required), subtag, title.
bear_context_removeADestructiveIdempotent
Remove a Bear note from the context library by removing its #context tag. Triggers a sync to delete the local file.
Inputs: id (required).
bear_context_remove_externalADestructiveIdempotent
Remove a file from the external/ directory in the context library. Deletes the file and regenerates the index. Use when external content is no longer needed.
Inputs: filename (required).
bear_context_searchARead-onlyIdempotent
Full-text search across the entire context library (Bear notes + external files + inbox). Returns matching snippets with filenames and origin labels. Use when the index alone isn't enough to find the right file.
Inputs: query (required), limit.
bear_context_set_prefixAIdempotent
Change the context library's tag prefix and re-tag every Bear note that currently uses the old prefix. Sub-tags are preserved — #context/research becomes #<new>/research. Updates both the markdown body and the CloudKit tag index, and persists the new prefix to the context config. Useful when aligning the qualifier tag with a broader naming scheme like Johnny Decimal (e.g. '10-projects'). Run bear_context_sync afterwards to refresh the library.
Inputs: new_prefix (required).
bear_context_setupAIdempotent
Initialize a context library — a curated, synced folder of Bear notes optimized for LLM consumption. Creates the directory structure and config. After setup, tag Bear notes with #context (or a custom prefix) and use bear_context_sync to pull them in. One-time operation.
Inputs: dir, tag_prefix, use_frontmatter.
bear_context_statusARead-onlyIdempotent
Get context library health and stats: Bear note count, external file count, inbox count, total tokens, last sync time, group breakdown, and warnings (stale cache, expired externals, oversized files, untriaged inbox items).
Inputs: no named parameters.
bear_context_syncAIdempotent
Sync qualifying Bear notes to the local context library. Adds new notes, updates changed notes, and removes notes that no longer qualify (tag removed, trashed, etc.). Regenerates the index. Only touches the bear/ directory — external/ and inbox/ are untouched. Call this when the user asks to sync, refresh, or update their context.
Inputs: force.
bear_context_triageAIdempotent
Triage a file in the inbox. Three actions: 'keep' moves it to external/ with optional group/summary metadata. 'push_to_bear' creates a Bear note tagged #context (+ optional subtag) and deletes the inbox file. 'discard' deletes the file. All actions regenerate the index.
Inputs: filename (required), action (required), group, subtag, +1 more.
bear_create_noteA
Create a new Bear note with a title, optional body text, tags, and YAML front matter. Hashtags written inline in the body (e.g. '#my_tag' or '#parent/child') are extracted and registered as real tags on the note, matching Bear's desktop-app behaviour. Tags from the 'tags' array are indexed regardless of whether they appear in the body. Hierarchical tags like '#parent/child' also index every ancestor (so they show up under #parent in Bear's sidebar). Front matter is stored as a collapsed metadata block at the top of the note. Returns the new note's ID.
Inputs: title (required), body, tags, frontmatter.
bear_delete_tagADestructiveIdempotent
Delete a tag from all Bear notes. The tag text is removed but notes are preserved.
Inputs: tag (required).
bear_edit_noteA
Edit an existing Bear note. Provide 'append_text' to add text, 'body' to replace content, or 'set_frontmatter'/'remove_frontmatter' to edit YAML front matter fields. Front matter edits can be combined with each other but not with body/append.
Inputs: id (required), append_text, body, after, +4 more.
bear_find_duplicatesARead-onlyIdempotent
Find notes with duplicate titles. Returns groups of notes sharing the same title with their IDs and modification dates. Useful for cleaning up after imports or sync conflicts.
Inputs: no named parameters.
bear_find_untaggedARead-onlyIdempotent
List Bear notes that have no tags assigned.
Inputs: limit.
bear_get_noteARead-onlyIdempotent
Get a single Bear note's full content and metadata by ID. Returns the note title, tags, full markdown text, and dates. The response includes 'tags' (CloudKit index, may contain ancestor tags like 'parent' for a note tagged '#parent/child') and 'attached_tags' (leaves only). If the note is locked/private, 'locked: true' will be included in the response. Use the 'raw' option to get just the markdown without metadata.
Inputs: id (required), raw.
bear_get_tagsARead-onlyIdempotent
Get the full tag hierarchy from Bear. Returns all tags with their note counts and pin status. Useful for understanding how notes are organized.
Inputs: no named parameters.
bear_get_todosARead-onlyIdempotent
Get all TODO items from a specific Bear note. Returns each item's text, completion status, and index number (use the index with bear_toggle_todo to toggle items).
Inputs: id (required).
bear_health_checkARead-onlyIdempotent
Run a health check on the Bear notes library. Reports duplicate titles, empty notes, notes stuck in trash, sync conflicts, orphaned tags, untagged notes, and oversized notes. Use this to identify cleanup opportunities or diagnose sync issues.
Inputs: no named parameters.
bear_list_notesARead-onlyIdempotent
List Bear notes with optional tag filtering. Returns an array of notes with IDs, titles, tags, pin status, and modification dates. Each note includes two tag fields: 'tags' mirrors Bear's CloudKit index verbatim (includes ancestor expansions — a note tagged #parent/child will show both 'parent' and 'parent/child'); 'attached_tags' shows only leaf tags (the most-specific tag on each branch). Notes with 'locked: true' are private/encrypted in Bear and their body content is not searchable — if a search returns no results, check whether the relevant note is locked. Use bear_get_note to read the full content of a specific note.
Inputs: tag, include_archived, include_trashed, limit.
bear_list_todosARead-onlyIdempotent
List Bear notes that have incomplete TODO items (markdown checkboxes like '- [ ]'). Returns each note's title, tags, and counts of complete/incomplete items.
Inputs: limit.
bear_note_statsARead-onlyIdempotent
Get statistics about the Bear notes library: total notes, words, tags, pinned, archived, trashed, notes with TODOs, oldest/newest dates, and top 10 tags by note count.
Inputs: no named parameters.
bear_remove_tagADestructiveIdempotent
Remove a tag from a specific Bear note. Works on any tag visible in 'tags' on the note — including ancestor tags like 'parent' that exist only as hierarchical expansions. Removing a hierarchical leaf like 'parent/child' also drops orphaned ancestors from the tag index.
Inputs: id (required), tag (required).
bear_rename_tagAIdempotent
Rename a tag across all Bear notes. Every note containing the old tag will be updated.
Inputs: old_name (required), new_name (required).
bear_searchARead-onlyIdempotent
Full-text search across Bear note titles, tags, and body content. Returns matching notes ranked by relevance (title matches first, then tag, then body). Body matches include a text snippet with surrounding context. Locked/private notes will match by title but may not match body searches — results include 'locked: true' for these notes. If you can't find content you expect, try listing notes to check if the relevant note is locked.
Inputs: query (required), limit, since, before.
bear_syncAIdempotent
Trigger a sync of Bear notes from iCloud. Normally an incremental sync fetching only changes. Use 'full' to force a complete re-sync. Most read operations auto-sync when the cache is stale, so manual sync is rarely needed.
Inputs: full.
bear_toggle_todoA
Toggle a specific TODO item in a Bear note between complete and incomplete. The item_index is 1-based — use bear_get_todos first to see the list with index numbers.
Inputs: id (required), item_index (required).
bear_trash_noteADestructiveIdempotent
Move a Bear note to the trash. This is a soft delete — the note can be recovered from Bear's trash. The note is identified by its ID.
Inputs: id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 35 tools
Each tool targets a distinct operation on Bear notes, tags, todos, or the context library. Even within similar domains like tag management, the verbs clearly differentiate (add, remove, rename, delete). No two tools appear to overlap in purpose.
All tools use the consistent 'bear_verb_noun' pattern in snake_case. The verb comes first and accurately describes the action. Sub-domains like context tools are grouped with a common prefix (bear_context_*), maintaining clarity across 35 tools.
35 tools is on the higher end but justified by the full feature set: note CRUD, tag management, search, todos, sync, health, and a substantial context library subsystem. Each tool serves a clear purpose, though the context library could potentially be simplified.
The tool surface covers the entire Bear note lifecycle: create, read, update, delete, archive, trash, tag operations, todo management, search, sync, health checks, and a sophisticated context library. No obvious gaps for typical note-taking workflows.
Maintenance
Related MCP Connectors
Google Keep-style notes app with an MCP server for AI agents to read/write notes.
Markdown-based note-taking with a hosted MCP server. Your notes serve you and your AI.
Search, read, and write your Apple Notes from ChatGPT/Claude via a local Mac agent + MCP relay.
Remote MCP server for notes, tasks, kanban boards and docs - the Slates agentic workspace
Related MCP Servers
- AlicenseAqualityDmaintenanceA simple note-taking MCP server for recording and managing notes with AI models.414 npm37GPL 2.0
- FlicenseBqualityDmaintenanceA Model Context Protocol server that provides Claude with access to search, retrieve, and analyze notes from the Bear App through natural language queries.78-
- AlicenseAqualityDmaintenanceA Model Context Protocol server that integrates with Bear App, enabling AI assistants to create, search, modify, and organize notes and tags through X-callback-URL scheme.161MIT
- AlicenseAqualityDmaintenanceA Python-based MCP server that provides read and write access to Bear Notes on macOS using SQLite for data retrieval and x-callback-url for modifications. It enables users to search, create, archive, and manage notes and tags directly through a Model Context Protocol interface.161ISC