sqlserver-mcp 0.7.1

SQL Server 2025/2022/2019/2017 - master/msdb/model combined catalog MCP server, generated by mcpify.
Documentation
# Security Policy

## Supported versions

Only the latest release of `sqlserver-mcp` receives security fixes.

## Reporting a vulnerability

Please do **not** open a public issue. Report it privately through GitHub's
[private vulnerability reporting](https://github.com/guercheLE/sqlserver-mcp-rs/security/advisories/new)
and include:

- the `sqlserver-mcp` version (`sqlserver-mcp version`) and how it runs
  (stdio, HTTP, Docker);
- the SQL Server version and auth method (`sql_server` / `windows` / `azure_ad`);
- the steps, operation id or `call` arguments that trigger the problem.

You should get an acknowledgement within 7 days. Once a fix is released, the
advisory is published with credit to the reporter unless you'd rather stay
anonymous.

## Scope

In scope:

- credential handling (OS keychain, the encrypted-file fallback, env vars);
- the auth strategies and the TDS connection setup (TLS, certificate trust);
- `SQLSERVER_READ_ONLY` enforcement — any way for `call` to run a stored
  procedure or otherwise write while read-only mode is on;
- SQL injection through `call` arguments, parameter names or the execution
  database;
- the HTTP transport (CORS, request handling) and the embedded SQLite store.

Out of scope: vulnerabilities in SQL Server itself, permissions a DBA granted
to the connecting login (this server can never do more than that login can),
and third-party dependencies with no `sqlserver-mcp`-specific exposure
(report those upstream).

## Hardening recommendations

- Connect with a dedicated, least-privilege login (see the README's
  *Minimum SQL Server permissions*), not `sa`.
- Keep `SQLSERVER_READ_ONLY=true` unless you need stored procedures.
- Set `SQLSERVER_TRUST_SERVER_CERT=false` for anything but a local dev
  instance, so the server certificate is verified against a CA.
- Bind the HTTP transport to `127.0.0.1` unless it sits behind an
  authenticating reverse proxy.