A Model Context Protocol (MCP) server that provides SQL Server database query capabilities using the tedious driver. Current stable version is 1.0.1, released with no formal release cadence. It enables AI agents (via MCP) to execute SQL queries on SQL Server databases. Key differentiators: pure JavaScript implementation with no native dependencies, environment-based configuration, and support for encrypted/unencrypted connections. Requires Node.js >=18, ESM only. Suitable for local development and production workloads with trusted certificates.
npm install mcp-sql-serverNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Runs the MCP SQL Server with environment-based configuration, connecting to a local SQL Server instance.
Use ES module imports (import ... from ...) and ensure 'type': 'module' in package.json.
Set DB_TRUST_SERVER_CERTIFICATE=true (not 'true') and DB_PORT=1433 (not '1433').
Configure SQL Server to enable mixed mode authentication.
Set DB_ENCRYPT=false for local development or DB_TRUST_SERVER_CERTIFICATE=true for self-signed certs.
Run 'npm install @modelcontextprotocol/sdk' or ensure it is listed in package.json and node_modules are installed.
Verify DB_HOST and DB_PORT are correct, and that SQL Server is running and accessible.
Check DB_USER and DB_PASSWORD environment variables. Enable SQL Server Authentication (mixed mode) in SQL Server.
Set DB_TRUST_SERVER_CERTIFICATE=true to trust all certificates, or install a valid certificate.