SQL Server MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MAX_ROWS | No | Maximum rows returned | 100 |
| MSSQL_HOST | No | SQL Server hostname | localhost |
| MSSQL_PORT | No | SQL Server port | 1433 |
| MSSQL_USER | No | Username | |
| QUERY_TIMEOUT | No | Query timeout (seconds) | 30 |
| MSSQL_DATABASE | No | Default database | master |
| MSSQL_PASSWORD | No | Password | |
| ALLOWED_DATABASES | No | Comma-separated allowlist | |
| BLOCKED_DATABASES | No | Comma-separated blocklist | |
| MSSQL_CONNECTION_STRING | No | Full connection string (overrides above) |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 20 tools
Every tool targets a distinct resource and action, such as listing vs. getting definitions, columns, or relationships. No two tools have overlapping purposes; even similar operations like get_table_definition vs get_table_columns are clearly separated by what they return.
All tool names follow a consistent verb_noun pattern using snake_case, with verbs like execute, get, list, and search. The naming is predictable and uniform across the entire set.
20 tools is well-scoped for a SQL Server schema exploration and querying server. Each tool covers a specific need without redundancy, and the count is appropriate for the domain's complexity.
The tool set provides comprehensive coverage for read-only database operations: listing objects, retrieving definitions, columns, indexes, relationships, sample data, and executing queries. It also includes search capabilities. There are no obvious gaps for the intended read-only scope.