SQL Server MCP Server
by hlgurgelio.github.hlgurgel/sqlserverv0.1.6
Servidor MCP para SQL Server com controle de permissões e modo somente-leitura
context tax
queued
security
queued
cold start
queued
freshness
Active28d ago
Install SQL Server MCP server
Install in Claude Code
claude mcp add sqlserver-mcp-tools -e MSSQL_CONNECTION_STRING='<mssql-connection-string>' -- uvx sqlserver-mcp-toolsInstall in Cursor
{
"mcpServers": {
"sqlserver-mcp-tools": {
"command": "uvx",
"args": [
"sqlserver-mcp-tools"
],
"env": {
"MSSQL_CONNECTION_STRING": "<mssql-connection-string>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"sqlserver-mcp-tools": {
"command": "uvx",
"args": [
"sqlserver-mcp-tools"
],
"env": {
"MSSQL_CONNECTION_STRING": "<mssql-connection-string>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"sqlserver-mcp-tools": {
"type": "stdio",
"command": "uvx",
"args": [
"sqlserver-mcp-tools"
],
"env": {
"MSSQL_CONNECTION_STRING": "<mssql-connection-string>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"sqlserver-mcp-tools": {
"command": "uvx",
"args": [
"sqlserver-mcp-tools"
],
"env": {
"MSSQL_CONNECTION_STRING": "<mssql-connection-string>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| MSSQL_CONNECTION_STRING | yes | yes | String de conexão ODBC para o SQL Server |
Freshness
Active — last maintenance signal 28d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-09-11 · 28d ago · GitHub
Latest release
no data · GitHub
Package published
no data · npm/PyPI
Registry entry updated
2026-09-11 · 28d ago · official registry · v0.1.6
FAQ
›How do I install the SQL Server MCP server in Claude Code?
Run: claude mcp add sqlserver-mcp-tools -e MSSQL_CONNECTION_STRING='<mssql-connection-string>' -- uvx sqlserver-mcp-tools. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does SQL Server require an API key?
Yes. It expects MSSQL_CONNECTION_STRING, of which 1 is a secret.
›Can I use SQL Server as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is SQL Server in the official MCP registry?
Yes, as io.github.hlgurgel/sqlserver.
Alternatives to SQL Server
Other database MCP servers.