SQL Server Express MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SQL_SERVER_AUTHYesAuthentication mode to use. Can be 'windows' for Windows Authentication or 'sql' for SQL Server Authentication.
SQL_SERVER_INSTANCEYesThe SQL Server instance to connect to, e.g., server\instance.
SQL_SERVER_PASSWORDNoThe password for SQL Server authentication. Required if `SQL_SERVER_AUTH` is set to 'sql'.
SQL_SERVER_USERNAMENoThe username for SQL Server authentication. Required if `SQL_SERVER_AUTH` is set to 'sql'.
SQL_SERVER_ALLOWED_DATABASESYesA comma-separated list of databases that are allowed to be accessed.
SQL_SERVER_TRUSTED_CONNECTIONYesWhether to use a trusted connection. Set to 'yes' or 'no'.
SQL_SERVER_TRUST_SERVER_CERTIFICATEYesWhether to trust the server's certificate. Set to 'yes' or 'no'.

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools