Skip to content
verify mcp Beta VerifyMCP is currently in beta. If you notice any issues, email [email protected] and we’ll put it right.

io.github.mreider/better-bear

NPM · BETTER-BEAR · SCANNED AUG 3

MCP server for Bear notes — read, search, create, edit, tag, and manage notes via CloudKit

Available components

+24 this week 64 Trust /100
Trust breakdown (6 categories)

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score →

Supply Chain Security86
  • No malware found by supply-chain analysis.Pass
  • Only part of the dependency tree could be resolved (94 of 98), so this covers what we could see, not the whole tree.Partial
  • No install/post-install scripts declared.Pass
  • Only part of the dependency tree could be resolved (94 of 98), so this covers what we could see, not the whole tree. View diagnostics → Partial
Provenance & Transparency19
Schema Quality & AI Usability81
  • AI-judged instruction clarity (excellent).Pass
  • Tool/resource definitions use about 2908 tokens (~85/item across 34 items; 34 tools + 0 resources), lean.Pass
  • Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management23
  • Stability observed for 7 of 30 days with no destabilising changes; credit accrues until the full window elapses.Partial
Tool Coverage100
  • 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
  • 100% of tool parameters carry a description.Pass
Capabilities100
  • Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass
Install

Add this component to your MCP client. Where a client-specific snippet is available, pick your client below and copy it straight into your config; otherwise use the connection detail shown.

npm · better-bear

# add to Claude Code
claude mcp add mreider-better-bear -- npx -y better-bear
# add to Codex CLI
codex mcp add mreider-better-bear -- npx -y better-bear
// opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "mreider-better-bear": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "better-bear"
      ],
      "enabled": true
    }
  }
}
# add to OpenClaw
openclaw mcp add mreider-better-bear --command npx --arg -y --arg better-bear
# ~/.hermes/config.yaml
mcp_servers:
  mreider-better-bear:
    command: "npx"
    args: ["-y", "better-bear"]
// mcp.json
{
  "mcpServers": {
    "mreider-better-bear": {
      "command": "npx",
      "args": [
        "-y",
        "better-bear"
      ]
    }
  }
}
Changelog

Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.

  • 3 Aug 26 +3
    • Stability: unverified → 0.23 functional
  • 2 Aug 26 +53
    • Provenance: fail → unverified security
    • Install scripts: pass → unverified security
    • Known CVEs: unverified → partial security
    • Malware scan: unverified → pass security
    • Stability: Stability not yet verified: not enough scan history yet (needs a 30-day window). security
    • License: pass → unverified functional
    • Maintenance: pass → unverified functional
    • Dependency health: unverified → partial functional
    • Schema quality: unverified → excellent functional
    • MCP protocol: unverified → pass functional
    • Tool coverage: unverified → 100 functional
    • Licence: MIT functional
  • 1 Aug 26 −1
    • We updated how we score, so this day's move reflects our rubric, not a change to the server See what changed → functional
  • 31 Jul 26 −10
    • Provenance: unverified → fail security
    • Malware scan: pass → unverified security
    • Install scripts: unverified → pass security
    • Security disclosure: unverified → fail functional
    • Dependency health: partial → unverified functional
    • Maintenance: unverified → pass functional
    • License: unverified → pass functional
    • Licence: MIT functional
  • 29 Jul 26 +1
    • Security disclosure: fail → unverified functional
    • Dependency health: unverified → partial functional
  • 28 Jul 26 −22
    • Tool coverage: 100 → unverified functional
    • First check of Schema quality: unverified functional
  • 27 Jul 26 40

    First indexed and scored.

Diagnostics

Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.

Captured 3 Aug 2026 · Analysed npm/[email protected]

Provenance none

Ecosystem: npm · Outcome: none

Dependencies 94 packages

94 packages in the resolved dependency tree · 94 deprecated · 29 stale.

The dependency tree was only partially resolved, so these counts may be incomplete.

MCP tools — 34 exposed · ~2,908 tokens

The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability.

Tool Tokens
bear_add_tag ~53

Add a tag to an existing Bear note. The tag is inserted into the note's markdown.

