Skip to main content
Glama

MSSQL MCP Server

by knight0zh

query

Execute SQL queries on Microsoft SQL Server databases by providing connection details and query input to retrieve or manage data directly.

Instructions

Execute a SQL query on a MSSQL database

Input Schema

NameRequiredDescriptionDefault
connectionStringNoFull connection string (alternative to individual parameters)
databaseNoDatabase name (default: master)
encryptNoEnable encryption (default: false)
hostNoDatabase server hostname
passwordNoDatabase password
portNoDatabase server port (default: 1433)
queryYesSQL query to execute
trustServerCertificateNoTrust server certificate (default: true)
usernameNoDatabase username

Input Schema (JSON Schema)

{ "oneOf": [ { "required": [ "connectionString" ] }, { "required": [ "host", "username", "password" ] } ], "properties": { "connectionString": { "description": "Full connection string (alternative to individual parameters)", "type": "string" }, "database": { "description": "Database name (default: master)", "type": "string" }, "encrypt": { "description": "Enable encryption (default: false)", "type": "boolean" }, "host": { "description": "Database server hostname", "type": "string" }, "password": { "description": "Database password", "type": "string" }, "port": { "description": "Database server port (default: 1433)", "type": "number" }, "query": { "description": "SQL query to execute", "type": "string" }, "trustServerCertificate": { "description": "Trust server certificate (default: true)", "type": "boolean" }, "username": { "description": "Database username", "type": "string" } }, "required": [ "query" ], "type": "object" }
Install Server

Other Tools from MSSQL MCP Server

Related Tools

    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/knight0zh/mssql-mcp-server'

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