Devart MCP Server for SQL Server (ADO.NET)

自托管 MCP 服务器,通过 Devart dotConnect for SQL Server 为 AI 客户端提供具备架构感知能力的 SQL Server 读写访问。NuGet 上的免费 .NET 工具(Windows x64);需要商业版 dotConnect 许可证(免费试用 30 天)。

文档

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.