SQL Server MCP
mcp-node-mssql
用法
光标
请参阅官方 Cursor 文档以了解更多信息。
打开(或创建)
mcp.json文件(它应该位于~/.cursor/mcp.json或<project-root>/.cursor/mcp.json中,但有关更多详细信息,请参阅 Cursor 文档)。添加以下详细信息并保存文件:
{
"mcpServers": {
"mssql": {
"command": "npx",
"args": [
"-y",
"mcp-node-mssql"
],
"env": {
"DB_HOST": "localhost",
"DB_PORT": "1433",
"DB_USERNAME": "<username>",
"DB_PASSWORD": "<password>",
"DB_DATABASE": "<database>"
}
}
}
}风帆冲浪
请参阅官方 Windsurf 文档以了解更多信息。
打开
Windsurf MCP Configuration Panel单击
Add custom server。添加以下详细信息并保存文件:
{
"mcpServers": {
"mssql": {
"command": "npx",
"args": [
"-y",
"mcp-node-mssql"
],
"env": {
"DB_HOST": "localhost",
"DB_PORT": "1433",
"DB_USERNAME": "<username>",
"DB_PASSWORD": "<password>",
"DB_DATABASE": "<database>"
}
}
}
}克劳德·科德
请参阅官方 Claude Code 文档以了解更多信息。
您可以从 Claude Code CLI 添加新的 MCP 服务器。但直接修改 json 文件更简单!
打开 Claude Code 配置文件(它应该在
~/.claude.json中)。找到
projects>mcpServers部分并添加以下详细信息并保存文件:
{
"projects": {
"mcpServers": {
"mssql": {
"command": "npx",
"args": [
"-y",
"mcp-node-mssql"
],
"env": {
"DB_HOST": "localhost",
"DB_PORT": "1433",
"DB_USERNAME": "<username>",
"DB_PASSWORD": "<password>",
"DB_DATABASE": "<database>"
}
}
}
}
}Related MCP server: Microsoft SQL Server MCP Server
问题和故障排除
在执行任何其他操作之前,请确保您正在运行最新版本!
如果您在使用此 MCP 服务器时遇到问题,请在GitHub上打开一个问题!
发展
安装
npm install建造
npm run build本地运行开发服务器
要测试 MCP 服务器的本地开发版本(而不是使用已发布的包),请按照以下步骤操作:
构建项目:
npm run build创建或修改您的
mcp.json文件以引用您的本地构建:
{
"mcpServers": {
"mssql": {
"command": "node",
"args": [
"/path/to/your/local/mcp-node-mssql/dist/index.js"
],
"env": {
"DB_HOST": "localhost",
"DB_PORT": "1433",
"DB_USERNAME": "<username>",
"DB_PASSWORD": "<password>",
"DB_DATABASE": "<database>"
}
}
}
}将此
mcp.json文件放置在以下位置之一:对于 Cursor:在您的主目录(
~/.cursor/mcp.json)或项目目录(.cursor/mcp.json)中对于 Windsurf:使用 MCP 配置面板添加自定义服务器
重新启动您的 AI 助手(Cursor 或 Windsurf)以加载新配置。
这使您可以立即测试 MCP 服务器的更改,而无需发布新版本。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceA 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.56MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables secure interaction with Microsoft SQL Server databases, allowing AI assistants to list tables, read data, and execute SQL queries through a controlled interface.1381MIT
- Alicense-qualityFmaintenanceA Model Context Protocol server that enables LLMs like Claude to interact with SQLite and SQL Server databases, allowing for schema inspection and SQL query execution.853379MIT
- Flicense-qualityCmaintenanceA Model Context Protocol server that allows Large Language Models like Claude to execute SQL queries, explore database schemas, and maintain persistent connections to SQL Server databases.
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
MCP (Model Context Protocol) server for Appwrite
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cwilby/mcp-node-mssql'
If you have feedback or need assistance with the MCP directory API, please join our Discord server