MSSQL MCP 服务器
用于连接 Microsoft SQL Server 数据库的模型上下文协议 (MCP) 服务器。此服务器提供用于执行 SQL 查询和管理数据库连接的工具。
安装
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 MSSQL 数据库连接器:
手动安装
用法
将服务器添加到您的 MCP 设置配置文件:
工具
询问
在 MSSQL 数据库上执行 SQL 查询。
参数
connectionString
(字符串,可选):完整的连接字符串(可替代单独的参数)host
(字符串,可选):数据库服务器主机名port
(数字,可选):数据库服务器端口(默认值:1433)database
(字符串,可选):数据库名称(默认值:master)username
(字符串,可选):数据库用户名password
(字符串,可选):数据库密码query
(字符串,必需):要执行的 SQL 查询encrypt
(布尔值,可选):启用加密(默认值:false)trustServerCertificate
(布尔值,可选):信任服务器证书(默认值:true)
必须提供connectionString
或( host
+ username
+ password
)。
例子
发展
执照
麻省理工学院
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Tools
模型上下文协议服务器,可执行 SQL 查询并管理与 Microsoft SQL Server 数据库的连接。
Related MCP Servers
- AsecurityAlicenseAqualityEnables execution of SQL queries and management of Microsoft SQL Server database connections through the Model Context Protocol.Last updated -339614MIT License
- -securityAlicense-qualityA Model Context Protocol server that enables secure and structured interaction with Microsoft SQL Server databases, allowing AI assistants to list tables, read data, and execute SQL queries with controlled access.Last updated -48MIT License
- -securityFlicense-qualityA Model Context Protocol server that provides comprehensive access to Microsoft SQL Server databases, enabling Language Models to inspect schemas, execute queries, manage database objects, and perform advanced database operations.Last updated -7