SQL Query Tools MCP Server
by negrip
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MAX_ROWS | No | Maximum rows returned per query. | 200 |
| SQL_USER | Yes | The database user. | |
| AUDIT_LOG | No | Set to true to enable audit logging. | false |
| SQL_SERVER | Yes | The SQL Server hostname or IP address. | |
| SQL_ENCRYPT | No | Set to true for Azure SQL or cloud servers. | false |
| SQL_DATABASE | Yes | The database name. | |
| SQL_INSTANCE | No | Named instance of SQL Server (leave empty if default). | |
| SQL_PASSWORD | Yes | The database password. | |
| AUDIT_LOG_DIR | No | Directory for audit log files. | ./logs |
| ALLOWED_TABLES | No | Comma-separated list of allowed tables/views (supports wildcards). Leave empty for all. | |
| SQL_QUERY_TIMEOUT | No | Query timeout in milliseconds. | 30000 |
| SQL_TRUST_SERVER_CERT | No | Set to true to trust server certificate. | true |
| SCHEMA_CACHE_TTL_MINUTES | No | Cache duration for schema in minutes. | 5 |
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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