NameTypeReqDescription
idstringyesNote ID (uniqueIdentifier)
tagstringyesTag to add (without #)

No output schema declared.

No examples provided.

bear_archive_note ~61

Archive a Bear note. Archived notes are hidden from the main list but not deleted. Use 'undo' to unarchive.

NameTypeReqDescription
idstringyesNote ID (uniqueIdentifier)
undobooleanUnarchive the note instead of archiving

No output schema declared.

No examples provided.

bear_attach_file ~175

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.

NameTypeReqDescription
afterstringInsert after the line containing this text
beforestringInsert before the line containing this text
file_pathstringyesAbsolute path to the file to attach
idstringyesNote ID (uniqueIdentifier)
prependbooleanInsert after the title line instead of at the end

No output schema declared.

No examples provided.

bear_context_add ~88

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.

NameTypeReqDescription
idstringyesNote ID (uniqueIdentifier)
subtagstringOptional sub-tag for grouping (e.g., 'architecture', 'jira')

No output schema declared.

No examples provided.

bear_context_fetch ~78

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.

NameTypeReqDescription
pathsarrayyesFile paths relative to context directory (e.g., 'bear/my-note.md')

No output schema declared.

No examples provided.

bear_context_import ~159

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.

NameTypeReqDescription
contentstringyesMarkdown content to import
filenamestringyesTarget filename in external/ (e.g., 'jira-ticket-123.md')
groupstringGroup label for organizing (e.g., 'jira', 'slack', 'docs')
sourcestringSource description (e.g., URL, tool name)
summarystringShort summary of the content

No output schema declared.

No examples provided.

bear_context_index ~60

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.

Input schema present but exposes no named parameters.

No output schema declared.

No examples provided.

bear_context_ingest ~61

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.

Input schema present but exposes no named parameters.

No output schema declared.

No examples provided.

bear_context_push_to_bear ~115

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.

NameTypeReqDescription
filenamestringyesFilename in external/ to push
subtagstringSub-tag (e.g., 'architecture' → #context/architecture)
titlestringOverride note title (defaults to title extracted from content)

No output schema declared.

No examples provided.

bear_context_remove ~46

Remove a Bear note from the context library by removing its #context tag. Triggers a sync to delete the local file.

NameTypeReqDescription
idstringyesNote ID (uniqueIdentifier)

No output schema declared.

No examples provided.

bear_context_remove_external ~54

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.

NameTypeReqDescription
filenamestringyesFilename in external/ to remove

No output schema declared.

No examples provided.

bear_context_search ~77

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.

NameTypeReqDescription
limitnumberMaximum results (default: 5)
querystringyesSearch query (case-insensitive substring match)

No output schema declared.

No examples provided.

bear_context_setup ~137

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.

NameTypeReqDescription
dirstringOutput directory for the context library (default: ~/.bear-context)
tag_prefixstringTag prefix for qualifying notes (default: context). Notes tagged #context or #context/subtag will be included.
use_frontmatterbooleanAlso include notes with context: true in YAML front matter (default: true)

No output schema declared.

No examples provided.

bear_context_status ~57

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).

Input schema present but exposes no named parameters.

No output schema declared.

No examples provided.

bear_context_sync ~96

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.

NameTypeReqDescription
forcebooleanForce full re-sync (re-download all notes)

No output schema declared.

No examples provided.

bear_context_triage ~185

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.

NameTypeReqDescription
actionstringyesTriage action: keep (move to external/), push_to_bear (create Bear note), or discard (delete)
filenamestringyesFilename in inbox/ to triage
groupstringGroup label (used with 'keep' action)
subtagstringSub-tag for Bear note (used with 'push_to_bear' action, e.g., 'jira' → #context/jira)
summarystringShort summary (used with 'keep' action)

No output schema declared.

No examples provided.

bear_create_note ~116

Create a new Bear note with a title, optional body text, tags, and YAML front matter. Front matter is stored as a collapsed metadata block at the top of the note. Returns the new note's ID.

NameTypeReqDescription
bodystringNote body text (markdown)
frontmatterobjectYAML front matter fields as key-value pairs (e.g. {status: 'draft', project: 'alpha'})
tagsarrayTags to assign to the note
titlestringyesNote title

No output schema declared.

No examples provided.

bear_delete_tag ~40

Delete a tag from all Bear notes. The tag text is removed but notes are preserved.

NameTypeReqDescription
tagstringyesTag to delete (without #)

No output schema declared.

No examples provided.

bear_edit_note ~207

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.

NameTypeReqDescription
afterstringInsert appended text after the line containing this text (use with append_text)
append_textstringText to append to the end of the note
bodystringNew content to replace the entire note body
idstringyesNote ID (uniqueIdentifier)
remove_frontmatterarrayFront matter field keys to remove
replace_sectionstringReplace content under this heading (replaces until next heading of same or higher level)
section_contentstringNew content for the section (use with replace_section)
set_frontmatterobjectFront matter fields to set or update (key-value pairs)

No output schema declared.

No examples provided.

bear_find_duplicates ~40

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.

Input schema present but exposes no named parameters.

No output schema declared.

No examples provided.

bear_find_untagged ~38

List Bear notes that have no tags assigned.

NameTypeReqDescription
limitnumberMaximum number of notes to return (default 30)

No output schema declared.

No examples provided.

bear_get_note ~94

Get a single Bear note's full content and metadata by ID. Returns the note title, tags, full markdown text, and dates. 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.

NameTypeReqDescription
idstringyesNote ID (uniqueIdentifier)
rawbooleanReturn only the raw markdown content

No output schema declared.

No examples provided.

bear_get_tags ~36

Get the full tag hierarchy from Bear. Returns all tags with their note counts and pin status. Useful for understanding how notes are organized.

Input schema present but exposes no named parameters.

No output schema declared.

No examples provided.

bear_get_todos ~56

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).

NameTypeReqDescription
idstringyesNote ID (uniqueIdentifier)

No output schema declared.

No examples provided.

bear_health_check ~58

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.

Input schema present but exposes no named parameters.

No output schema declared.

No examples provided.

bear_list_notes ~147

List Bear notes with optional tag filtering. Returns an array of notes with IDs, titles, tags, pin status, and modification dates. 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.

NameTypeReqDescription
include_archivedbooleanInclude archived notes in results
include_trashedbooleanInclude trashed notes in results
limitnumberMaximum number of notes to return (default 30)
tagstringFilter notes by tag (partial match)

No output schema declared.

No examples provided.

bear_list_todos ~60

List Bear notes that have incomplete TODO items (markdown checkboxes like '- [ ]'). Returns each note's title, tags, and counts of complete/incomplete items.

NameTypeReqDescription
limitnumberMaximum number of notes to return (default 30)

No output schema declared.

No examples provided.

bear_note_stats ~50

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.

Input schema present but exposes no named parameters.

No output schema declared.

No examples provided.

bear_remove_tag ~43

Remove a tag from a specific Bear note.

NameTypeReqDescription
idstringyesNote ID (uniqueIdentifier)
tagstringyesTag to remove (without #)

No output schema declared.

No examples provided.

bear_rename_tag ~56

Rename a tag across all Bear notes. Every note containing the old tag will be updated.

NameTypeReqDescription
new_namestringyesNew tag name (without #)
old_namestringyesCurrent tag name (without #)

No output schema declared.

No examples provided.

bear_search ~165

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.

NameTypeReqDescription
beforestringOnly notes modified before this date (YYYY-MM-DD)
limitnumberMaximum number of results (default 20)
querystringyesSearch query text
sincestringOnly notes modified after this date (YYYY-MM-DD, or: today, yesterday, last-week, last-month)

No output schema declared.

No examples provided.

bear_sync ~70

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.

NameTypeReqDescription
fullbooleanForce a full re-sync instead of incremental

No output schema declared.

No examples provided.

bear_toggle_todo ~76

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.

NameTypeReqDescription
idstringyesNote ID (uniqueIdentifier)
item_indexnumberyes1-based index of the TODO item to toggle

No output schema declared.

No examples provided.

bear_trash_note ~54

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.

NameTypeReqDescription
idstringyesNote ID (uniqueIdentifier)

No output schema declared.

No examples provided.