Bear MCP 服务器
一个读取 Bear 笔记应用内容的 MCP 服务器,确保笔记安全不被修改。
快速开始
方法 1:从 GitHub 安装(推荐)
运行以下命令启动服务器: npx github:bart6114/my-bear-mcp-server
方法 2:克隆并本地运行
- 克隆仓库: git clone https://github.com/bart6114/my-bear-mcp-server.git cd my-bear-mcp-server
- 安装依赖: npm install
- 构建并运行: npm run build npm start
配置
- Claude 桌面应用:编辑 ~/Library/Application Support/Claude/claude_desktop_config.json 文件。
- Claude VS Code 插件:编辑 ~/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": [] } } }
使用示例
- 搜索笔记:让 AI 助手查找包含特定关键词的笔记。
- 打开笔记:通过标题或 ID 查找特定笔记。
- 查看标签:列出所有标签或查找带特定标签的笔记。