Cover image
Try Now
2025-03-14

3 years

Works with Finder

1

Github Watches

0

Github Forks

3

Github Stars

Bear MCP Server

A Model Context Protocol (MCP) server that allows AI assistants like Claude to read notes from the Bear note-taking app. This implementation connects directly to the Bear SQLite database in a read-only mode, ensuring your notes remain safe and unmodified.

Read-Only Bear App Works with Claude TypeScript License: MIT

Quick Start

Option 1: Install from GitHub (Recommended)

npx github:bart6114/my-bear-mcp-server

That's it! The server will start running and connect to your Bear database.

Option 2: Clone and Run Locally

# Clone the repository
git clone https://github.com/bart6114/my-bear-mcp-server.git
cd my-bear-mcp-server

# Install dependencies
npm install

# Build and run
npm run build
npm start

Prerequisites

  • macOS with Bear app installed
  • Node.js 18 or higher

Configuration

For Claude Desktop App

Add this to your configuration file at ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "bear": {
      "command": "npx",
      "args": ["github:bart6114/my-bear-mcp-server"],
      "env": {},
      "disabled": false,
      "autoApprove": []
    }
  }
}

For Claude VS Code Extension

Add this to your configuration file at ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json:

{
  "mcpServers": {
    "bear": {
      "command": "npx",
      "args": ["github:bart6114/my-bear-mcp-server"],
      "env": {},
      "disabled": false,
      "autoApprove": []
    }
  }
}

Available Tools

The Bear MCP server provides these read-only tools (all operations are non-destructive and cannot modify your Bear database):

open_note

Open a note by title or ID.

search_notes

Search for notes by term or tag.

get_tags

Get all tags in Bear.

open_tag

Show all notes with a specific tag.

Example Usage

Here are examples of how to interact with the Bear MCP tools through AI assistants:

Searching for Notes

Ask your AI assistant to search for notes containing specific terms:

Can you find all my notes about "project management"?

Opening a Specific Note

Ask your AI assistant to retrieve a specific note by title:

Show me my note titled "Meeting Notes - March 2025"

Viewing Tags

Ask your AI assistant to list all your Bear tags:

What tags do I have in my Bear notes?

Finding Notes with a Specific Tag

Ask your AI assistant to show notes with a particular tag:

Show me all notes with the #work tag

Advanced Options

If your Bear database is in a non-standard location:

npx github:bart6114/my-bear-mcp-server --db-path /path/to/your/database.sqlite

Technical Details

Read-Only Implementation

This MCP server connects to your Bear SQLite database using a strict read-only connection. This is enforced at the database driver level:

// From src/bear-db.ts
this.db = new Database(dbPath, { readonly: true });

This ensures that:

  • No write operations can be performed on your database
  • Your notes and tags cannot be modified, deleted, or corrupted
  • The database connection will fail if write permissions are attempted

All operations performed by this server are SELECT queries that only retrieve data without modifying it.

License

This project is licensed under the MIT License - see the LICENSE file for details.

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Daren White
  • A supportive coach for mastering all Spanish tenses.

  • J. DE HARO OLLE
  • Especialista en juegos de palabras en varios idiomas.

  • albert tan
  • Japanese education, creating tailored learning experiences.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

  • rahulc0dy
  • 测试您的MCP服务器。

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • GeyserMC
  • 与Minecraft客户端/服务器通信的库。

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

  • awslabs
  • AWS MCP服务器 - 将AWS最佳实践直接带入您的开发工作流程的专门MCP服务器

    Reviews

    2 (1)
    Avatar
    user_vW4qMuxZ
    2025-04-16

    I have been using the my-bear-mcp-server by bart6114 and it has exceeded my expectations. The implementation is smooth and the documentation is thorough, making setup a breeze. It handles my MCP needs efficiently and integrates seamlessly with my existing systems. Highly recommended for anyone looking for a robust MCP server solution! Check it out on GitHub: https://github.com/bart6114/my-bear-mcp-server/