Authentication Modes
MCP-Go-MSSQL supports multiple authentication methods to adapt to different environments.
SQL Server Authentication
Section titled “SQL Server Authentication”The default method. Uses SQL Server username and password.
MSSQL_AUTH=sqlMSSQL_USER=app_userMSSQL_PASSWORD=your_passwordWindows Integrated (SSPI)
Section titled “Windows Integrated (SSPI)”Uses the current Windows user’s credentials. No username or password required in configuration.
MSSQL_AUTH=integratedSee Windows Authentication (SSPI) for configuration details.
Azure Active Directory
Section titled “Azure Active Directory”For Azure SQL databases.
MSSQL_AUTH=azureMSSQL_USER=user@tenant.onmicrosoft.comMSSQL_PASSWORD=your_passwordCustom connection string
Section titled “Custom connection string”When you need full control over connection parameters:
MSSQL_CONNECTION_STRING="server=myserver;database=mydb;user id=myuser;password=mypass;encrypt=true"This variable overrides all other connection variables.
Authentication priority
Section titled “Authentication priority”MSSQL_CONNECTION_STRING(if defined, used directly)MSSQL_AUTH=integrated(SSPI, ignores user/password)MSSQL_AUTH=azure(Azure AD)MSSQL_AUTH=sqlor undefined (SQL Server auth by default)