SQL Server
Overview
Description from the maker (original English)
Servidor MCP para SQL Server com controle de permissões e modo somente-leitura
What you can do with it
We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.
- Connection: Runs on your computer
- Transport: stdio
- Category: Databases & datasets
- You need to fill in: MSSQL_CONNECTION_STRING
Install
Pick the AI app you use, then copy the settings.
Passed 2/2 checks · Runs on your computer
First: which AI do you use?
Pick your app and the steps appear below.
Works with Claude, with some setup first
You need a SQL Server key (sign up on the maker’s site, may cost money) · Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
Install Python (uv)
One time only; it works for every server that needs Python (uv)
Sign up and create a SQL Server key
Open the maker’s site, sign up and create an API key for the next step. It may cost money.
How to get a key is in the maker’s README below
Open the Claude desktop app’s settings file
SettingsDeveloperEdit Config
Paste these settings and save the file
{ "mcpServers": { "sqlserver": { "command": "uvx", "args": [ "sqlserver-mcp-tools" ], "env": { "MSSQL_CONNECTION_STRING": "your-value" } } } }Paste the key only into the app’s field, never into a chat or to anyone
Quit Claude and open it again
Try it
Use SQL Server and tell me what you can do for me, then show me one thing✓ If Claude says it is using SQL Server or shows a SQL Server tool in the answer, you are connected
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
ChatGPT cannot connect SQL Server yet
SQL Server runs on your computer, but ChatGPT can only connect servers that run on the web
What you can do instead
A · Use an app that can connect SQL Server
- You need a SQL Server key (sign up on the maker’s site, may cost money) · Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
- You need a SQL Server key (sign up on the maker’s site, may cost money) · Install Python (uv) on your computer first (one time)
- You need a SQL Server key (sign up on the maker’s site, may cost money) · Install Python (uv) on your computer first (one time)
- You need a SQL Server key (sign up on the maker’s site, may cost money) · Install Python (uv) on your computer first (one time)
B · Others in Databases & datasets that work with ChatGPT
Picked from the most used in the same category, only ones that connect by address with no key
- Supabase✓ ChatGPT
- Appwrite MCP✓ ChatGPT
- Pg Aiguide✓ ChatGPT
Works with Claude Code, with some setup first
You need a SQL Server key (sign up on the maker’s site, may cost money) · Install Python (uv) on your computer first (one time)
Install Python (uv)
One time only; it works for every server that needs Python (uv)
Sign up and create a SQL Server key
Open the maker’s site, sign up and create an API key for the next step. It may cost money.
How to get a key is in the maker’s README below
Open Terminal
Mac: press Command+Space and type Terminal · Windows: open PowerShell
Paste this command and press Enter
claude mcp add sqlserver --env MSSQL_CONNECTION_STRING=your-value -- uvx sqlserver-mcp-toolsReplace “your-value” with your key before pressing Enter
Paste the key only into the app’s field, never into a chat or to anyone
Type /mcp in Claude Code
You should see SQL Server listed as connected
Try it
Use SQL Server and tell me what you can do for me, then show me one thing✓ If Claude Code says it is using SQL Server or shows a SQL Server tool in the answer, you are connected
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with Cursor, with some setup first
You need a SQL Server key (sign up on the maker’s site, may cost money) · Install Python (uv) on your computer first (one time)
Install Python (uv)
One time only; it works for every server that needs Python (uv)
Sign up and create a SQL Server key
Open the maker’s site, sign up and create an API key for the next step. It may cost money.
How to get a key is in the maker’s README below
Fill in your key
In the SQL Server settings, MSSQL_CONNECTION_STRING is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Open the AI chat in Cursor in Agent mode
Try it
Use SQL Server and tell me what you can do for me, then show me one thing✓ If Cursor says it is using SQL Server or shows a SQL Server tool in the answer, you are connected
Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with VS Code, with some setup first
You need a SQL Server key (sign up on the maker’s site, may cost money) · Install Python (uv) on your computer first (one time)
Install Python (uv)
One time only; it works for every server that needs Python (uv)
Sign up and create a SQL Server key
Open the maker’s site, sign up and create an API key for the next step. It may cost money.
How to get a key is in the maker’s README below
Fill in your key
In the SQL Server settings, MSSQL_CONNECTION_STRING is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Open the AI chat in VS Code in Agent mode
Try it
Use SQL Server and tell me what you can do for me, then show me one thing✓ If VS Code says it is using SQL Server or shows a SQL Server tool in the answer, you are connected
Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version
For developers: Terminal commands and JSON settings
Installed on your computer
Claude Code
claude mcp add sqlserver --env MSSQL_CONNECTION_STRING=your-value -- uvx sqlserver-mcp-toolsClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"sqlserver": {
"command": "uvx",
"args": [
"sqlserver-mcp-tools"
],
"env": {
"MSSQL_CONNECTION_STRING": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"sqlserver": {
"command": "uvx",
"args": [
"sqlserver-mcp-tools"
],
"env": {
"MSSQL_CONNECTION_STRING": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"sqlserver": {
"type": "stdio",
"command": "uvx",
"args": [
"sqlserver-mcp-tools"
],
"env": {
"MSSQL_CONNECTION_STRING": "your-value"
}
}
}
}Values you fill in
MSSQL_CONNECTION_STRINGsecret required envString de conexão ODBC para o SQL Server
These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
At a glance
Which apps can use it
Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.
Run on your computer in
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
Related guides
What it can do
Runs on your computer; the tool list appears in your AI app after you install it.
Basic checksi
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 11, 2026
- ✓ Pass
Maker matches the repo
The registry name was verified with the GitHub account hlgurgel, which owns the repo
- ✓ Pass
Still maintained
Code last changed 31 days ago
- … Not checked yet
Has a licence
We have not read this repo from GitHub yet
- – Not applicable
Endpoint responds
This one runs on your computer; there is no internet endpoint
- – Not applicable
Sign-in with OAuth
Runs on your computer and uses local settings instead
- … Not checked yet
No hidden instructions in tool descriptions
Runs on your computer; we can only read tool lists from internet endpoints
Discussion
Ask, share a tip or report that it does not work. Sorted by what people marked helpful.
No posts yet. Be the first to ask or share.
Posts here are written by users, not the PopNx team.
User reviews
No reviews yet
Compared with others in Databases & datasetsi
- More stars than 0% of the other 1163 servers in this category
- Published to the registry more recently than 61% of the other 1163 servers in this category
- Basic checks equal to or better than 100% of the other 1163 servers in this category
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
Common questions
Is SQL Server safe?
It passed 2 of 2 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
What keys or codes does it need?
You need to fill in: MSSQL_CONNECTION_STRING
Does it run on my computer or in the cloud?
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
Is it still maintained?
The GitHub repo last changed 31 days ago, and the latest version (0.1.8) reached the registry 31 days ago.
Which apps can use it?
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.
What can I use instead?
In the same category: Dbx, MCP Toolbox for Databases, MCP Toolbox for Databases
Alternatives
Servers in the same category from other makers, sorted by stars.
Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
MCP Toolbox for Databases
MCP Toolbox for Databases enables your agent to connect to your database.
MCP Toolbox for Databases
MCP Toolbox for Databases enables your agent to connect to your database.
README from the maker
Open the README
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
mcp-sqlserver
Servidor MCP (Model Context Protocol) para SQL Server, com controle de permissões e modo somente-leitura por padrão. Permite que agentes de IA (Claude, opencode e outros clientes MCP) consultem e administrem bancos SQL Server de forma segura.
Segurança
- Credenciais nunca expostas ao LLM — a string de conexão é lida do ambiente e nunca aparece nas respostas nem nos logs.
- Somente leitura por padrão — a ferramenta
consultabloqueia DDL/DML (INSERT, UPDATE, DELETE, DROP, etc.). - Escrita sob demanda — ferramentas de escrita (
executar_update,executar_ddl, etc.) só são expostas quando o usuário da conexão possui permissão de escrita (rolessysadmin,db_owner,db_datawriteroudb_ddladmin), e exigem confirmação explícita antes de cada execução.
Pré-requisitos
- Python 3.10+
- Driver ODBC Driver 18 for SQL Server:
- macOS:
brew install msodbcsql18 - Windows/Linux: instale o driver correspondente da Microsoft
Instalação
Via PyPI:
pip install sqlserver-mcp-tools
Ou, sem instalar nada (executa direto do PyPI com cache):
uvx --from sqlserver-mcp-tools mcp-sqlserver
Configuração
O servidor lê a string de conexão das seguintes fontes, em ordem de prioridade:
- Variável de ambiente
MSSQL_CONNECTION_STRING - Variável de ambiente
MSSQL_ENV_FILEapontando para um arquivo.env - Arquivo
.envno diretório de trabalho (ou na raiz do projeto)
Exemplo de string de conexão:
DRIVER={ODBC Driver 18 for SQL Server};SERVER=localhost,1433;DATABASE=seu_banco;UID=seu_usuario;PWD=sua_senha;TrustServerCertificate=yes
Uso com clientes MCP
Claude Desktop
Adicione ao claude_desktop_config.json:
{
"mcpServers": { "mcp-sqlserver": { "command": "uvx", "args": ["--from", "sqlserver-mcp-tools", "mcp-sqlserver"], "env": { "MSSQL_CONNECTION_STRING": "DRIVER={ODBC Driver 18 for SQL Server};SERVER=...;DATABASE=...;UID=...;PWD=...;TrustServerCertificate=yes" } } } }
Se instalou via pip install, pode usar o entry point diretamente:
{
"mcpServers": { "mcp-sqlserver": { "command": "mcp-sqlserver", "env": { "MSSQL_CONNECTION_STRING": "DRIVER={ODBC Driver 18 for SQL Server};SERVER=...;DATABASE=...;UID=...;PWD=...;TrustServerCertificate=yes" } } } }
OpenCode
No opencode.json do projeto:
{
"mcp": { "sqlserver": { "type": "local", "command": ["mcp-sqlserver"], "environment": { "MSSQL_CONNECTION_STRING": "DRIVER={ODBC Driver 18 for SQL Server};SERVER=...;DATABASE=...;UID=...;PWD=...;TrustServerCertificate=yes" } } } }
Alternativa: apontar para um arquivo .env local, mantendo a senha fora do JSON:
{
"mcp": { "sqlserver": { "type": "local", "command": ["mcp-sqlserver"], "environment": { "MSSQL_ENV_FILE": "/caminho/para/seu/.env" } } } }
Servidor HTTP (Streamable HTTP)
Além do modo local (stdio), o servidor pode ser executado como um MCP remoto via Streamable HTTP, expondo o endpoint /mcp. Instale com o extra server:
pip install 'sqlserver-mcp-tools[server]'
Inicie o servidor:
MSSQL_CONNECTION_STRING="DRIVER={ODBC Driver 18 for SQL Server};SERVER=...;DATABASE=...;UID=...;PWD=...;TrustServerCertificate=yes" \
mcp-sqlserver-http
Opcionalmente, ajuste host/porta com MCP_HOST (padrão 0.0.0.0) e MCP_PORT (padrão 8090). O endpoint MCP fica em http:// : /mcp.
Para consumir remotamente no opencode:
{
"mcp": { "sqlserver": { "type": "remote", "url": "http://10.177.51.228:8090/mcp" } } }
Ferramentas disponíveis
Somente leitura (sempre disponíveis):
| Ferramenta | Descrição |
|---|---|
consulta | Executa SELECT (somente leitura, bloqueia DDL/DML) |
listar_bancos | Lista os bancos de dados acessíveis |
listar_tabelas | Lista tabelas e views de um banco |
descrever_tabela | Estrutura de uma tabela (colunas, tipos, PK) |
listar_indices | Índices de uma tabela |
listar_procedures | Lista stored procedures |
ler_procedure | Código-fonte de uma procedure |
listar_funcoes | Lista funções (scalar e table-valued) |
ler_funcao | Código-fonte de uma função |
listar_constraints | Constraints de uma tabela (PK, FK, UNIQUE, CHECK, DEFAULT) |
estatisticas_tabela | Estatísticas (linhas, tamanho, uso de dados) |
plano_execucao | Plano de execução estimado (sem executar) |
status_jobs | Status da última execução de jobs do SQL Agent |
Escrita (só com permissão de escrita na conexão):
| Ferramenta | Descrição |
|---|---|
executar_procedure | Executa uma stored procedure |
executar_update | Executa UPDATE (exige WHERE) |
criar_indice | Cria índice |
alterar_procedure | Altera procedure com backup automático |
executar_ddl | Executa DDL com backup do script de reversão |
Licença
MIT