Package Exports
- durandal-memory-mcp
- durandal-memory-mcp/durandal-mcp-server-v2.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (durandal-memory-mcp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Durandal - Universal AI Memory System
Durandal is an advanced AI memory system providing localized, on-premise persistent memory for any AI assistant (Claude, ChatGPT, Gemini). Features seamless Claude Code integration via MCP (Model Context Protocol), intelligent caching with RAMR, and sophisticated context management.
π Quick Start
Installation
npm install -g @enterprise/durandal-memory
Basic Setup
Initialize Configuration
durandal --init
Set Up Database (Automated)
durandal --setup-db
Configure API Key
# Edit .env file with your Claude API key CLAUDE_API_KEY=your_api_key_here
Start Durandal
durandal
π Features
Core Capabilities
- π§ Persistent Memory: Maintains conversation context across sessions
- π Semantic Search: AI-powered content discovery and retrieval
- β‘ RAMR Cache: Rapid Access Memory Register for instant responses
- π Multi-AI Support: Works with Claude, OpenAI, Google AI, and more
- π§ MCP Integration: Native Claude Code support via Model Context Protocol
- π Knowledge Analytics: Intelligent pattern recognition and insights
Advanced Features
- Context Management: Intelligent conversation context optimization
- Knowledge Extraction: Automatic insight generation from conversations
- Cross-Project Memory: Shared knowledge across multiple projects
- Real-time Optimization: Automatic memory system tuning
- Enterprise Ready: PostgreSQL support, backup/recovery, monitoring
π οΈ Installation Options
1. NPM Global Installation (Recommended)
npm install -g @enterprise/durandal-memory
# Available commands after installation:
durandal # Main CLI interface
durandal-ui # Web UI server
durandal-mcp # MCP server for Claude Code
2. Local Development Installation
git clone <repository-url>
cd durandal-memory
npm install
npm start
3. Claude Code MCP Integration
# Install globally first
npm install -g @enterprise/durandal-memory
# Add to Claude Code MCP configuration
durandal-mcp --configure-claude-code
βοΈ Configuration
Environment Setup
Create .env
file from template:
cp .env.distribution .env
Required Configuration
# AI Provider (Choose one or more)
CLAUDE_API_KEY=your_claude_api_key_here
OPENAI_API_KEY=your_openai_api_key_here
GOOGLE_API_KEY=your_google_api_key_here
# Database (SQLite default, PostgreSQL for enterprise)
DATABASE_TYPE=sqlite
DATABASE_PATH=./durandal-memory.db
# Basic Settings
NODE_ENV=production
PORT=3000
Database Options
Automated Setup (Recommended)
durandal --setup-db
Interactive wizard handles everything automatically.
SQLite (Default - Zero Configuration)
DATABASE_TYPE=sqlite
DATABASE_PATH=./durandal-memory.db
PostgreSQL (Enterprise)
DATABASE_TYPE=postgresql
DATABASE_URL=postgresql://username:password@localhost:5432/durandal_memory
π― Usage
CLI Mode
durandal
# Interactive CLI with full AI conversation and memory features
UI Mode
durandal-ui
# Web interface at http://localhost:3000
MCP Server Mode (Claude Code Integration)
durandal-mcp
# Starts MCP server for Claude Code integration
Programmatic Usage
const { DurandalAI } = require('@enterprise/durandal-memory');
const durandal = new DurandalAI({
provider: 'claude',
apiKey: process.env.CLAUDE_API_KEY,
databaseType: 'sqlite'
});
await durandal.initialize();
const response = await durandal.chat("Remember my preference for React with TypeScript");
π§ Claude Code Integration
Automatic Setup
durandal-mcp --configure-claude-code
Manual Setup
- Add to Claude Code MCP Configuration (
~/.claude/settings.json
):
{
"mcpServers": {
"durandal-memory": {
"command": "durandal-mcp",
"args": [],
"env": {}
}
}
}
- Available MCP Tools:
durandal-memory__store_memory
durandal-memory__search_memories
durandal-memory__get_context
durandal-memory__optimize_memory
π Commands & Features
Memory Commands
store <content>
- Store information in memorysearch <query>
- Search stored memoriesrecall <topic>
- Recall specific topicsoptimize
- Optimize memory system
Context Commands
context
- Show current contextclear
- Clear current sessionsessions
- List all sessionsexport
- Export memory data
System Commands
status
- System health checkstats
- Memory statisticsbackup
- Create backuprestore
- Restore from backup
ποΈ Architecture
Core Components
- DurandalAI: Main orchestrator and CLI interface
- ClaudeClient: AI provider abstraction layer
- RAMR: Rapid Access Memory Register (intelligent caching)
- ContextManager: Conversation context optimization
- KnowledgeAnalyzer: Pattern recognition and insights
- DatabaseAdapter: Multi-database support layer
Memory Layers
- Hot Cache: In-memory for instant access
- RAMR Cache: SQLite-based persistent cache
- Main Database: Full conversation history
- Knowledge Base: Extracted insights and patterns
π Security & Privacy
- Local Processing: All data remains on your machine
- Encrypted Storage: Database encryption support
- API Key Security: Secure credential management
- Access Control: User authentication and authorization
- Audit Logging: Complete activity tracking
π Performance
- Sub-second Response: RAMR cache for instant memory access
- Scalable Architecture: Handles millions of memories
- Optimized Queries: Intelligent database indexing
- Memory Efficiency: Automatic cleanup and optimization
- Resource Monitoring: Built-in performance metrics
π§ͺ Testing
# Run all tests
npm run test-all
# Specific test suites
npm run test-db # Database integration
npm run test-memory # Memory system
npm run test-context # Context management
npm run test-ramr # RAMR cache system
π Troubleshooting
Common Issues
Database Connection
durandal --test-setup
# Validates database connectivity
durandal --setup-db
# Re-run database setup wizard
API Key Issues
durandal --validate-keys
# Checks all configured API keys
Memory Performance
durandal --optimize
# Runs memory optimization
Debug Mode
DEBUG=durandal:* durandal
# Enables verbose logging
π€ Contributing
- Fork the repository
- Create feature branch (
git checkout -b feature/amazing-feature
) - Commit changes (
git commit -m 'Add amazing feature'
) - Push to branch (
git push origin feature/amazing-feature
) - Open Pull Request
π License
This project is licensed under the MIT License - see the LICENSE file for details.
π Support
- Documentation: Full Documentation
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: support@durandal-ai.com
πΊοΈ Roadmap
Version 2.2.0 (Coming Soon)
- Multi-user support
- Team collaboration features
- Advanced analytics dashboard
- Mobile application
Version 2.3.0 (Future)
- Blockchain memory verification
- Advanced AI model training
- Enterprise SSO integration
- Cloud synchronization options
Made with β€οΈ by Enterprise Data and Analytics
Durandal - Empowering AI with Perfect Memory