Skip to main content
Glama
kushgit9842

mssql-readonly-mcp

by kushgit9842

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MAX_ROWSNoMaximum rows returned per query. Prevents accidentally dumping huge tables1000
MSSQL_AUTHNoAuthentication type. Only `sql` is supported currentlysql
MSSQL_PORTNoThe TCP port SQL Server listens on1433
MSSQL_USERYesThe read-only SQL login you create in Step 1
MSSQL_SERVERYesYour server hostname. E.g. `localhost`, `localhost\SQLEXPRESS`, or `myserver.com,1433`
MCP_HTTP_PORTNoPort to listen on when using HTTP transport3000
MCP_TRANSPORTNoHow the server communicates. Use `stdio` for local AI clients, `http` for remote/multi-client setupsstdio
MSSQL_ENCRYPTNoWhether to encrypt the connection (recommended)true
MSSQL_DATABASEYesThe default database to connect to
MSSQL_PASSWORDYesPassword for the read-only login. **Never use `sa`**
MCP_HTTP_API_KEYNoOptional API key to restrict access to the HTTP endpoint
QUERY_TIMEOUT_MSNoHow long (in milliseconds) before a query is cancelled. `30000` = 30 seconds30000
MSSQL_TRUST_SERVER_CERTNoSet to `true` for local/dev servers with self-signed certificatestrue

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

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/kushgit9842/MCP_MS_SQL'

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