Uses Google Gemini for natural language understanding and processing of content relationships.
Stores relationship data and metadata in a Neo4j graph database, enabling semantic relationship mapping between content.
Syncs Notion pages and documents (including PDF/EXCEL/WORD) to build a semantic relationship network, with automatic incremental and full synchronization capabilities.
Project Chimera
🧠 个人AI记忆系统 - 让AI成为真正懂你的"第二大脑"
✨ 特性
- 🔗 智能关系图谱: 自动构建Notion页面间的语义关系网络
- 🚀 MCP协议支持: 与Claude Desktop等AI客户端无缝集成,支持多客户端并发访问
- 🔍 意图搜索: 基于自然语言理解的智能Notion内容检索,支持文本和PDF/EXCEL/WORD文档
- ⚡ 智能同步: 增量同步(30分钟) + 全量同步(隔天凌晨4点或超过3天)
- 🛡️ 数据安全: 图数据库仅存储关系和元数据,内容从Notion实时获取
- 📁 文件支持: 支持多种文件格式的内容提取和搜索(图片暂不支持)
🚀 快速开始(冷启动指南)
环境要求
- Python 3.11+
- Neo4j 5.0+ 数据库
- UV 包管理器
- Notion API Token
- Google Gemini API Key
一键安装
配置设置
- 创建环境配置:
- 编辑
.env
文件,填入你的配置:
- 启动Neo4j数据库:
使用方法
一键启动(推荐)
分开启动(高级用法)
生产环境部署
Claude Desktop 集成
在 claude_desktop_config.json
中添加:
更多集成详情参考:server_config.md
📁 项目结构
🔧 配置说明
主要环境变量:
变量名 | 描述 | 默认值 |
---|---|---|
SYNC_INTERVAL_MINUTES | 同步频率(分钟) | 30 |
NEO4J_URI | Neo4j连接字符串 | neo4j://127.0.0.1:7687 |
NOTION_TOKEN | Notion API令牌 | 必填 |
GEMINI_API_KEY | Google Gemini API密钥 | 必填 |
MCP_SERVER_PORT | MCP服务器端口 | 3000 |
📊 工作原理
核心流程
- 数据同步: 监控Notion变更并提取页面关系
- 图谱构建: 在Neo4j中创建带嵌入向量的语义图谱
- 意图搜索: 处理自然语言查询,找到相关内容
- MCP接口: 通过Model Context Protocol为AI客户端提供服务
同步策略
- 增量同步: 默认30分钟间隔,检测变化后更新
- 全量同步: 隔天北京时间4:00-4:30自动执行,或超过3天强制执行
- 删除检测: 全量同步时会清理Notion中已删除的页面
多客户端支持
- ✅ 多客户端同时连接:支持多个Claude Desktop实例同时连接
- ✅ 并发处理请求:可以同时处理最多10个搜索请求
- ✅ 无状态设计:每个请求独立处理,不互相影响
- ✅ Bearer认证:每个客户端可以使用相同的API Key
🤝 贡献
- Fork 本仓库
- 创建你的特性分支 (
git checkout -b feature/amazing-feature
) - 提交你的修改 (
git commit -m 'Add amazing feature'
) - 推送到分支 (
git push origin feature/amazing-feature
) - 打开一个 Pull Request
📝 文档
⚠️ 常见问题
安装问题
- UV安装失败: 检查网络连接,或使用pip安装
- Neo4j连接失败: 检查端口是否占用,默认端口为7687
- 环境变量问题: 确保.env文件在根目录下且格式正确
运行问题
- 同步失败: 检查Notion Token是否有效且权限充足
- 搜索无结果: 等待首次全量同步完成
- MCP连接失败: 检查端口和API Key配置
性能问题
- 同步过慢: 调整
SYNC_INTERVAL_MINUTES
或检查Neo4j性能 - 内存占用过高: 调整
SYNC_BATCH_SIZE
参数
📄 许可证
本项目采用 MIT 许可证 - 查看 LICENSE 文件了解详情。
🙏 致谢
- Graphiti - 图数据库操作框架
- FastMCP - MCP服务器框架
- Notion API - 内容管理平台
- Google Gemini - LLM模型
⭐ 如果这个项目对你有帮助,请给个Star!
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
A personal AI memory system that creates a cognitive hub connecting to Notion, enabling semantic search and relationship navigation of your knowledge through a graph database for AI assistants.
Related MCP Servers
- -securityAlicense-qualityEnhanced knowledge graph memory server for AI assistants that uses Neo4j as the backend storage engine, enabling powerful graph queries and efficient storage of user interaction information with full MCP protocol compatibility.Last updated -TypeScriptMIT License
- -securityFlicense-qualityA comprehensive memory management system for Cursor IDE that allows AI assistants to remember, recall, and manage information across conversations through a user-friendly interface.Last updated -2Python
- AsecurityAlicenseAqualityScalable, high-performance knowledge graph memory system with semantic search, temporal awareness, and advanced relation management.Last updated -2057150TypeScriptMIT License
- AsecurityAlicenseAqualityAn optimized read-only server for AI assistants to efficiently query and retrieve Notion content, featuring parallel processing and a minimized toolset of 7 essential read-only operations.Last updated -8844TypeScriptMIT License