Skip to main content
Glama
negrip

SQL Query Tools MCP Server

by negrip

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MAX_ROWSNoMaximum rows returned per query.200
SQL_USERYesThe database user.
AUDIT_LOGNoSet to true to enable audit logging.false
SQL_SERVERYesThe SQL Server hostname or IP address.
SQL_ENCRYPTNoSet to true for Azure SQL or cloud servers.false
SQL_DATABASEYesThe database name.
SQL_INSTANCENoNamed instance of SQL Server (leave empty if default).
SQL_PASSWORDYesThe database password.
AUDIT_LOG_DIRNoDirectory for audit log files../logs
ALLOWED_TABLESNoComma-separated list of allowed tables/views (supports wildcards). Leave empty for all.
SQL_QUERY_TIMEOUTNoQuery timeout in milliseconds.30000
SQL_TRUST_SERVER_CERTNoSet to true to trust server certificate.true
SCHEMA_CACHE_TTL_MINUTESNoCache duration for schema in minutes.5

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/negrip/mcp-sqlserver-readonly'

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