We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/stevenjjobson/scs-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
download_model.py•1.12 KiB
#!/usr/bin/env python3
"""
Download and verify the sentence-transformer model
"""
import sys
from pathlib import Path
def download_model():
"""Download the model if not already present"""
try:
print("🤖 Checking AI model...")
from sentence_transformers import SentenceTransformer
model_name = 'all-MiniLM-L6-v2'
print(f" 📥 Loading model: {model_name}")
print(" (This will download ~90MB on first run)")
# This will download if not cached
model = SentenceTransformer(model_name)
# Test the model
test_embedding = model.encode("test", show_progress_bar=False)
print(f" ✅ Model ready! Embedding dimension: {len(test_embedding)}")
return True
except ImportError:
print(" ❌ sentence-transformers not installed")
print(" Run: pip install sentence-transformers")
return False
except Exception as e:
print(f" ❌ Failed to load model: {e}")
return False
if __name__ == "__main__":
success = download_model()
sys.exit(0 if success else 1)