MSSQL

•
11
•

Connects AI agents to SQL Server databases, enabling intelligent interaction and management through the Model Context Protocol.

This Model Context Protocol (MCP) server facilitates seamless interaction between AI agents, such as Visual Studio Code's Copilot, and SQL Server databases. It offers a secure and robust platform for executing SQL queries, retrieving detailed database metadata including tables, views, and stored procedures, and managing connections. With advanced security features like multi-tier API key authentication, encrypted connection string storage, and comprehensive logging, it empowers intelligent agents to efficiently understand and operate on SQL Server environments.

Key Features

01Multi-tier API key authentication with role-based access control and encrypted API key storage.
02Designed with clean architecture, async/await for database operations, and robust Serilog logging.
03SQL query execution and comprehensive database metadata retrieval (tables, views, stored procedures, functions).
04Provides Standard MCP, JSON-RPC 2.0, and Direct REST API endpoints for flexible access.
05Secure connection string management with AES-256 encryption and key rotation capabilities.
069 GitHub stars

Use Cases

01Empowering AI code assistants (e.g., VS Code Copilot) to query, analyze, and manage SQL Server databases.
02Building custom applications that require secure, programmatic access to SQL Server schema and data via a standardized protocol.
03Automating database-related tasks and generating SQL queries through an LLM agent capable of understanding database context.