SQL Server MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MSSQL_HOST | Yes | SQL Server hostname | |
| MSSQL_PORT | No | Server port | 1433 |
| MSSQL_USER | Yes | Database username | |
| MSSQL_DATABASE | Yes | Database name | |
| MSSQL_MAX_ROWS | No | Query row limit | 1000 |
| MSSQL_PASSWORD | Yes | Database password | |
| MSSQL_READ_ONLY | No | Block write operations | false |
| MSSQL_QUERY_TIMEOUT | No | Query timeout (seconds) | 60 |
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
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| connectA | Establish connection to the SQL Server database. |
| disconnectA | Close all connections to the SQL Server database. |
| list_connectionsB | List all active database connections. |
| read_rowsA | Read rows from a table by primary key or filter. |
| insert_rowB | Insert a new row into a table. |
| update_rowA | Update an existing row by primary key. |
| delete_rowA | Delete a row by primary key. |
| list_databasesA | List all available databases on the SQL Server. |
| switch_databaseA | Switch the active database context. |
| export_to_jsonA | Export query results to a JSON file. |
| export_to_csvA | Export query results to a CSV file. |
| execute_queryA | Execute a read-only SQL query and return results. |
| validate_queryA | Check if a query is safe to execute without running it. |
| list_stored_procsA | List available stored procedures in the database. |
| describe_stored_procB | Get parameter information for a stored procedure. |
| call_stored_procB | Execute a stored procedure. |
| list_tablesA | List all tables and views in the database. |
| describe_tableA | Get detailed column information for a table. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| get_tsql_syntax | T-SQL syntax reference for SQL Server queries. Provides a quick reference for T-SQL query syntax, including SELECT, WHERE, JOIN, aggregation functions, and common data types. |
TDQS
Scored across 18 tools
Every tool has a clearly distinct purpose with no ambiguity. For example, call_stored_proc is for executing procedures while describe_stored_proc is for inspecting them, and read_rows is for reading data while execute_query is for running SELECT queries. The tools cover different aspects of SQL Server interaction without overlap.
All tools follow a consistent verb_noun naming pattern throughout. Examples include describe_table, list_tables, insert_row, update_row, and export_to_csv. The naming is predictable and follows the same convention across all 18 tools.
With 18 tools, the count is slightly high but reasonable for a comprehensive SQL Server interface. The tools cover connection management, CRUD operations, stored procedures, metadata inspection, and data export, which justifies the number. It's well-scoped but could potentially be streamlined.
The tool surface provides complete coverage for SQL Server interaction. It includes connection management (connect, disconnect, list_connections), database operations (list_databases, switch_database), table operations (full CRUD with insert_row, read_rows, update_row, delete_row), stored procedure handling, metadata inspection, query execution, validation, and data export. No obvious gaps exist for the domain.