Token导航 LogoToken导航TokenDH.com
Mssql MCP Go logo
数据服务未说明官方级别未说明来源级核验

Mssql MCP Go

MCP Server

一个通过MCP协议提供SQL Server数据库只读查询、表结构查看和存储过程检查的工具。

工具数

5

提示词数

0

GitHub Stars

0

资源数

0
数据库工具数据分析GoClaudeClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

LizardLiang

提供方

LizardLiang

最后核验

2026/5/17 20:21

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

mssql-mcp

A read-only MCP (Model Context Protocol) server for SQL Server. Connects to a MSSQL database and exposes tools for querying data, inspecting table schemas, and viewing stored procedure details via stdio transport.

Tools

ToolDescriptionParameters
list_tablesList all tables with schema and row countsschema (optional)
describe_tableGet column details for a tabletable (required), schema (optional, default: dbo)
queryExecute a read-only SELECT querysql (required)
list_proceduresList all stored proceduresschema (optional)
describe_procedureGet procedure parameters and source codeprocedure (required), schema (optional, default: dbo)

The query tool only allows SELECT and WITH statements. INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, TRUNCATE, and EXEC are blocked.

Build

go mod tidy
go build -o mssql-mcp

Configuration

Set the connection string in run.sh:

export MSSQL_CONNECTION_STRING="sqlserver://user:pass@host:port?database=mydb"

Claude Code Integration

Add to .claude.json under the target project's mcpServers:

{
  "mcpServers": {
    "mssql": {
      "command": "/path/to/mssql-mcp/run.sh",
      "args": []
    }
  }
}

mssql-mcp (繁體中文)

一個唯讀的 MCP (Model Context Protocol) 伺服器,用於連接 SQL Server。透過 stdio 傳輸協定,提供查詢資料、檢視資料表結構及預存程序詳細資訊的工具。

工具

工具說明參數
list_tables列出所有資料表及其 schema 與列數schema(選填)
describe_table取得資料表的欄位詳細資訊table(必填)、schema(選填,預設:dbo
query執行唯讀的 SELECT 查詢sql(必填)
list_procedures列出所有預存程序schema(選填)
describe_procedure取得預存程序的參數與原始碼procedure(必填)、schema(選填,預設:dbo

query 工具僅允許 SELECTWITH 語句。INSERTUPDATEDELETEDROPALTERCREATETRUNCATEEXEC 皆被禁止。

建置

go mod tidy
go build -o mssql-mcp

設定

run.sh 中設定連線字串:

export MSSQL_CONNECTION_STRING="sqlserver://user:pass@host:port?database=mydb"

Claude Code 整合

在目標專案的 .claude.json 中的 mcpServers 加入:

{
  "mcpServers": {
    "mssql": {
      "command": "/path/to/mssql-mcp/run.sh",
      "args": []
    }
  }
}

目录标签

目录标签

数据库工具数据分析GoClaude本地部署SQLServer只读查询MCP协议数据库管理

支持客户端

Claude

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

5

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明none部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP