A high-performance Model Context Protocol server that transforms Claude Desktop into a memory-enabled AI assistant with persistent context, secure command execution, and intelligent workflow automation.
Documentation
Context Savvy MCP 🧠✨
_The AI assistant's best friend - because even Claude needs a good memory_
The Problem That Wouldn't Go Away
You know that feeling when you're deep in a coding session with Claude, everything's flowing perfectly, and then... 💥 Context limit hit. Your conversation gets truncated. The AI forgets what you were working on. All that beautiful, collaborative momentum? Gone.
Or maybe you're the type who switches between projects constantly (guilty 🙋♂️), and every time you start a new chat, you have to re-explain your entire setup, your file structure, your preferences, your... everything.
What if your AI assistant could remember? Not just remember, but truly _understand_ your projects, maintain context across conversations, and actually _help_ you stay organized?
That's exactly why this exists.
What This Thing Actually Does
Context Savvy MCP is a turbocharged memory system for Claude Desktop that turns your AI assistant into something that feels almost... permanent. Instead of starting from scratch every conversation, Claude can:
- Remember everything across chat sessions (your projects, preferences, ongoing work)
- Execute commands safely (because sometimes you need to actually _do_ things, not just talk about them)
- Manage files intelligently (read, write, search, organize - all with context awareness)
- Learn from your patterns (it gets smarter about how you work over time)
- Keep itself organized (autonomous maintenance, cleanup, optimization)
Think of it as giving Claude a persistent workspace and a really, really good memory.
Tech Stack 🛠️
Built with modern, reliable technologies:
- TypeScript - Type-safe development with excellent IDE support
- Node.js - High-performance JavaScript runtime
- Inversify.js - Dependency injection container for clean, modular architecture
- better-sqlite3 - Fast, synchronous SQLite database operations
✨ Key Features & Performance
🚀 Token Efficiency (96% Reduction)
- **
compact_search** - Intelligent search with massive token savings - **
precision_edit** - Surgical code changes with validation - **
compression_algorithms** - Auto-compress large contexts (hybrid algorithm) - **
token_budget_optimization- Maintain 💥 Performance Boost**: Users report 96% reduction in token usage and 10x faster development workflows with optimal configuration.
**→ Complete Claude Desktop Setup Guide** - Detailed configuration for maximum productivity
| Without Optimization | With Optimized Setup |
|---|---|
| Manual file operations | Intelligent batch processing |
| Token usage at limits | <80% usage maintained |
| Repetitive searches | Smart path automation |
| Risk of data loss | Safe recycle system |
| Start from scratch each chat | Persistent context and memory |
---
Getting Started (The Actually Quick Version)
Prerequisites: Node.js 18+, Claude Desktop, and 5 minutes
# Clone and setup
git clone https://github.com/Baebu/context-savvy-mcp.git
cd context-savvy-mcp
npm install
# One-command setup (handles everything)
npm run quick-setupThe setup script will:
- Build the project ⚙️
- Create example configurations 📝
- Run tests to make sure everything works ✅
- Show you exactly what to add to Claude Desktop 📋
Add to Claude Desktop config:
{
"mcpServers": {
"context-server": {
"command": "node",
"args": ["/path/to/your/context-savvy-mcp/dist/index.js"],
"env": {
"MCP_SERVER_CONFIG_PATH": "/path/to/your/context-savvy-mcp/config/server.yaml"
}
}
}
}Restart Claude Desktop, and you're off to the races.
What You Can Do With It
Memory & Context
- Store anything: Project notes, decisions, preferences, todo lists
- Smart search: Natural language queries across all your stored context
- Relationship mapping: Connect related ideas, files, and projects automatically
- Learning: The system gets better at understanding your work patterns
File & Project Management
- Intelligent reading: Handles large files, multiple formats, smart truncation
- Context-aware editing: Find/replace with understanding of your code patterns
- Project analysis: Comprehensive overviews with actionable insights
- Workspace organization: Multiple project support with smart switching
Secure Automation
- Safe command execution: Whitelist-based security with path restrictions
- Process management: Monitor and control background tasks
- System health: Real-time performance monitoring and optimization
- Backup management: Automatic file versioning and recovery
Task & Workflow Management
- Smart task creation: Context-aware task tracking with automatic tagging
- Workflow automation: Learn and automate your common patterns
- Progress tracking: Persistent task state across conversations
- Template system: Reusable workflows for common project types
The Architecture (For Fellow Code Nerds)
Built with clean architecture principles because I have opinions about code organization:
src/
├── core/ # Pure business logic, no dependencies
├── application/ # Use cases, services, workflows
├── infrastructure/ # Database, file system, external APIs
└── presentation/ # MCP protocol interfaceTech stack: TypeScript, SQLite, TensorFlow.js (for embeddings), Dependency Injection, way too much attention to detail.
Design philosophy: Make it work first, make it elegant second, make it fast third. Currently somewhere between steps 2 and 3.
Security (Because I'm Paranoid)
This server operates on a "trust but verify" model, configured entirely by you. There are no runtime pop-ups or consent dialogs; security is handled by your config/server.yaml file.
- Command Whitelisting: Only commands explicitly listed in your configuration's
allowedCommandscan be executed. Everything else is blocked by default. - Path Sandboxing (Safe Zones): File operations are restricted to directories you define in
safezones. By default, this is "recursive," meaning subdirectories are also accessible. - Restricted Zones: The server maintains a list of sensitive system paths (
/etc,C:\Windows, etc.) and project paths (.git,.ssh) that are always blocked, even if they fall within a safe zone. - Input Validation: All file paths and command arguments are sanitized to prevent common injection and path traversal attacks.
The default config is locked down tight. You explicitly allow what you want, giving you full control over the server's capabilities.
Want to Help? 🤝
I'm genuinely looking for:
- Testing: Try it with your projects, break it, tell me what happens
- Code review: I have blind spots, you probably see them
- Ideas: What features would make this indispensable for you?
- Documentation: If something doesn't make sense, let me know
- Real-world feedback: Does this actually solve problems you have?
Good first contributions:
- Try the setup process and document any friction
- Test with different project types and report what works/doesn't
- Add support for your favorite tools or languages
- Improve error messages and UX
- Write tests for edge cases I missed
To contribute:
# Fork on GitHub, then:
git clone https://github.com/YOUR_USERNAME/context-savvy-mcp.git
cd context-savvy-mcp
npm install
npm test # Make sure everything works
npm run dev # Start hackingConfiguration & Customization
The system is controlled by config/server.yaml. Here's what you can tune:
# Security boundaries
security:
allowedCommands: ['ls', 'git status', 'npm test']
safezones: ['~/projects/my-web-app', './workspace']
# Database and storage
database:
path: './data/context.db'
backupInterval: 360 # In minutes. 0 to disable.
# Semantic search features
semanticSearch:
enabled: true
model: 'universal-sentence-encoder'
# Autonomous behaviors
autonomous:
enabled: true
monitoring:
compressionThreshold: 10240 # In bytes. Auto-compress contexts larger than this.
panicThreshold: 0.95 # Trigger emergency state save at 95% of context window.Run npm run config for a web-based configuration UI. For a full breakdown of options, see the Installation Guide.
Performance & Scaling
Tested with:
- Projects up to 10,000 files
- Context databases up to 1GB
- Concurrent conversations (works, but not heavily tested)
- Long-running sessions (months of continuous use)
Optimization features:
- Intelligent compression and archiving
- Semantic deduplication
- Background maintenance
- Connection pooling and caching
📚 Documentation & Setup
Essential Guides:
- **Claude Desktop Setup Guide** - Optimal configuration for new users (96% token reduction)
- **Installation Guide** - Complete setup and configuration
- **Configuration Reference** - Advanced customization options
- **API Documentation** - Complete tool reference
- **Best Practices Guide** - Advanced workflows and patterns
Quick Links:
- 🚀 **Quick Start** - Get optimal performance immediately
- 🛠️ **Getting Started** - Basic installation
- ⚙️ **Configuration** - Customize for your needs
- 🤝 **Contributing** - Help improve the project
The Honest FAQ
Q: Is this production-ready?
A: For personal use? Absolutely. For enterprise? Probably needs more testing and hardening.
Q: Why not use [existing solution]?
A: I tried. Nothing gave me the exact combination of persistence, security, and workflow integration I wanted.
Q: Will this slow down Claude?
A: In my experience, no. The context loading is fast, and having persistent memory actually makes conversations more efficient.
Q: What if I find bugs?
A: Please report them! I use this daily, so bugs get fixed quickly.
Q: Can I use this for commercial projects?
A: MIT license, so yes. Just don't blame me if something breaks.
What's Next
Near-term roadmap:
- Better onboarding and setup experience
- More intelligent autonomous behaviors
- Plugin system for custom tools
- Improved performance monitoring
- Better mobile/web interface options
Longer-term possibilities:
- Multi-user support
- Cloud synchronization
- Advanced workflow automation
- Integration with more development tools
- AI model fine-tuning on your patterns
Support & Community
- 📖 Docs: Installation Guide • Configuration
- 🐛 Issues: Report bugs and request features
- 💬 Discussions: Share ideas and get help
- 📧 Direct: Open an issue if you need help or want to chat
💙 Support This Project
This project is a labor of love, built with too much coffee and stubborn determination. If Context Savvy MCP makes your AI interactions better, consider supporting its development:
- ☕ **Buy me a coffee on Ko-fi** - Keep the caffeine-fueled coding sessions going
- ⭐ Star the repository - It genuinely motivates continued development
- 🐛 Report bugs - Help make it better for everyone
- 💡 Share ideas - Your feedback shapes the roadmap
- 🤝 Contribute code - Join the development effort
Every cup of coffee, every star, every contribution helps keep this project alive and growing. Thank you for being part of the journey!
License & Acknowledgments
MIT License - do whatever you want with it.
Built on the shoulders of:
- Model Context Protocol - The foundation that makes this possible
- Anthropic - For Claude and the ecosystem
- Claude Desktop community - For inspiration and feedback
- Excessive amounts of coffee ☕ - For making late-night coding sessions bearable
---
Made with ❤️ and stubborn determination
_If this makes your AI interactions even 10% better, it was worth building._
Similar MCP
Based on tags & features
Trending MCP
Most active this week