Devart MCP Server for SQL Server (ADO.NET)

Self-hosted MCP server that gives AI clients schema-aware read/write access to SQL Server via Devart dotConnect for SQL Server. Free .NET tool on NuGet (Windows x64); requires a commercial dotConnect license (free 30-day trial).

Documentation

Prefix Reserved

.NET 8.0 This package targets.NET 8.0. The package is compatible with this framework or higher.

{
  "inputs": [
    {
      "type": "promptString",
      "id": "server",
      "description": "SQL Server host, optionally with an instance or a port: localhost, dbserver\\sqlexpress, dbserver,1433.",
      "password": false,
      "default": "localhost"
    },
    {
      "type": "promptString",
      "id": "database",
      "description": "Database to connect to.",
      "password": false
    },
    {
      "type": "promptString",
      "id": "user",
      "description": "SQL Server login.",
      "password": false
    },
    {
      "type": "promptString",
      "id": "password",
      "description": "Password for the login.",
      "password": true
    },
    {
      "type": "promptString",
      "id": "license_key",
      "description": "Devart dotConnect for SQL Server license key, from the Devart Customer Portal.",
      "password": true
    }
  ],
  "servers": {
    "Devart.Mcp.SqlServer": {
      "type": "stdio",
      "command": "dnx",
      "args": ["Devart.Mcp.SqlServer@1.1.0", "--yes", "--", "run"],
      "env": {
        "DEVART_MCP_SQLSERVER_CONNECTION": "Data Source=${input:server};Initial Catalog=${input:database};User Id=${input:user};Password=${input:password};License Key=${input:license_key};"
      }
    }
  }
}

[!brand-info] Brand-info This package contains an MCP Server. The server can be used in VS Code by copying the generated JSON to your VS Code workspace's .vscode/mcp.json settings file.

dotnet tool install --global Devart.Mcp.SqlServer --version 1.1.0

[!brand-info] Brand-info This package contains a .NET tool you can call from the shell/command line.

dotnet new tool-manifest
                    

                            if you are setting up this repo
dotnet tool install --local Devart.Mcp.SqlServer --version 1.1.0

[!brand-info] Brand-info This package contains a .NET tool you can call from the shell/command line.

#tool dotnet:?package=Devart.Mcp.SqlServer&version=1.1.0

[!brand-warning] Brand-warning The NuGet Team does not provide support for this client. Please contact its maintainers for support.

nuke :add-package Devart.Mcp.SqlServer --version 1.1.0

[!brand-warning] Brand-warning The NuGet Team does not provide support for this client. Please contact its maintainers for support.