Skip to main content
Glama
millelog

SQL Server MCP

by millelog

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MAX_ROWSNoMaximum rows returned100
MSSQL_HOSTNoSQL Server hostnamelocalhost
MSSQL_PORTNoSQL Server port1433
MSSQL_USERNoUsername
QUERY_TIMEOUTNoQuery timeout (seconds)30
MSSQL_DATABASENoDefault databasemaster
MSSQL_PASSWORDNoPassword
ALLOWED_DATABASESNoComma-separated allowlist
BLOCKED_DATABASESNoComma-separated blocklist
MSSQL_CONNECTION_STRINGNoFull connection string (overrides above)

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_databasesB

List all accessible databases on the SQL Server

list_tablesC

List all tables in a database

get_table_definitionB

Get the full CREATE TABLE definition for a table

get_table_columnsC

Get detailed column information for a table

get_table_indexesC

Get index information for a table

get_table_relationshipsA

Get foreign key relationships for a table

list_viewsC

List all views in a database

get_view_definitionB

Get the CREATE VIEW definition

get_view_columnsC

Get column information for a view

list_proceduresC

List all stored procedures in a database

get_procedure_definitionB

Get the CREATE PROCEDURE definition

get_procedure_parametersB

Get parameter information for a stored procedure

list_functionsB

List all user-defined functions in a database

get_function_definitionC

Get the CREATE FUNCTION definition

execute_queryB

Execute a read-only SELECT query

get_sample_dataB

Get sample rows from a table

search_objectsB

Search for database objects by name across all databases

search_definitionsC

Search within object definitions (procedure/function/view source code)

list_schemasB

List all schemas in a database with object counts

get_schema_overviewC

Get an overview of a database schema (counts of objects, size info)

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/millelog/sql-server-mcp'

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