|
| 1 | +# First-Time Setup Guide |
| 2 | + |
| 3 | +This guide explains what to expect when running MCP Memory Service for the first time. |
| 4 | + |
| 5 | +## 🎯 What to Expect on First Run |
| 6 | + |
| 7 | +When you start the MCP Memory Service for the first time, you'll see several warnings and messages. **This is completely normal behavior** as the service initializes and downloads necessary components. |
| 8 | + |
| 9 | +## 📋 Normal First-Time Warnings |
| 10 | + |
| 11 | +### 1. Snapshots Directory Warning |
| 12 | +``` |
| 13 | +WARNING:mcp_memory_service.storage.sqlite_vec:Failed to load from cache: No snapshots directory |
| 14 | +``` |
| 15 | + |
| 16 | +**What it means:** |
| 17 | +- The service is checking for previously downloaded embedding models |
| 18 | +- On first run, no cache exists yet, so this warning appears |
| 19 | +- The service will automatically download the model |
| 20 | + |
| 21 | +**This is normal:** ✅ Expected on first run |
| 22 | + |
| 23 | +### 2. TRANSFORMERS_CACHE Warning |
| 24 | +``` |
| 25 | +WARNING: Using TRANSFORMERS_CACHE is deprecated |
| 26 | +``` |
| 27 | + |
| 28 | +**What it means:** |
| 29 | +- This is an informational warning from the Hugging Face library |
| 30 | +- It doesn't affect the service functionality |
| 31 | +- The service handles caching internally |
| 32 | + |
| 33 | +**This is normal:** ✅ Can be safely ignored |
| 34 | + |
| 35 | +### 3. Model Download Progress |
| 36 | +``` |
| 37 | +Downloading model 'all-MiniLM-L6-v2'... |
| 38 | +``` |
| 39 | + |
| 40 | +**What it means:** |
| 41 | +- The service is downloading the embedding model (approximately 25MB) |
| 42 | +- This happens only once on first setup |
| 43 | +- Download time: 1-2 minutes on average internet connection |
| 44 | + |
| 45 | +**This is normal:** ✅ One-time download |
| 46 | + |
| 47 | +## 🚦 Success Indicators |
| 48 | + |
| 49 | +After successful first-time setup, you should see: |
| 50 | + |
| 51 | +``` |
| 52 | +INFO: SQLite-vec storage initialized successfully with embedding dimension: 384 |
| 53 | +INFO: Memory service started on port 8443 |
| 54 | +INFO: Ready to accept connections |
| 55 | +``` |
| 56 | + |
| 57 | +## 📊 First-Time Setup Timeline |
| 58 | + |
| 59 | +| Step | Duration | What's Happening | |
| 60 | +|------|----------|-----------------| |
| 61 | +| 1. Service Start | Instant | Loading configuration | |
| 62 | +| 2. Cache Check | 1-2 seconds | Checking for existing models | |
| 63 | +| 3. Model Download | 1-2 minutes | Downloading embedding model (~25MB) | |
| 64 | +| 4. Model Loading | 5-10 seconds | Loading model into memory | |
| 65 | +| 5. Database Init | 2-3 seconds | Creating database structure | |
| 66 | +| 6. Ready | - | Service is ready to use | |
| 67 | + |
| 68 | +**Total first-time setup:** 2-3 minutes |
| 69 | + |
| 70 | +## 🔄 Subsequent Runs |
| 71 | + |
| 72 | +After the first successful run: |
| 73 | +- No download warnings will appear |
| 74 | +- Model loads from cache (5-10 seconds) |
| 75 | +- Service starts much faster (10-15 seconds total) |
| 76 | + |
| 77 | +## 🐧 Ubuntu/Linux Specific Notes |
| 78 | + |
| 79 | +For Ubuntu 24 and other Linux distributions: |
| 80 | + |
| 81 | +### Prerequisites |
| 82 | +```bash |
| 83 | +# System dependencies |
| 84 | +sudo apt update |
| 85 | +sudo apt install python3.10 python3.10-venv python3.10-dev python3-pip |
| 86 | +sudo apt install build-essential libblas3 liblapack3 liblapack-dev libblas-dev gfortran |
| 87 | +``` |
| 88 | + |
| 89 | +### Recommended Setup |
| 90 | +```bash |
| 91 | +# Create virtual environment |
| 92 | +python3 -m venv venv |
| 93 | +source venv/bin/activate |
| 94 | + |
| 95 | +# Install the service |
| 96 | +python install.py |
| 97 | + |
| 98 | +# Start the service |
| 99 | +uv run memory server |
| 100 | +``` |
| 101 | + |
| 102 | +## 🔧 Troubleshooting First-Time Issues |
| 103 | + |
| 104 | +### Issue: Download Fails |
| 105 | +**Solution:** |
| 106 | +- Check internet connection |
| 107 | +- Verify firewall/proxy settings |
| 108 | +- Clear cache and retry: `rm -rf ~/.cache/huggingface` |
| 109 | + |
| 110 | +### Issue: "No module named 'sentence_transformers'" |
| 111 | +**Solution:** |
| 112 | +```bash |
| 113 | +pip install sentence-transformers torch |
| 114 | +``` |
| 115 | + |
| 116 | +### Issue: Permission Denied |
| 117 | +**Solution:** |
| 118 | +```bash |
| 119 | +# Fix permissions |
| 120 | +chmod +x scripts/*.sh |
| 121 | +sudo chown -R $USER:$USER ~/.mcp_memory_service/ |
| 122 | +``` |
| 123 | + |
| 124 | +### Issue: Service Doesn't Start After Download |
| 125 | +**Solution:** |
| 126 | +1. Check logs: `uv run memory server --debug` |
| 127 | +2. Verify installation: `python scripts/verify_environment.py` |
| 128 | +3. Restart with clean state: |
| 129 | + ```bash |
| 130 | + rm -rf ~/.mcp_memory_service |
| 131 | + uv run memory server |
| 132 | + ``` |
| 133 | + |
| 134 | +## ✅ Verification |
| 135 | + |
| 136 | +To verify successful setup: |
| 137 | + |
| 138 | +```bash |
| 139 | +# Check service health |
| 140 | +curl -k https://localhost:8443/api/health |
| 141 | + |
| 142 | +# Or using the CLI |
| 143 | +uv run memory health |
| 144 | +``` |
| 145 | + |
| 146 | +Expected response: |
| 147 | +```json |
| 148 | +{ |
| 149 | + "status": "healthy", |
| 150 | + "storage_backend": "sqlite_vec", |
| 151 | + "model_loaded": true |
| 152 | +} |
| 153 | +``` |
| 154 | + |
| 155 | +## 🎉 Setup Complete! |
| 156 | + |
| 157 | +Once you see the success indicators and the warnings have disappeared on subsequent runs, your MCP Memory Service is fully operational and ready to use! |
| 158 | + |
| 159 | +### Next Steps: |
| 160 | +- [Configure Claude Desktop](../README.md#claude-desktop-integration) |
| 161 | +- [Store your first memory](../README.md#basic-usage) |
| 162 | +- [Explore the API](https://github.com/doobidoo/mcp-memory-service/wiki) |
| 163 | + |
| 164 | +## 📝 Notes |
| 165 | + |
| 166 | +- The model download is a one-time operation |
| 167 | +- Downloaded models are cached in `~/.cache/huggingface/` |
| 168 | +- The service creates a database in `~/.mcp_memory_service/` |
| 169 | +- All warnings shown during first-time setup are expected behavior |
| 170 | +- If you see different errors (not warnings), check the [Troubleshooting Guide](troubleshooting/general.md) |
| 171 | + |
| 172 | +--- |
| 173 | + |
| 174 | +Remember: **First-time warnings are normal!** The service is working correctly and setting itself up for optimal performance. |
0 commit comments