Skip to main content
Glama
ConnorBritain

MSSQL MCP Reader

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SERVER_NAMEYesSQL Server hostname/IP
SCRIPTS_PATHNoPath to named SQL scripts directory
SQL_PASSWORDNoPassword for SQL or Windows auth (required if SQL_AUTH_MODE is sql or windows)
SQL_USERNAMENoUsername for SQL or Windows auth (required if SQL_AUTH_MODE is sql or windows)
DATABASE_NAMEYesTarget database
SQL_AUTH_MODENoAuthentication mode: sql, windows, or aadaad
AUDIT_LOG_PATHNoCustom audit log path
ENVIRONMENTS_CONFIG_PATHNoPath to multi-environment JSON config

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
read_dataA

Executes a read-only SELECT query. Auto-limits results if no TOP clause present. Blocks destructive operations.

list_tablesA

Lists tables in an MSSQL Database, optionally filtered by schema. For server-level access environments, you can specify a database to list tables from.

list_databasesA

Lists databases on the SQL Server instance. Requires server-level access. Filtered by environment policies.

list_environmentsA

Lists all configured database environments available for connection. Shows environment names, descriptions, access levels, and policy restrictions. Use this to discover which environments are available before running queries.

validate_environment_configA

Validates the environments.json configuration file for correctness and security best practices.

Checks include:

  • Required fields (name, server, database for database-level; name, server for server-level)

  • Valid authentication mode configuration

  • Policy consistency (e.g., readonly + allowedTools including write tools)

  • Secret placeholder syntax

  • Access level configuration validity

  • Tier designation consistency

Returns validation results for each environment with errors and warnings.

list_scriptsB

Lists available named SQL scripts. Scripts are pre-approved SQL templates that can be executed with parameters.

run_scriptA

Executes a named SQL script with parameters. Scripts are pre-approved SQL templates. Use list_scripts to see available scripts.

describe_tableB

Describes the schema (columns and types) of a specified MSSQL Database table. For server-level access environments, you can specify a database to target.

search_schemaC

Searches tables and columns using wildcard patterns to discover schema names.

profile_tableA

Profiles a table by analyzing column statistics, data distributions, and sample records. Returns metadata, cardinality info, null counts, and representative samples for each column.

inspect_relationshipsA

Describes inbound and outbound foreign-key relationships for a given table, including column mappings and referential actions.

inspect_dependenciesA

Shows what database objects depend on a table, view, or other object. Use for impact analysis before schema changes.

test_connectionC

Tests connectivity to a database environment and returns status, latency, and basic server info.

explain_queryA

Generates an estimated execution plan (SHOWPLAN_XML) for a SQL query without executing it.

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/ConnorBritain/mssql-mcp-reader'

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