MCPQL (v1.1.0) is a Model Context Protocol server for SQL Server database analysis and operations, targeting Node.js 18+. It provides 10 tools for database analysis, object discovery, and data manipulation via MCP. Differentiators: native MCP protocol support, works with Claude Desktop/Cursor IDE/Trae AI, supports SQL Server 2016+ and Azure SQL, Docker-ready. Released under MIT, actively maintained.
npm install mcpqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to start the MCPQL server programmatically with environment variable based SQL Server configuration.
Use import syntax or ensure your project is configured for ESM (e.g., type: 'module' in package.json).
Upgrade Node.js to version 18 or later.
Use secure credential management (e.g., secret managers) and avoid hardcoding in config files.
Use the server within an MCP-compatible host (e.g., Claude Desktop) or wrap with an MCP-to-HTTP bridge.
Use local installation: npm install -g mcpql or run via Docker.
Switch to import syntax or set type: 'module' in package.json.
Run npm install mcpql or use npx. Check that you are in the correct directory.
Verify DB_SERVER, DB_PORT, DB_USER, DB_PASSWORD environment variables. Check network connectivity and SQL Server instance configuration.