Overview
Features
Auto-detect Configuration Mode
Automatically determines whether to use single- or multi-database mode at runtime based on environment variables.
Resource Management
Access SQL Server tables as resources via the MCP interface.
SQL Query Execution
Execute SQL queries against the connected database(s) and return results.
Schema Information
Retrieve metadata and schema details for database tables.
MCP Protocol Support
Communicates via STDIO using the Model Context Protocol SDK.
HTTP API
Express-based API for local testing and development.
Enhanced Validation
Uses Zod for robust input validation with clear error messages.
Security Features
Parameterized queries and SQL injection protection with safe error handling.
Who Is This For?
- Developers:Build MCP-based tooling to interact with SQL Server, expose tables as resources, and test via Express or MCP STDIO.




