π Claude Desktop & Windsurf IDE - Setup Guide
**Enhanced MCP Memory Server with Complete ML Configuration**
π Claude Desktop & Windsurf IDE - Setup Guide
Enhanced MCP Memory Server with Complete ML Configuration
π― Quick Installation
Claude Desktop π€
# Automatic installation
curl -sSL https://raw.githubusercontent.com/PiGrieco/mcp-memory-server/feature/complete-architecture-refactor/scripts/install/install_claude.sh | bash
Windsurf IDE π
# Automatic installation
curl -sSL https://raw.githubusercontent.com/PiGrieco/mcp-memory-server/feature/complete-architecture-refactor/scripts/install/install_windsurf.sh | bash
π§ What Gets Installed
β Complete ML Configuration:
- ML Model:
PiGrieco/mcp-memory-auto-trigger-model - Entry Point:
main.py(unified modern server) - Architecture: Enhanced server with all legacy ML features
π― ML Thresholds Configured:
ML_CONFIDENCE_THRESHOLD=0.7 # 70% ML confidence
TRIGGER_THRESHOLD=0.15 # 15% general trigger
SIMILARITY_THRESHOLD=0.3 # 30% search similarity
MEMORY_THRESHOLD=0.7 # 70% memory importance
SEMANTIC_THRESHOLD=0.8 # 80% semantic similarity
ML_TRIGGER_MODE=hybrid # Hybrid ML + rules
π Continuous Learning:
ML_TRAINING_ENABLED=true
ML_RETRAIN_INTERVAL=50
FEATURE_EXTRACTION_TIMEOUT=5.0
MAX_CONVERSATION_HISTORY=10
USER_BEHAVIOR_TRACKING=true
BEHAVIOR_HISTORY_LIMIT=1000
π Configuration Files Created
Claude Desktop:
- Path:
~/.config/claude/claude_desktop_config.json(Linux/Windows) - Path:
~/Library/Application Support/Claude/claude_desktop_config.json(macOS)
Windsurf IDE:
- Path:
~/mcp-memory-server/windsurf_config.json
π§ Manual Configuration
If you prefer manual setup, use these templates:
Claude Template:
{
"mcpServers": {
"mcp-memory-sam": {
"command": "/path/to/mcp-memory-server/venv/bin/python",
"args": ["/path/to/mcp-memory-server/main.py"],
"env": {
"ML_MODEL_TYPE": "huggingface",
"HUGGINGFACE_MODEL_NAME": "PiGrieco/mcp-memory-auto-trigger-model",
"AUTO_TRIGGER_ENABLED": "true",
"CLAUDE_MODE": "true",
"ML_CONFIDENCE_THRESHOLD": "0.7",
"TRIGGER_THRESHOLD": "0.15",
"SIMILARITY_THRESHOLD": "0.3",
"MEMORY_THRESHOLD": "0.7",
"SEMANTIC_THRESHOLD": "0.8",
"ML_TRIGGER_MODE": "hybrid"
}
}
}
}
Windsurf Template:
{
"mcpServers": {
"mcp-memory-sam": {
"command": "/path/to/mcp-memory-server/venv/bin/python",
"args": ["/path/to/mcp-memory-server/main.py"],
"env": {
"ML_MODEL_TYPE": "huggingface",
"HUGGINGFACE_MODEL_NAME": "PiGrieco/mcp-memory-auto-trigger-model",
"AUTO_TRIGGER_ENABLED": "true",
"WINDSURF_MODE": "true",
"ML_CONFIDENCE_THRESHOLD": "0.7",
"TRIGGER_THRESHOLD": "0.15",
"SIMILARITY_THRESHOLD": "0.3",
"MEMORY_THRESHOLD": "0.7",
"SEMANTIC_THRESHOLD": "0.8",
"ML_TRIGGER_MODE": "hybrid"
}
}
}
}
π§ͺ Testing Installation
After installation, verify everything works:
# Test server startup
cd ~/mcp-memory-server
python main.py --test
# Should output: β
Server imports and configuration successful
π Available SAM Tools
Once installed, you'll have access to all SAM tools:
save_memory- Save memories with ML embeddingssearch_memory- Semantic search through memoriesanalyze_message- Auto-trigger analysis with MLget_memory_stats- Complete system statisticslist_memories- List all saved memories
π Differences from Legacy
β Enhanced Features:
- Modern Architecture: Unified server (
main.py) vs separate legacy servers - Complete ML Config: All thresholds from legacy server included
- Better Error Handling: Improved stability and logging
- Flexible Configuration: YAML + environment variable support
- SAM Compatibility: 100% compatible with existing SAM workflows
π Migration Path:
- Old:
cursor_mcp_server.py,claude_mcp_server.py,windsurf_mcp_server.py - New:
main.pywith platform-specific environment variables - Result: Same functionality, better architecture
π οΈ Troubleshooting
Common Issues:
- Python Version: Requires Python 3.8+
- Virtual Environment: Auto-created during installation
- ML Model Download: ~63MB, downloaded on first use
- MongoDB: Auto-configured for local development
Support:
For issues, check the main repository: https://github.com/PiGrieco/mcp-memory-server
π§ Ready to use SAM with enhanced ML capabilities! π
Related Documents
Browser-only development
This document provides guidance for AI assistants working on the Image MetaHub codebase.
Claude Agents β Reference & Recommendations
Quick guide to available agents. Pick the one that best matches your task.
Golden DKG Prototype -- Master Plan
Rust prototype of the Golden non-interactive Distributed Key Generation protocol.
Swarms Examples Index
A comprehensive index of examples from the [Swarms Framework](https://github.com/The-Swarm-Corporation/swarms-examples).