mssqlMCP
MCP Server for MSSQL (Microsoft SQL Server)
claude mcp add --transport stdio mcprunner-mssqlmcp dotnet run --project mssqlMCP.csproj \ --env MSSQL_MCP_KEY="Master encryption key for AES-256 (required)" \ --env MSSQL_MCP_DATA="Optional path for application data (e.g., /var/data)" \ --env MSSQL_MCP_API_KEY="Master API key for administrative access (required)"
How to use
This MCP server implements a SQL Server (MSSQL) Model Context Protocol server designed to enable VS Code Copilot to interact with one or more SQL Server databases. It exposes MCP endpoints for standard MCP operations, JSON-RPC 2.0 methods (tools/list and tools/call), and direct REST paths for common database operations such as executing queries and retrieving metadata. The server includes a multi-key authentication system, API key management, and AES-256 encrypted storage of connection strings. Available tools follow a consistent mssql_ prefix naming scheme (e.g., mssql_execute_query, mssql_get_table_metadata, mssql_get_schema, mssql_list_databases). You can use the JSON-RPC endpoint to list tools and call them with the appropriate parameters, or leverage the REST endpoints for straightforward operations against configured MSSQL databases. Client examples in C# demonstrate how to invoke mssql tools via the MCP interface and parse the strongly-typed metadata returned for tables, columns, and keys.
How to install
Prerequisites:
- .NET 9.0 SDK (or later) installed on the host
- Access to one or more MSSQL Server databases (connection strings)
- Optional: Docker if you prefer containerized deployment
Installation steps:
-
Clone the repository: git clone https://github.com/your-org/mcprunner-mssqlmcp.git cd mcprunner-mssqlmcp
-
Restore and build the project: dotnet restore dotnet build
-
Configure environment variables (examples):
- MSSQL_MCP_KEY: your-32-byte-base64-key
- MSSQL_MCP_API_KEY: your-master-api-key
- MSSQL_MCP_DATA: /path/to/data (optional)
-
Run the MCP server: dotnet run --project mssqlMCP.csproj
-
Optional: run inside Docker
- Build: docker build -t mssqlmcp:latest -f Dockerfile .
- Run: docker run -e MSSQL_MCP_KEY=your-key -e MSSQL_MCP_API_KEY=your-api-key -p 5000:5000 mssqlmcp:latest
Additional notes
Security and authentication: The server uses a multi-key API authentication system with master and user keys. Ensure MSSQL_MCP_KEY and MSSQL_MCP_API_KEY are kept secure and rotate keys as needed. Connection strings are encrypted at rest using AES-256. Review the Security Update Documentation for November 2025 migration steps. If API keys are not provided, authentication may be disabled or rely on configuration to limit access. For debugging, enable verbose logging in appsettings.json or via environment-specific configuration. The server supports async/await for database operations and provides detailed metadata (tables, views, stored procedures, functions, keys) to assist Copilot-driven code generation.
Related MCP Servers
MiniMax -JS
Official MiniMax Model Context Protocol (MCP) JavaScript implementation that provides seamless integration with MiniMax's powerful AI capabilities including image generation, video generation, text-to-speech, and voice cloning APIs.
furi
CLI & API for MCP management
unity-editor
An MCP server and client for LLMs to interact with Unity Projects
mcp -graph-api
Model-context-protocol (MCP) server for the Microsoft Graph API in C#
MCPlex-AI-v1.0
𝗠𝗼𝗱𝗲𝗹 𝗖𝗼𝗻𝘁𝗲𝘅𝘁 𝗣𝗿𝗼𝘁𝗼𝗰𝗼𝗹 (𝗠𝗖𝗣) 𝗕𝗮𝘀𝗲𝗱 𝗖𝗟𝗜 𝗔𝗜 | 𝗧𝗼𝗼𝗹 𝗜𝗻𝘁𝗲𝗴𝗿𝗮𝘁𝗶𝗼𝗻 | 𝗚𝗲𝗺𝗶𝗻𝗶 𝟮.𝟬
ade.boostrix
Модуль предоставляет MCP-сервер с набором специализированных инструментов для упрощения AI-разработки, а так же необходимый контекст и структуру для генерации качественного кода под экосистему 1С-Битрикс.