MCP Notes
December 14, 2024 · View on GitHub
一个基于 Model Context Protocol (MCP) 的高级笔记管理服务器,提供丰富的笔记管理功能。
特性
- 📝 基础笔记操作(创建、读取、更新、删除)
- 🔍 强大的搜索功能(支持标题、内容、标签搜索)
- 🏷️ 标签管理系统
- 📂 文件夹组织
- ⭐ 笔记优先级设置
- 📅 截止日期管理
- 🔄 批量操作支持
- 💾 SQLite 持久化存储
安装
# 使用 pnpm 安装
pnpm install mcp-notes
# 或使用 npm 安装
npm install mcp-notes
使用方法
- 在你的 MCP 配置文件中添加服务器配置:
{
"mcpServers": {
"notes": {
"command": "node",
"args": ["/path/to/mcp-notes/build/index.js"]
}
}
}
- 可用的工具:
create_note: 创建新笔记get_notes: 获取笔记列表get_note: 获取单个笔记详情update_note: 更新笔记delete_note: 删除笔记search_notes: 搜索笔记add_tags: 添加标签remove_tags: 移除标签set_priority: 设置优先级set_due_date: 设置截止日期create_folder: 创建文件夹move_to_folder: 移动笔记到文件夹
开发
# 安装依赖
pnpm install
# 构建项目
pnpm build
# 运行测试
pnpm test
许可证
MIT License - 详见 LICENSE 文件
贡献
欢迎提交 Issue 和 Pull Request!
- Fork 本仓库
- 创建你的特性分支 (
git checkout -b feature/AmazingFeature) - 提交你的改动 (
git commit -m 'Add some AmazingFeature') - 推送到分支 (
git push origin feature/AmazingFeature) - 开启一个 Pull Request