SQL Server MCP

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DB_HOSTYesThe host address of the MSSQL database serverlocalhost
DB_PORTYesThe port number of the MSSQL database server1433
DB_DATABASEYesThe name of the MSSQL database to connect to
DB_PASSWORDYesThe password for connecting to the MSSQL database
DB_USERNAMEYesThe username for connecting to the MSSQL database

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
get-tables

Get a list of all tables in the database

get-table

Get a specific table by name

get-stored-procedures

Get a list of all stored procedures in the database

get-stored-procedure

Get a specific stored procedure by name

query

Query the database with a SQL statement

start-transaction

Start a new transaction

commit-transaction

Commit a transaction

rollback-transaction

Rollback a transaction

ID: o4qk49s0sp