All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
This is the first stable release of the MCP libSQL server, providing comprehensive database operations through the Model Context Protocol.
- read-query: Execute SELECT queries with comprehensive security validation
- write-query: INSERT/UPDATE/DELETE operations with transaction support
- create-table: DDL operations for table creation with security measures
- alter-table: Table structure modifications (ADD/RENAME/DROP operations)
- list-tables: Database metadata browsing with filtering options
- describe-table: Table schema inspection with multiple output formats
- Multi-layer SQL injection prevention with comprehensive validation
- 67 security tests covering all injection vectors
- Parameterized query support for safe data handling
- Comprehensive audit logging for security compliance
- Authentication support for libSQL/Turso databases
- File-based databases: Local SQLite/libSQL files
- HTTP databases: Remote libSQL servers over HTTP
- Turso databases: Cloud libSQL with authentication
- Connection pooling with health monitoring
- Automatic retry logic with graceful degradation
- Beautiful table formatting with proper alignment and NULL handling
- Performance metrics displayed for all operations
- Clear error messages with actionable context
- Development mode with enhanced logging and hot reload
- Multiple logging modes (file, console, both, none)
- macOS: Native Node.js installation
- Linux: Native Node.js installation
- Windows: WSL2 support with proper command handling
- Node.js 20+ requirement for modern JavaScript features
- 403 comprehensive tests covering all functionality
- 67 dedicated security tests for injection prevention
- 100% test pass rate with robust error handling
- Coverage for all tools, edge cases, and error scenarios
- Continuous integration with automated testing
- TypeScript strict mode with explicit type checking
- Complete API documentation with examples
- Security documentation with threat model
- Troubleshooting guide for common issues
- Installation guides for all platforms
- MCP integration examples for Claude Desktop
- Flexible database URL configuration
- Environment variable support for secure token handling
- Multiple authentication methods
- Configurable logging modes
- Development and production modes
- Built with TypeScript and modern Node.js patterns
- Tool-based architecture with consistent validation
- Security-first design with input sanitization
- Connection pooling with automatic health checks
- Graceful error handling and recovery
@libsql/client ^0.15.7: Core libSQL database connectivity@modelcontextprotocol/sdk ^1.12.0: MCP protocol implementationzod ^3.25.32: Runtime type validation and parsing
- Available on npm as
@xexr/mcp-libsql - Global installation support with
mcp-libsqlcommand - Automated publishing with GitHub Actions
- Semantic versioning for reliable updates
npm install -g @xexr/mcp-libsql# Quick test with file database
mcp-libsql --url file:///tmp/test.db
# Turso database with authentication
LIBSQL_AUTH_TOKEN="token" mcp-libsql --url "libsql://db.turso.io"Add to your claude_desktop_config.json:
{
"mcpServers": {
"libsql": {
"command": "mcp-libsql",
"args": ["--url", "file:///path/to/database.db"]
}
}
}This release includes comprehensive security measures:
- SQL injection prevention across all tools
- Input validation with Zod schemas
- Parameterized queries for data operations
- Authentication token handling for cloud databases
- Audit logging for security compliance
For detailed security information, see docs/SECURITY.md.
None at this time. See docs/TROUBLESHOOTING.md for help with common setup issues.
For more information, see the README and documentation.