
aadversteeg/mssqlclient-mcp-server
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
aadversteeg/mssqlclient-mcp-server - кандидат на сервер MCP, импортированный из https://github.com/aadversteeg/mssqlclient-mcp-server.
Обзор
aadversteeg/mssqlclient-mcp-server - кандидат на сервер MCP, импортированный из https://github.com/aadversteeg/mssqlclient-mcp-server.
Обзор (машинный перевод)
** Изменения в 0,0.5:** Инструменты выполнения запросов и хранимых процедур теперь ** отключены по умолчанию** для обеспечения безопасности. Если вы полагались на предыдущие дефолты, вы должны теперь явно включить их, установив соответствующие переменные среды на "true":
- [[Т1]]
- [[Т2]]
- [[Т3]]
- [[Т4]]
Настройка Claude Desktop / Claude Code для примеров.
Комплексный клиент Microsoft SQL Server, реализующий протокол Model Context Protocol (MCP). Этот сервер предоставляет обширные возможности SQL Server, включая выполнение запросов, обнаружение схемы и управление хранимыми процедурами через простой интерфейс MCP.
Обзор
MCP-клиент SQL Server построен с использованием протокола Model Context Protocol C# SDK (github.com/modelcontextprotocol/csharp-sdk). Он предоставляет инструменты для выполнения запросов SQL, управления хранимыми процедурами, таблицами списков и извлечения всеобъемлющей информации о схемах из баз данных SQL Server.
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
SQL Server MCP Client
Breaking Change in 0.0.5: Query and stored procedure execution tools are now disabled by default for security. If you were relying on the previous defaults, you must now explicitly enable them by setting the corresponding environment variables to
"true":
DatabaseConfiguration__EnableExecuteQueryDatabaseConfiguration__EnableExecuteStoredProcedureDatabaseConfiguration__EnableStartQueryDatabaseConfiguration__EnableStartStoredProcedureSee Configuring Claude Desktop / Claude Code for examples.
A comprehensive Microsoft SQL Server client implementing the Model Context Protocol (MCP). This server provides extensive SQL Server capabilities including query execution, schema discovery, and stored procedure management through a simple MCP interface.
Overview
The SQL Server MCP client is built with .NET Core using the Model Context Protocol C# SDK (github.com/modelcontextprotocol/csharp-sdk). It provides tools for executing SQL queries, managing stored procedures, listing tables, and retrieving comprehensive schema information from SQL Server databases. The server is designed to be lightweight yet powerful, demonstrating how to create a robust MCP server with practical database functionality. It can be deployed either directly on a machine or as a Docker container.
The MCP client operates in one of two modes:
- Database Mode: When a specific database is specified in the connection string, only operations within that database context are available
- Server Mode: When no database is specified in the connection string, server-wide operations across all databases are available
Features
Core Database Operations
- Execute SQL queries on connected SQL Server databases
- List all tables with schema and row count information
- Retrieve detailed schema information for specific tables
- Comprehensive stored procedure management and execution
Stored Procedure Support
- Parameter Discovery: Get detailed parameter information in table or JSON Schema format
- Type-Safe Execution: Automatic JSON-to-SQL type conversion based on parameter metadata
- Rich Metadata: Support for input/output parameters, default values, and data type constraints
- Cross-Database Operations: Execute procedures across different databases (Server Mode)
Advanced Features
- JSON Schema Output: Parameter metadata compatible with validation tools
- Case-Insensitive Parameters: Flexible parameter naming with @ prefix normalization
- SQL Server Feature Detection: Comprehensive capability reporting
- Two-Mode Architecture: Optimized for both single-database and multi-database scenarios
- Configurable Timeouts: Default and per-operation timeout control with runtime management tools
Установка
docker run --rm -i -e DatabaseConfiguration__DefaultCommandTimeoutSeconds=60 -e DatabaseConfiguration__ConnectionTimeoutSeconds=30 -e DatabaseConfiguration__TotalToolCallTimeoutSeconds=180 -e MSSQL_CONNECTIONSTRING=Server=your_server;... aadversteeg/mssqlclient-mcp-server:latest