npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

better-bear-mcp

v0.3.0

Published

MCP server for Bear notes app via CloudKit

Readme

better-bear-mcp

MCP server that gives Claude access to your Bear notes.

Powered by better-bear-cli (bcli), it exposes Bear's note operations as MCP tools over stdio transport.

Prerequisites

  • macOS (Bear is macOS-only)
  • Bear installed with iCloud sync enabled
  • Node.js 20+
  • An iCloud account (for CloudKit authentication)

Installation

For Claude Desktop users — just add the config below. npx handles the rest.

For development:

git clone https://github.com/darronz/better-bear-mcp.git
cd better-bear-mcp
npm install
npm run build

Authentication

Bear stores notes in iCloud via CloudKit. To access them, bcli needs a one-time CloudKit authentication token from Apple Sign-In.

Setup

  1. Run bcli auth in a terminal
  2. A browser window opens for Apple Sign-In — sign in with your iCloud account
  3. Terminal shows "Authenticated successfully." when done
  4. Token is saved at ~/.config/bear-cli/auth.json and persists across sessions

Alternative: Authenticate from Claude

The bear_auth MCP tool can trigger authentication directly from a Claude conversation. It opens the same browser flow without leaving your chat.

Headless / SSH environments

If you're running over SSH (no browser available), authenticate with a token directly:

bcli auth --token '<your-ckWebAuthToken>'

Token expiry

If Bear operations start failing with "Not authenticated" or "Auth token expired" errors, re-run bcli auth or use the bear_auth tool.

Claude Desktop Setup

Add this to ~/Library/Application Support/Claude/claude_desktop_config.json:

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

Restart Claude Desktop after editing the config.

For local development, use the built output directly:

{
  "mcpServers": {
    "better-bear": {
      "command": "node",
      "args": ["/absolute/path/to/better-bear-mcp/dist/index.js"]
    }
  }
}

Available Tools

| Tool | Description | |------|-------------| | bear_get_note | Retrieve a note's full content by ID | | bear_list_notes | List notes with optional tag filter and limit | | bear_search_notes | Search notes by text query | | bear_list_tags | List all tags | | bear_create_note | Create a new note with title, body, and tags | | bear_edit_note | Append text to an existing note | | bear_trash_note | Soft-delete (trash) a note | | bear_export_notes | Export notes as Markdown files | | bear_auth | Trigger Apple Sign-In authentication |

Troubleshooting

"Not authenticated" or "Auth token expired" Run bcli auth in a terminal or use the bear_auth tool.

Claude Desktop can't find the server Check that Node.js is in your PATH. The npx method is recommended — it handles installation automatically.

"bcli binary not found" Run npm install to trigger the postinstall script that downloads bcli.

License

MIT