The MSSQL MCP Server targets .NET 9.0 and compiles to a self-contained win-x64 executable. Two publish paths exist: a standard Debug or Release build suitable for local development, and a single-file self-contained publish intended for production deployments. The production path bundles the .NET runtime so the target machine does not need .NET installed.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/A-Point-Systems-ltd/ms-sql-mcp/llms.txt
Use this file to discover all available pages before exploring further.
Requirements
| Requirement | Version |
|---|---|
| .NET SDK | 9.0 |
Build (development)
Usedotnet build from inside the MssqlMcp directory for a quick Debug build, or target the solution file explicitly to build in Release configuration.
- Debug —
MssqlMcp\bin\Debug\net9.0\MssqlMcp.exe - Release —
MssqlMcp\bin\Release\net9.0\MssqlMcp.exe
command at either path to run the server during development.
Single-file publish (production)
For production deployments, use the included PowerShell script to produce a self-contained, compressed, single-file executable.dotnet publish with the ReleaseSingleFile publish profile and the Release configuration. When it completes successfully, the output is printed in green:
MssqlMcp.exe is:
- Self-contained — the .NET 9.0 runtime is bundled inside the executable
- Single file — all managed assemblies and native libraries are packed into one file
- Compressed —
EnableCompressionInSingleFilereduces the file size on disk - No debug symbols —
DebugType=nonekeeps the output lean
Publish profile settings
TheRelease configuration <PropertyGroup> in MssqlMcp/MssqlMcp.csproj defines the key publish flags:
| Property | Value | Effect |
|---|---|---|
SelfContained | true | Bundles the .NET runtime — no runtime install required on the target machine |
PublishSingleFile | true | Packs all assemblies into one MssqlMcp.exe |
PublishReadyToRun | false | Skips ahead-of-time compilation (reduces publish time and output size) |
IncludeNativeLibrariesForSelfExtract | true | Embeds native libraries so the single file is truly standalone |
EnableCompressionInSingleFile | true | Compresses embedded content to reduce file size |
DebugType | none | Strips debug symbols from the output |
DeleteExistingFiles | false | Preserves other files already present in PublishDir (such as linked docs or skills) |
MssqlMcp/Properties/PublishProfiles/ReleaseSingleFile.pubxml, which is what publish-release.ps1 activates via -p:PublishProfile=ReleaseSingleFile.
Changing the output path
The default output directory isC:\Development\MCPs\MS-SQL-Release\. To change it, update the <PublishDir> value in either of the following files (they are kept in sync — editing both is safest):
MssqlMcp/MssqlMcp.csproj — inside the Release condition <PropertyGroup>:
MssqlMcp/Properties/PublishProfiles/ReleaseSingleFile.pubxml:
After publishing to a new path, update the
command value in your MCP client configuration to point at the new executable location. Most MCP clients (Cursor, VS Code, Claude Desktop) require a server restart before picking up the new path.