Devart MCP Server for SQL Server (ADO.NET)

com.devart由 devart.com 发布v1.1.0更新于 Oct 24, 2026

Schema-aware read/write access to SQL Server through Devart dotConnect ADO.NET data provider.

已验证STDIO仅桌面数据库数据与分析

概览

AI 生成的概览

通过 Devart dotConnect ADO.NET 或 ODBC 连接,让 AI 助手用自然语言查询和修改 SQL Server 数据库。

可以做什么
  • 把自然语言请求转换为结构化 SQL 查询,并在已配置的 SQL Server 连接上执行
  • 以感知架构的方式读写数据,返回结构化结果用于分析和报表
  • 查看架构、存储过程和数据问题,辅助开发者和 DBA 排查故障
  • 针对 .NET 应用、Dynamics/ERP、SharePoint 或内网平台背后的数据库回答临时业务问题
适用场景
当 SQL Server 是团队的主要数据源,且希望以对话方式查询、做临时报表或浏览架构,而不必手写 SQL 或等待 BI 团队时适用。也适合希望数据留在自有基础设施内的本地部署场景。
运行要求
作为本地 Windows 进程运行(从源码构建需 .NET 8 SDK;NuGet 包 Devart.Mcp.SqlServer)。需在 mcpserver.json 中配置 SQL Server 连接,可使用 ADO.NET 连接字符串或 ODBC DSN;ODBC 方式还需安装 Devart ODBC Driver for SQL Server。连接字符串通过环境变量 DEVART_MCP_SQLSERVER_CONNECTION 提供。支持 stdio 或 http 传输。
安装前请注意
连接字符串包含数据库凭据和 Devart 许可证密钥,应把 DEVART_MCP_SQLSERVER_CONNECTION 的值视为机密。服务器提供读写访问,助手可能修改或删除数据,建议使用最小权限的数据库账号。所需的 Devart ODBC 驱动为付费产品,提供 30 天试用。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Devart MCP Server for SQL Server (ADO.NET),将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[Devart MCP Server for SQL Server]

Version 1.1.0

What's new · Changelog

Devart MCP Server for SQL Server

Devart MCP Server for SQL Server enables AI clients to interact with your data through a secure server running in your environment. It turns a regular AI chat into a practical way to work with real-world business data — and it is faster than conventional export or manual querying.

Key benefits

Devart MCP Server for SQL Server allows you to:

  • Work with data intuitively through natural language.
  • Retrieve the required data for analysis within minutes.
  • Report on your data faster with AI-powered assistance.
  • Minimize manual data handling and integration maintenance.

How it works

Devart MCP Server for SQL Server helps AI clients communicate directly with SQL Server databases using natural-language prompts. It translates AI requests into structured queries, executes them through Devart connectivity drivers, and returns clean, structured results for seamless AI-powered data access.

[Devart MCP Server architecture]

Quick start

To get started with Devart MCP Server for SQL Server:

1. Download and install Devart ODBC Driver for SQL Server.

2. Download and install Devart MCP Server for SQL Server.

3. In Devart MCP Server for SQL Server, configure your data connection and integration settings.

[Devart MCP Server configuration]

4. Run your first natural-language query.

[Need an MCP Server for multiple data sources?]

Manual installation and configuration

Prerequisites

Before building and running Devart MCP Server for SQL Server, ensure the following components are installed:

  • .NET 8 SDK
  • ADO.NET connection — Devart.AI.McpServer.AdoNet.SqlServer.csproj Devart dotConnect for SQL Server (installed automatically via NuGet during build)
  • ODBC connection — Devart.AI.McpServer.Odbc.SqlServer.csproj Devart ODBC Driver for SQL Server (requires manual download and installation)

Step 1: Clone the repository

Clone the project repository and navigate to the project directory:

1. Open Command Prompt.

2. Enter the following command:

cmd
git clone https://github.com/devart-ai-connectivity/devart-mcp-server-sqlserver.gitcd devart-mcp-server-sqlserver

Step 2: Build the MCP Server from source

You can build Devart MCP Server for SQL Server from source using either of the supported database connectivity technologies: ADO.NET or ODBC.

  • To build the MCP server with ADO.NET, run the following command:
cmd
dotnet publish Devart.AI.McpServer.AdoNet/Devart.AI.McpServer.AdoNet.SqlServer/Devart.AI.McpServer.AdoNet.SqlServer.csproj -c ReleaseSqlServer /p:TargetFramework=net8.0

The Devart dotConnect for SQL Server NuGet package is downloaded and restored automatically.

  • To build the MCP server with ODBC, select the command based on the bitness of your data source.

For 64-bit data source, run the following command:

cmd
dotnet publish Devart.AI.McpServer.Odbc/Devart.AI.McpServer.Odbc.SqlServer/Devart.AI.McpServer.Odbc.SqlServer.csproj -c ReleaseSqlServer -r "win-x64" /p:TargetFramework=net8.0

For 32-bit data source, run the following command:

cmd
dotnet publish Devart.AI.McpServer.Odbc/Devart.AI.McpServer.Odbc.SqlServer/Devart.AI.McpServer.Odbc.SqlServer.csproj -c ReleaseSqlServer -r "win-x86" /p:TargetFramework=net8.0

Note

The target platform must match the bitness of your ODBC data source.

Step 3: Configure the database connection for the MCP Server

