Bear MCP Server 是一个 MCP(模型上下文协议)服务器,用于将 Bear 笔记应用与 Claude Desktop 集成。通过该服务器,Claude 可以直接读取、创建和搜索你的 Bear 笔记,为笔记管理和使用带来极大便利。
本服务器可让你轻松地将 Bear 笔记应用与 Claude Desktop 集成,实现笔记的读取、创建和搜索等功能。
✅ 推荐用法:
Search my Bear notes for "project"
Get all my Bear tags
Create a note titled "Meeting Notes" with today's agenda
Add "Action item: Follow up" to my "Weekly Review" note
⚠️ 若出现问题:
check_bear_setup
进行诊断。工具 | 功能 | 可靠性 | 说明 |
---|---|---|---|
create_note |
创建新笔记 | ✅ 优秀 | 始终有效,返回 ID |
add_text |
向笔记中添加文本 | ✅ 优秀 | 可靠的文本添加功能 |
check_bear_setup |
测试配置 | ✅ 优秀 | 诊断工具 |
search_notes |
搜索笔记 | ⚠️ 良好 | 约 80 - 90% 的成功率,可能会超时 |
get_tags |
获取所有标签 | ⚠️ 良好 | 通常有效,可能会出现短暂的弹出窗口 |
get_note |
检索笔记内容 | ⚠️ 良好 | 在使用有效 ID 时工作良好 |
git clone https://github.com/philgetzen/bear-mcp.git
cd bear-mcp
npm install
npm run build
编辑 ~/Library/Application Support/Claude/claude_desktop_config.json
:
{
"mcpServers": {
"bear": {
"command": "node",
"args": ["/path/to/bear-mcp/dist/index.js"]
}
}
}
编辑 %APPDATA%\Claude\claude_desktop_config.json
:
{
"mcpServers": {
"bear": {
"command": "node",
"args": ["C:\\path\\to\\bear-mcp\\dist\\index.js"]
}
}
}
启用 x-callback-url:
生成 API 令牌(用于搜索和标签):
set_bear_token
并输入你的令牌Check my Bear setup and show me what's available
Create a new Bear note titled "Project Ideas" with content about machine learning
Add "## Next Steps\n- Review documentation\n- Schedule follow-up" to my "Weekly Review" note
Search my Bear notes for "machine learning" and show me what you find
Get all my Bear tags and help me organize them
Search for "meeting notes" then help me identify common action items across all results
Find notes tagged with "work" and summarize the main topics
获取你的令牌:Bear → 帮助 → 高级 → API 令牌 → 复制令牌,然后使用 set_bear_token
。
确保 Bear 已安装并至少打开过一次。
check_bear_setup
进行测试。服务器使用 HTTP 回调(端口 51234)从 Bear 接收数据:
npm run dev
npm run build
node dist/index.js
本项目采用 MIT 许可证。