Obsidian plugin and MCP server for GraphRAG - MegaMem
Project description
MegaMem: Obsidian MCP with SuperPowers
Graphiti | GraphRAG | MCP
Transform your Obsidian vault into a temporal knowledge graph powered by Graphiti. This plugin automatically discovers schema patterns from your notes' frontmatter and syncs them to a knowledge graph accessible by AI assistants through the Model Context Protocol (MCP).
ALPHA Launch
IMPORTANT Not all features and functions are fully tested. We actively use this plugin every day with our internal team, working on Windows with Neo4j. Early tests on macOS are working great! Although the infrastructure is there to support Linux & other database providers, we haven't fully tested them yet.
- Development Repo is private, along with obsidian source code. As we near Beta Launch, all source code will be pushed to this repo and request made to Obsidian Community Plugins.
- Early beta-testers are encouraged to contact the developer for a full obsidian template and customization services. Trust me, even at this stage, it's worth it(!)
🌟 Key Features
🔍 Automatic Schema Discovery
- Smart Vault Scanning: Automatically discovers entity types and properties from your existing notes' frontmatter
- Intelligent Type Inference: Analyzes actual values to determine property types (string, number, date, array, etc.)
- No Manual Configuration: Unlike traditional approaches, you don't need to define schemas manually
🏗️ Schema Management
- Visual Schema Editor: Intuitive interface to review and customize discovered schemas
- Property Management: Toggle properties on/off, edit descriptions, and refine types
- Pydantic Model Generation: One-click generation of Python models for Graphiti integration
- Best Practices Compliance: Automatic validation against Graphiti naming conventions and protected attributes
🔄 Enhanced Knowledge Graph Sync
- Intelligent Auto Sync: Smart synchronization with granular control over when and what gets synced
- Filtering Options: Choose between syncing "New notes only" or "New and updated notes"
- Real-time Synchronization: Automatic sync on save, scheduled intervals, and manual triggers
- Custom Entity Support: Define your own entity types beyond standard Person/Company models
- Relationship Mapping: Automatically extract and map relationships between entities
🤖 AI Assistant Integration
- MCP Protocol Support: Make your knowledge graph accessible to Claude and other AI assistants
- Contextual Search: AI can query your knowledge graph for relevant information
- Dynamic Ontologies: Your custom schemas are understood by AI assistants
- Enhanced AI Responses: Get more accurate, context-aware responses based on your personal knowledge
🚀 Getting Started
Prerequisites
- Obsidian: Version 1.10.1 or higher
- Database: Neo4j Desktop or FalkorDB (via Docker)
- Python: Version 3.11+ (for MCP server)
- Node.js: Version 18+ (for development)
Quick Setup
- Install the plugin from Obsidian Community Plugins (coming soon) or build from source
- Set up your graph database (Neo4j or FalkorDB)
- Configure the MCP server for AI integration
- Open the Schema Manager to discover your vault's patterns
- Start syncing your notes to the knowledge graph!
📋 How It Works
1. Schema Discovery
The plugin scans your vault to find patterns in frontmatter:
---
type: Person
name: "John Doe"
occupation: "Software Engineer"
company: "TechCorp"
skills: ["Python", "JavaScript", "GraphQL"]
---
2. Automatic Type Detection
Based on your actual data, the plugin infers property types and generates schemas:
class Person(BaseModel):
name: Optional[str] = Field(None, description="Person's full name")
occupation: Optional[str] = Field(None, description="Current occupation")
company: Optional[str] = Field(None, description="Current employer")
skills: Optional[List[str]] = Field(None, description="List of skills")
3. Knowledge Graph Sync
Your notes are transformed into a temporal knowledge graph:
- Entities become nodes with properties
- Relationships are extracted from content
- Consecutive notes dynamically update the Graph
- AI assistants can query this structured data
🎯 Use Cases
Personal Knowledge Management
- Track people you meet, companies you research, projects you work on
- Build a personal CRM within Obsidian
- Visualize connections between ideas and entities
Research & Academia
- Organize research papers, authors, and concepts
- Track citations and relationships between works
- Build domain-specific knowledge graphs
Business Intelligence
- Track competitors, market trends, and industry insights
- Build company knowledge bases
- Create structured data from unstructured notes
Creative Projects
- Manage characters, locations, and plot elements for writing
- Track inspiration sources and creative connections
- Build world-building databases
🛠️ Configuration
Database Setup
Choose between:
- Neo4j Desktop: Full-featured graph database with visualization
- FalkorDB: Lightweight Redis-based graph database
- Kuzu: coming soon
- Neptune: coming soon
Model Context Protocol (MCP) Server
The plugin features a custom MCP server that seamlessly bridges your Obsidian vault with AI assistants. It enables:
- Intelligent Communication: Facilitates communication between your vault, Graphiti, and connected AI models.
- AI-Powered Access: Allows AI assistants to directly interact with and query your knowledge graph.
- Dynamic Schema Sync: Manages the synchronization of your discovered schema patterns, ensuring AI understands your custom data structures.
Plugin Settings
- Database Configuration: Connection details and credentials
- Auto Sync Settings: Enable/disable automatic synchronization with intelligent filtering
- Sync Options: Choose between "New notes only" or "New and updated notes" for auto sync
- Sync Preferences: Choose folders to include/exclude from synchronization
- Field Management: Set globally ignored properties
- Advanced Options: Batch sizes, logging, performance tuning, and sync intervals
📚 Documentation
Explore the comprehensive documentation for MegaMem to get started and deepen your understanding:
Getting Started
- Introduction - Overview of MegaMem and its core concepts.
- Quick Start Guide - Get up and running in minutes.
- Plugin Settings - Detailed reference for all configuration options.
Advanced Guides
- Database Setup - Configure your preferred graph database.
- Claude Desktop Integration - Connect MegaMem with Claude Desktop.
- Custom Entity Types & Ontology Manager - Define and manage your custom data schemas.
- Sync Manager - Control how your notes are synchronized with the knowledge graph.
- MCP Commands - Reference for available Model Context Protocol commands.
Community & Contribution
- Roadmap - See what's coming next for MegaMem.
- Contributing Guide - Learn how to contribute to the project.
- FAQ - Find answers to frequently asked questions.
🤝 Community & Support
- GitHub Issues: Report bugs or request features
- Discussions: Share use cases and get help
- Discord: Join our community (coming soon)
- Documentation: Comprehensive guides and examples
🔮 Roadmap
Current (v1.0)
- ✅ Automatic schema discovery
- ✅ Enhanced auto sync with granular filtering
- ✅ Intelligent sync options (new vs. new+updated notes)
- ✅ Real-time and scheduled synchronization
- ✅ MCP server integration
- ✅ Essential UI components
Planned Features
- 🔄 Visual graph exploration
- 🔄 Advanced query builder
- 🔄 Batch operations
- 🔄 Plugin ecosystem integration
- 🔄 Cloud sync options
- 🔄 Mobile support
💡 Philosophy
This plugin embraces the principle of progressive formalization. Start with simple notes, let patterns emerge naturally, then gradually add structure as your knowledge grows. No need to define rigid schemas upfront – the plugin discovers them from your actual usage.
🙏 Acknowledgments
Built with:
- Obsidian API
- Graphiti by Zep
- Svelte & UnoCSS
- Model Context Protocol (MCP) by Anthropic
📄 License
MIT License - see LICENSE.txt for details
Transform your notes into knowledge. Build your personal AI-powered knowledge graph today.
Created by Casey Bjørn
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iflow_mcp_c_bjorn_megamem-1.2.5.tar.gz.
File metadata
- Download URL: iflow_mcp_c_bjorn_megamem-1.2.5.tar.gz
- Upload date:
- Size: 94.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e34c5f8643a3879769840d2ca04ae0d28beeb92d10b5e6c5da7cfa6cf7c0cca
|
|
| MD5 |
2c2e4b88cda206e699815bf787e4e276
|
|
| BLAKE2b-256 |
45ba9e0a8e15a52b3d9a4af576e7ce3269d2a94b156fd055be8d09c53d57caec
|
File details
Details for the file iflow_mcp_c_bjorn_megamem-1.2.5-py3-none-any.whl.
File metadata
- Download URL: iflow_mcp_c_bjorn_megamem-1.2.5-py3-none-any.whl
- Upload date:
- Size: 104.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
007d74386d7d50e4cd9b482d3bde9e3fb435c04eff65fbd492eef8874e84acda
|
|
| MD5 |
3945ffd6ba8bc39c679a67eb8633e7da
|
|
| BLAKE2b-256 |
2c31cfdac94dfc6f7dcb71f6c6d18580995ca26dca46b799af30c2d760b25bd7
|