SQL Server

•

Enables AI agents to safely query, write, and explore SQL Server databases with robust data protection and schema interaction capabilities.

The SQL Server tool is an MCP (Model Context Protocol) server designed to facilitate secure and controlled interaction between AI agents and SQL Server instances. It addresses the challenge of providing AI agents with SQL access by implementing safety as default: DML/DDL operations default to dry-run mode, commits require explicit confirmation, and potentially destructive operations like `UPDATE`/`DELETE` without a `WHERE` clause are blocked unless explicitly allowed. A key feature for Kepion professional services is its automatic masking of sensitive `[Value]` columns in `F_*` fact tables, even when accessed transitively through views, ensuring data protection while allowing schema exploration. The server also supports flexible deployment with a self-healing launcher and per-target environment files, enabling a single installation to manage multiple SQL Server connections securely without duplicating code or storing credentials in host settings.

Key Features

01Safety-first DML/DDL operations with dry-run defaults and explicit confirmation flags for commits.
02Automatic masking of sensitive `[Value]` columns in `F_*` fact tables for Kepion-aware data protection.
03Self-healing launcher and per-target environment files for managing multiple SQL Server connections from one codebase.
04Extensive toolset for query execution, DML/DDL operations, schema exploration, and impact analysis.
05Validation of user statements to ensure single-statement execution and prevent smuggled batches.
060 GitHub stars

Use Cases

01Allowing AI agents to explore SQL Server schemas and planning databases without exposing sensitive financial data.
02Enabling AI agents to perform SQL development or DBA workflows with controlled write access and auditability.
03Integrating AI agents with various SQL Server instances (local, cloud) using secure and flexible configuration.
04Providing a controlled environment for AI-driven data discovery and analysis in complex SQL Server estates.