Skip to main content
Glama
SerenaHangSinclair

MCP MS SQL Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DB_TYPEYesDatabase type, must be 'mssql'
MSSQL_PORTNoSQL Server port, default 1433
MSSQL_USERYesDatabase username
MSSQL_SERVERYesSQL Server address, e.g. tcp:your-server.database.windows.net
MSSQL_ENCRYPTNoEncrypt connection, default true
QUERY_TIMEOUTNoQuery timeout in milliseconds, default 30000
MSSQL_DATABASEYesDatabase name
MSSQL_PASSWORDYesDatabase password
CONNECTION_POOL_MAXNoMaximum connection pool size, default 10
CONNECTION_POOL_MINNoMinimum connection pool size, default 1
ALLOW_DELETE_OPERATIONNoAllow delete operations, default false
ALLOW_INSERT_OPERATIONNoAllow insert operations, default false
ALLOW_UPDATE_OPERATIONNoAllow update operations, default false
ALLOW_WRITE_OPERATIONSNoAllow write operations globally, default false
MSSQL_TRUST_SERVER_CERTIFICATENoTrust server certificate, default true

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
sql_queryC

Execute a SQL query on the MS SQL Server database

get_database_infoA

Get information about the database server and available databases

show_tablesB

Show all tables in the current database

describe_tableC

Get detailed information about a table's structure

show_indexesC

Show indexes for a table or all tables

generate_analysis_notebookC

Generate a Jupyter notebook with Python code to analyze SQL query results

generate_visualizationB

Generate visualizations (bar, scatter, pie, line, heatmap, table) from SQL query results

generate_powerbi_visualizationC

Generate Power BI compatible data and visualization metadata

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SerenaHangSinclair/mcp-mssql-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server