If you discover a security vulnerability, please email [email protected] instead of using the public issue tracker.
When using this MCP server:
- Database User: Create a dedicated SQL user with minimal permissions
- Never use sa/admin accounts in production
- Use Windows Authentication when possible
- Enable encryption for sensitive data:
MSSQL_ENCRYPT=true - Restrict permissions to only necessary tables and operations
This server includes built-in protection against SQL injection:
- Table names are validated with strict regex patterns
- All identifiers are properly escaped
- User input is parameterized where possible
-- Create a restricted user
CREATE LOGIN mcp_user WITH PASSWORD = 'StrongPassword123!';
CREATE USER mcp_user FOR LOGIN mcp_user;
-- Grant only necessary permissions
GRANT SELECT ON Schema.TableName TO mcp_user;
GRANT INSERT, UPDATE ON Schema.AuditLog TO mcp_user;