SqlServer.McpServer.linux-musl-x64
1.0.0
dotnet add package SqlServer.McpServer.linux-musl-x64 --version 1.0.0
NuGet\Install-Package SqlServer.McpServer.linux-musl-x64 -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SqlServer.McpServer.linux-musl-x64" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SqlServer.McpServer.linux-musl-x64" Version="1.0.0" />
<PackageReference Include="SqlServer.McpServer.linux-musl-x64" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SqlServer.McpServer.linux-musl-x64 --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SqlServer.McpServer.linux-musl-x64, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SqlServer.McpServer.linux-musl-x64@1.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SqlServer.McpServer.linux-musl-x64&version=1.0.0
#tool nuget:?package=SqlServer.McpServer.linux-musl-x64&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SQL Server MCP Server (SqlServer.McpServer)
Read-only SQL Server Model Context Protocol (MCP) server that enables AI assistants (VS Code Copilot, Claude Desktop, Antigravity, Cursor, etc.) to query any SQL Server database.
Features
- Read-Only Safety: Restricts queries strictly to read-only
SELECTandWITHqueries. BlocksINSERT,UPDATE,DELETE,DROP,ALTER,TRUNCATE,EXEC, etc. - Cross-Platform: Self-contained binaries for
win-x64,win-arm64,osx-x64,osx-arm64,linux-x64, andlinux-arm64. - Flexible Configuration: Accepts database connection strings via environment variables (
SQLSERVER_CONNECTION_STRING).
Quickstart Configuration
Add SqlServer.McpServer to your MCP configuration file (e.g. mcp_config.json or .mcp.json):
Using dnx (NuGet Package)
{
"mcpServers": {
"sql-server": {
"command": "dnx",
"args": [
"SqlServer.McpServer",
"--version",
"1.0.0",
"--yes"
],
"env": {
"SQLSERVER_CONNECTION_STRING": "Server=your-host;Database=YourDb;User Id=sa;Password=your_password;Encrypt=True;TrustServerCertificate=True;"
}
}
}
}
Direct Local Execution (dotnet run)
{
"mcpServers": {
"sql-server": {
"command": "dotnet",
"args": [
"run",
"--project",
"D:\\path\\to\\sql-server-mcp\\sql-server-mcp.csproj"
],
"env": {
"SQLSERVER_CONNECTION_STRING": "Server=your-host;Database=YourDb;User Id=sa;Password=your_password;Encrypt=True;TrustServerCertificate=True;"
}
}
}
}
Tools Available
execute_select_query
Executes a read-only SQL SELECT statement on the configured database and returns the result set as JSON.
- Parameter:
query(string) - The read-only SQL query to execute.
Environment Variables
| Variable | Required | Description |
|---|---|---|
SQLSERVER_CONNECTION_STRING |
Yes | Standard ADO.NET SQL Server connection string |
License
MIT
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 125 | 8/24/2026 |