1. Create an mcpserver.json configuration file in the directory containing the built MCP Server executable.

2. In the file, configure the database connection.

  • Configure a connection with ADO.NET.

Add the following configuration to the mcpserver.json file:

json
{  "Connections": [    {      "Name": "my_sqlserver",      "ConnectionString": "Server=localhost;User Id=your_user;Password=your_password;Database=your_database;License Key=your_license_key;",      "ProtocolType": "stdio"    }  ]}
  • Configure a connection with ODBC.

Add the following configuration to the mcpserver.json file:

json
{  "Connections": [    {      "Name": "my_sqlserver",      "DsnName": "your_dsn_name",      "ProtocolType": "stdio"    }  ]}
  • Configure a connection with ODBC using a connection string.

Add the following configuration to the mcpserver.json file:

json
{  "Connections": [    {      "Name": "my_sqlserver",      "ConnectionString": "Driver={Devart ODBC Driver for SQL Server};Server=localhost;User ID=sqlserver;Password=your_password;Database=your_database;",      "ProtocolType": "stdio"    }  ]}

where:

  • Name — The connection name.

  • ConnectionString (applies to ADO.NET) — A database-specific connection string used to establish a connection to the target database.

  • DsnName (applies to ODBC) — The name of your data source.

  • ProtocolType — A transport protocol. The possible options are: stdio or http.

  • HttpPort (required if ProtocolType is set to http) — The port number for the http protocol.

Step 4: Run the MCP server

After you configure the MCP Server, you can start it.

Note

This step is required only when ProtocolType is configured as http. If you use the stdio transport protocol, your AI client starts the server automatically.

  • To start the server with ADO.NET, run the following command:
cmd
Devart.AI.McpServer.AdoNet.SqlServer.exe run my_sqlserver
  • To start the server with ODBC, run the following command:
cmd
Devart.AI.McpServer.Odbc.SqlServer.exe run my_sqlserver

where my_sqlserver is the name of the ODBC connection.

Step 5: Integrate with Claude Desktop

1. Open claude_desktop_config.json, the Claude configuration file.

Tip

If you can't locate the configuration file, it may not exist yet. To create it, open Claude Desktop and navigate to File > Settings > Developer, then click Edit Config. The folder with the claude_desktop_config.json file opens.

2. Add one of the following objects, depending on the transport protocol used by MCP Server:

  • STDIO
json
{  "mcpServers": {    "devart": {      "command": "C:\\path\\to\\Devart.AI.McpServer.AdoNet.SqlServer.exe",      "args": [        "run",        "my_sqlserver"      ]    }  }}

where:

  • devart is the connector name that will appear in Claude Desktop.

  • C:\\path\\to\\Devart.AI.McpServer.AdoNet.SqlServer.exe is the path to the executable file. For an ODBC connection, use Devart.AI.McpServer.Odbc.SqlServer.exe.

  • my_sqlserver is the connection name specified in the mcpserver.json configuration file.

  • HTTP

    json
      "mcpServers": {    "devart": {      "command": "npx",      "args": [        "-y",        "mcp-remote",        "http://localhost:5000/sse"      ]    }  }

    where:

    • devart is the connector name that will appear in Claude Desktop.
    • 5000 is the MCP Server listening port.

3. Save the file.

4. Restart Claude Desktop.

Devart MCP Server for SQL Server is now integrated with Claude, and devart appears in the Claude Desktop app in Customize > Connectors.

You can also integrate Devart MCP Server for SQL Server with other AI clients such as Cline, Codex, Cursor, Visual Studio Code, Windsurf, Zed.

Supported clients

Devart MCP Server for SQL Server supports integration with the following AI clients:

  • Claude Desktop
  • Visual Studio Code
  • Cursor
  • Codex
  • Windsurf
  • Cline
  • Zed
  • ...and other MCP-compatible AI clients

Typical use cases

Devart MCP Server for SQL Server is a practical fit for teams working with SQL Server as their primary data source.

  • .NET application data access
    Query business data from SQL Server databases backing .NET web applications, APIs, and enterprise software, without SQL or developer involvement.

  • Microsoft Dynamics and ERP analytics
    Access CRM, ERP, and operational data stored in SQL Server by Microsoft Dynamics on-premises deployments directly through AI tools.

  • SharePoint and intranet data exploration
    Query content databases, list data, and metadata from SQL Server instances backing SharePoint or other Microsoft intranet platforms.

  • BI and reporting without SSRS
    Answer ad-hoc business questions directly from SQL Server databases without building SSRS reports or waiting for BI team involvement.

  • Developer and DBA productivity
    Help SQL Server developers and DBAs investigate data issues, explore stored procedures, audit schemas, and troubleshoot performance problems with AI assistance.

  • Secure on-premises AI access to SQL Server
    Keep SQL Server data inside your infrastructure, including Azure-connected instances with private networking, while enabling AI-driven analysis.

Licensing and activation

Devart MCP Server for SQL Server is distributed as a free single-source MCP server.

To connect to SQL Server, the server requires the corresponding Devart ODBC Driver for SQL Server, which is a paid product.

A 30-day free trial is available for the Devart ODBC Driver for SQL Server.

See the product page and documentation for the latest installation and activation details.

Support

Other Devart connectivity solutions

来源:README.md,提交 ecb6efc

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.1.0最新Sep 17, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。