A
securityA
licenseA
qualityAllows AI assistants to list tables, read data, and execute SQL queries through a controlled interface, making database exploration and analysis safer and more structured.
Last updated -
988
MIT License
MSSQL MCP 服务器,提供数据库交互和商业智能功能。该服务器支持运行 SQL 查询、分析业务数据并自动生成业务洞察备忘录。
参考官网的SQLite进行修改,适配MSSQL
read_query
执行 SELECT 查询以从数据库读取数据
write_query
执行 INSERT、UPDATE 或 DELETE 查询
create_table
在数据库中创建新表
list_tables
获取数据库中所有表的列表
describe-table
查看特定表的架构信息
append_insight
向备忘录资源添加新的业务见解
数据库表如下。列名非标准化,AI 会自行匹配。SQL 执行过程中的错误会自行纠正。

以下是演示。

Python 3.x
Packages
pyodbc>=4.0.39
pydantic>=2.0.0
mcp>=0.1.0
ODBC Driver 17 for SQL Server

注:新版cursor也改为JSON配置,请参考上一节
MIT 许可证
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/daobataotie/mssql-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server