Sezzlee SQL Server

v0.2.1
io.github.sezzlee/mssql Checked 8 hours ago Published 1 month ago

Explore and query Microsoft SQL Server read-only: catalogue search, schema and bounded queries.

Values you need

VariableWhat it is
SEZZLEE_MSSQL_SERVERrequired Database host
SEZZLEE_MSSQL_PORToptional Database port Default: 1433
SEZZLEE_MSSQL_DATABASErequired Database name
SEZZLEE_MSSQL_USERrequired Login of a read-only principal
SEZZLEE_MSSQL_PASSWORDrequired secret Password of that login
SEZZLEE_MSSQL_ENCRYPToptional Encrypt the connection Default: true
SEZZLEE_MSSQL_TRUST_SERVER_CERTIFICATEoptional Accept an unverified server certificate Default: false
SEZZLEE_MSSQL_CONNECT_TIMEOUT_MSoptional Connect timeout in milliseconds Default: 15000
SEZZLEE_MSSQL_QUERY_TIMEOUT_MSoptional Query timeout in milliseconds Default: 30000

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add mssql -e 'SEZZLEE_MSSQL_DATABASE=<SEZZLEE_MSSQL_DATABASE>' -e 'SEZZLEE_MSSQL_PASSWORD=<SEZZLEE_MSSQL_PASSWORD>' -e 'SEZZLEE_MSSQL_SERVER=<SEZZLEE_MSSQL_SERVER>' -e 'SEZZLEE_MSSQL_USER=<SEZZLEE_MSSQL_USER>' -- npx -y --package=@sezzlee/mssql-mcp@0.2.1 sezzlee-mssql
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mssql": {
      "args": [
        "-y",
        "--package=@sezzlee/mssql-mcp@0.2.1",
        "sezzlee-mssql"
      ],
      "command": "npx",
      "env": {
        "SEZZLEE_MSSQL_DATABASE": "<SEZZLEE_MSSQL_DATABASE>",
        "SEZZLEE_MSSQL_PASSWORD": "<SEZZLEE_MSSQL_PASSWORD>",
        "SEZZLEE_MSSQL_SERVER": "<SEZZLEE_MSSQL_SERVER>",
        "SEZZLEE_MSSQL_USER": "<SEZZLEE_MSSQL_USER>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mssql": {
      "args": [
        "-y",
        "--package=@sezzlee/mssql-mcp@0.2.1",
        "sezzlee-mssql"
      ],
      "command": "npx",
      "env": {
        "SEZZLEE_MSSQL_DATABASE": "<SEZZLEE_MSSQL_DATABASE>",
        "SEZZLEE_MSSQL_PASSWORD": "<SEZZLEE_MSSQL_PASSWORD>",
        "SEZZLEE_MSSQL_SERVER": "<SEZZLEE_MSSQL_SERVER>",
        "SEZZLEE_MSSQL_USER": "<SEZZLEE_MSSQL_USER>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "SEZZLEE_MSSQL_DATABASE",
      "id": "sezzlee-mssql-database",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "SEZZLEE_MSSQL_PASSWORD",
      "id": "sezzlee-mssql-password",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "SEZZLEE_MSSQL_SERVER",
      "id": "sezzlee-mssql-server",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "SEZZLEE_MSSQL_USER",
      "id": "sezzlee-mssql-user",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "mssql": {
      "args": [
        "-y",
        "--package=@sezzlee/mssql-mcp@0.2.1",
        "sezzlee-mssql"
      ],
      "command": "npx",
      "env": {
        "SEZZLEE_MSSQL_DATABASE": "${input:sezzlee-mssql-database}",
        "SEZZLEE_MSSQL_PASSWORD": "${input:sezzlee-mssql-password}",
        "SEZZLEE_MSSQL_SERVER": "${input:sezzlee-mssql-server}",
        "SEZZLEE_MSSQL_USER": "${input:sezzlee-mssql-user}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mssql]
command = "npx"
args = ["-y", "--package=@sezzlee/mssql-mcp@0.2.1", "sezzlee-mssql"]
env = { "SEZZLEE_MSSQL_DATABASE" = "<SEZZLEE_MSSQL_DATABASE>", "SEZZLEE_MSSQL_PASSWORD" = "<SEZZLEE_MSSQL_PASSWORD>", "SEZZLEE_MSSQL_SERVER" = "<SEZZLEE_MSSQL_SERVER>", "SEZZLEE_MSSQL_USER" = "<SEZZLEE_MSSQL_USER>" }

For AI agents

  1. Ask the user for: SEZZLEE_MSSQL_SERVER, SEZZLEE_MSSQL_DATABASE, SEZZLEE_MSSQL_USER, SEZZLEE_MSSQL_PASSWORD. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: describe_connection, search_catalog, describe_table, run_query.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json