Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AAS LanceDB MCP Serversearch for eco-friendly products in the catalog"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AAS LanceDB MCP Server
A comprehensive Model Context Protocol (MCP) server that provides AI agents with database-like operations over LanceDB with automatic embedding generation using state-of-the-art BGE-M3 multilingual embeddings.
β¨ Why This MCP Server?
π― Database-like Interface: Works like SQLite MCP - create tables, CRUD operations, migrations
π€ Automatic Embeddings: BGE-M3 generates 1024D multilingual embeddings for searchable text
π Semantic Search: Natural language search across your data using vector similarity
π Rich Resources: Dynamic database inspection (schemas, samples, statistics)
π‘ Intelligent Prompts: AI guidance for schema design, optimization, troubleshooting
π‘οΈ Safe Migrations: Built-in table migration with validation and automatic backups
π Multilingual: BGE-M3 provides excellent performance across 100+ languages
π Quick Start
Install & Run with uvx (Recommended)
Install from Source
π οΈ MCP Capabilities Overview
π§ 10 Database Tools
Tool | Purpose | Example |
| Create tables with schema | Create products table with searchable descriptions |
| Show all tables | Get overview of database contents |
| Get table schema & info | Understand table structure and metadata |
| Delete tables | Remove unused tables |
| Add data (auto-embeddings) | Insert product with searchable description |
| Query with filtering/sorting | Find products by price range |
| Modify data (auto-embeddings) | Update product info with new description |
| Remove rows by conditions | Delete discontinued products |
| Semantic text search | "Find sustainable products" β matches related items |
| Safe schema changes | Add columns or change structure safely |
π Dynamic Resources
Resources provide AI agents with real-time database insights:
lancedb://overview- Complete database statistics and table summarylancedb://tables/{name}/schema- Table schema, columns, searchable fieldslancedb://tables/{name}/sample- Sample data for understanding contentslancedb://tables/{name}/stats- Column statistics, data quality metrics
π¬ 5 Intelligent Prompts
AI-powered guidance for database operations:
analyze_table- Generate insights about data patterns and qualitydesign_schema- Help design optimal table schemas for use casesoptimize_queries- Performance optimization recommendationstroubleshoot_performance- Diagnose and solve database issuesmigration_planning- Plan safe schema migrations step-by-step
π Usage Examples
Creating a Product Catalog
Adding Products (Embeddings Generated Automatically)
Semantic Search (Natural Language)
Database Inspection (Resources)
Returns sample product data for AI agents to understand the table structure.
AI Guidance (Prompts)
Returns AI-generated recommendations for optimal table design.
βοΈ Configuration
Claude Desktop Setup
Add to claude_desktop_config.json:
Environment Variables
Command Line Options
ποΈ Architecture
Key Technical Features
π― Database-like Interface: Familiar SQL-style operations hiding vector complexity
π€ Automatic Embedding Generation: BGE-M3 creates vectors for searchable text columns
π Hybrid Search: Combine semantic similarity with traditional filtering
π Dynamic Resources: Real-time database inspection for AI agents
π‘ Contextual Prompts: AI guidance using actual database state
π‘οΈ Migration Safety: Backup, validate, and rollback capabilities
π Multilingual: BGE-M3 excels across 100+ languages
π§ͺ Development & Testing
π Performance & Scalability
BGE-M3 Embeddings: 1024 dimensions, excellent multilingual performance
LanceDB Backend: Columnar vector database optimized for scale
Efficient Operations: Automatic embedding caching and batch processing
Memory Management: Lazy loading and streaming for large datasets
Search Performance: HNSW indexing for fast vector similarity search
π€ Contributing
Fork the repository
Create feature branch (
git checkout -b feature/amazing-feature)Make changes with tests (
pytest tests/)Format code (
uv run ruff format .)Submit Pull Request
π License
MIT License - see LICENSE file for details.
π Acknowledgments
LanceDB - High-performance columnar vector database
BGE-M3 - State-of-the-art multilingual embeddings
Model Context Protocol - Standardized AI tool integration
Sentence Transformers - Easy-to-use embedding framework
π Related MCP Projects
MCP Servers - Official MCP server collection
FastMCP - Fast Pythonic MCP framework
SQLite MCP - Database MCP inspiration
Ready to supercharge your AI agents with powerful database capabilities? π