π Claude Desktop & Windsurf IDE - Setup Guide
Provides one-command install scripts and manual config templates to set up an MCP memory server with ML thresholds for Claude Desktop and Windsurf IDE.
What this file does
Provides one-command install scripts and manual config templates to set up an MCP memory server with ML thresholds for Claude Desktop and Windsurf IDE.
When to use it
- You want to install the mcp-memory-server with ML auto-triggering in Claude Desktop
- You want to install the same server in Windsurf IDE
- You need manual JSON configuration templates for either platform
- You are migrating from legacy separate servers to a unified main.py
Assumes this stack
π 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! π
What's inside
8 sections: quick install, installed components, config file paths, manual templates, test command, tool list, legacy differences, troubleshooting
Change this for your project
- Replace
PiGrieco/mcp-memory-auto-trigger-modelwith your own Hugging Face model ID - Replace
/path/to/mcp-memory-server/venv/bin/pythonwith the actual Python path on your system - Replace
/path/to/mcp-memory-server/main.pywith the actual server script path
Where it goes
Save as AGENTS.md in your repository root. Read by Codex, Cursor and other agents that follow the AGENTS.md convention.
Worth borrowing
- Providing both automatic install scripts and manual JSON templates gives users a quick path and a fallback
- Listing all ML thresholds in one block makes configuration transparent and easy to tweak
Related Documents
Browser-only development
Guides AI assistants on an Electron + React + TypeScript desktop app for browsing and organizing AI-generated images locally.
Claude Agents β Reference & Recommendations
Catalogues 40+ Claude agents and marketing skills for building a cat adoption charity landing page, with a ready-to-paste prompt and backend API reference.
Golden DKG Prototype -- Master Plan
Defines an 8-phase implementation plan for a Rust prototype of the Golden non-interactive DKG protocol using BLS12-381 and tokio.
Swarms Examples Index
Lists 60+ example scripts for building single and multi-agent systems with the Swarms framework, organized by category and use case.