Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-deepeshd87-mcp-sql-querystore": {
"command": "uvx",
"args": [
"mcp-sql-querystore"
],
"env": {
"MCP_SQL_PWD": "<VALUE>",
"MCP_SQL_UID": "<VALUE>",
"MCP_SQL_EXTRA": "<VALUE>",
"MCP_SQL_DRIVER": "<VALUE>",
"MCP_SQL_SERVER": "<VALUE>",
"MCP_SQL_ENCRYPT": "<VALUE>",
"MCP_SQL_PWD_ENV": "<VALUE>",
"MCP_SQL_TRUSTED": "<VALUE>",
"MCP_SQL_DATABASE": "<VALUE>",
"MCP_SQL_PWD_FILE": "<VALUE>",
"MCP_SQL_TRUST_CERT": "<VALUE>",
"MCP_SQL_QUERY_TIMEOUT": "30",
"MCP_SQL_CONNECT_TIMEOUT": "10",
"MCP_SQL_CONNECTION_STRING": "<VALUE>",
"MCP_SQL_CONNECTION_STRING_FILE": "<VALUE>"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-deepeshd87-mcp-sql-querystore": {
"command": "uvx",
"args": [
"mcp-sql-querystore"
],
"env": {
"MCP_SQL_PWD": "<VALUE>",
"MCP_SQL_UID": "<VALUE>",
"MCP_SQL_EXTRA": "<VALUE>",
"MCP_SQL_DRIVER": "<VALUE>",
"MCP_SQL_SERVER": "<VALUE>",
"MCP_SQL_ENCRYPT": "<VALUE>",
"MCP_SQL_PWD_ENV": "<VALUE>",
"MCP_SQL_TRUSTED": "<VALUE>",
"MCP_SQL_DATABASE": "<VALUE>",
"MCP_SQL_PWD_FILE": "<VALUE>",
"MCP_SQL_TRUST_CERT": "<VALUE>",
"MCP_SQL_QUERY_TIMEOUT": "30",
"MCP_SQL_CONNECT_TIMEOUT": "10",
"MCP_SQL_CONNECTION_STRING": "<VALUE>",
"MCP_SQL_CONNECTION_STRING_FILE": "<VALUE>"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-deepeshd87-mcp-sql-querystore": {
"command": "uvx",
"args": [
"mcp-sql-querystore"
],
"env": {
"MCP_SQL_PWD": "<VALUE>",
"MCP_SQL_UID": "<VALUE>",
"MCP_SQL_EXTRA": "<VALUE>",
"MCP_SQL_DRIVER": "<VALUE>",
"MCP_SQL_SERVER": "<VALUE>",
"MCP_SQL_ENCRYPT": "<VALUE>",
"MCP_SQL_PWD_ENV": "<VALUE>",
"MCP_SQL_TRUSTED": "<VALUE>",
"MCP_SQL_DATABASE": "<VALUE>",
"MCP_SQL_PWD_FILE": "<VALUE>",
"MCP_SQL_TRUST_CERT": "<VALUE>",
"MCP_SQL_QUERY_TIMEOUT": "30",
"MCP_SQL_CONNECT_TIMEOUT": "10",
"MCP_SQL_CONNECTION_STRING": "<VALUE>",
"MCP_SQL_CONNECTION_STRING_FILE": "<VALUE>"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-deepeshd87-mcp-sql-querystore": {
"command": "uvx",
"args": [
"mcp-sql-querystore"
],
"env": {
"MCP_SQL_PWD": "<VALUE>",
"MCP_SQL_UID": "<VALUE>",
"MCP_SQL_EXTRA": "<VALUE>",
"MCP_SQL_DRIVER": "<VALUE>",
"MCP_SQL_SERVER": "<VALUE>",
"MCP_SQL_ENCRYPT": "<VALUE>",
"MCP_SQL_PWD_ENV": "<VALUE>",
"MCP_SQL_TRUSTED": "<VALUE>",
"MCP_SQL_DATABASE": "<VALUE>",
"MCP_SQL_PWD_FILE": "<VALUE>",
"MCP_SQL_TRUST_CERT": "<VALUE>",
"MCP_SQL_QUERY_TIMEOUT": "30",
"MCP_SQL_CONNECT_TIMEOUT": "10",
"MCP_SQL_CONNECTION_STRING": "<VALUE>",
"MCP_SQL_CONNECTION_STRING_FILE": "<VALUE>"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-deepeshd87-mcp-sql-querystore": {
"command": "uvx",
"args": [
"mcp-sql-querystore"
],
"env": {
"MCP_SQL_PWD": "<VALUE>",
"MCP_SQL_UID": "<VALUE>",
"MCP_SQL_EXTRA": "<VALUE>",
"MCP_SQL_DRIVER": "<VALUE>",
"MCP_SQL_SERVER": "<VALUE>",
"MCP_SQL_ENCRYPT": "<VALUE>",
"MCP_SQL_PWD_ENV": "<VALUE>",
"MCP_SQL_TRUSTED": "<VALUE>",
"MCP_SQL_DATABASE": "<VALUE>",
"MCP_SQL_PWD_FILE": "<VALUE>",
"MCP_SQL_TRUST_CERT": "<VALUE>",
"MCP_SQL_QUERY_TIMEOUT": "30",
"MCP_SQL_CONNECT_TIMEOUT": "10",
"MCP_SQL_CONNECTION_STRING": "<VALUE>",
"MCP_SQL_CONNECTION_STRING_FILE": "<VALUE>"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-deepeshd87-mcp-sql-querystore": {
"command": "uvx",
"args": [
"mcp-sql-querystore"
],
"env": {
"MCP_SQL_PWD": "<VALUE>",
"MCP_SQL_UID": "<VALUE>",
"MCP_SQL_EXTRA": "<VALUE>",
"MCP_SQL_DRIVER": "<VALUE>",
"MCP_SQL_SERVER": "<VALUE>",
"MCP_SQL_ENCRYPT": "<VALUE>",
"MCP_SQL_PWD_ENV": "<VALUE>",
"MCP_SQL_TRUSTED": "<VALUE>",
"MCP_SQL_DATABASE": "<VALUE>",
"MCP_SQL_PWD_FILE": "<VALUE>",
"MCP_SQL_TRUST_CERT": "<VALUE>",
"MCP_SQL_QUERY_TIMEOUT": "30",
"MCP_SQL_CONNECT_TIMEOUT": "10",
"MCP_SQL_CONNECTION_STRING": "<VALUE>",
"MCP_SQL_CONNECTION_STRING_FILE": "<VALUE>"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| MCP_SQL_PWD | No | The password directly (least preferred). |
| MCP_SQL_UID | No | The SQL login username for SQL authentication. |
| MCP_SQL_EXTRA | No | Additional connection string parameters. |
| MCP_SQL_DRIVER | No | The ODBC driver name (e.g., 'ODBC Driver 18 for SQL Server'). |
| MCP_SQL_SERVER | No | The SQL Server host and instance (e.g., yourhost\INSTANCE). Required when assembling from parts. |
| MCP_SQL_ENCRYPT | No | Whether to encrypt the connection (e.g., 'yes' or 'no'). |
| MCP_SQL_PWD_ENV | No | Name of another environment variable that contains the password. |
| MCP_SQL_TRUSTED | No | Set to 'yes' to use integrated authentication (no password stored). Preferred for CJIS/PCI. |
| MCP_SQL_DATABASE | No | The database name. |
| MCP_SQL_PWD_FILE | No | Path to a file containing the password (vault-mounted file). |
| MCP_SQL_TRUST_CERT | No | Whether to trust the server certificate. Set to 'yes' only for a self-signed/local cert; leave 'no' against instances with proper certificates. |
| MCP_SQL_QUERY_TIMEOUT | No | Query timeout in seconds (default: 30, 0 disables). Default: 30 |
| MCP_SQL_CONNECT_TIMEOUT | No | Connection timeout in seconds (default: 10). Default: 10 |
| MCP_SQL_CONNECTION_STRING | No | The full connection string. Simplest; back-compat. Resolved first. |
| MCP_SQL_CONNECTION_STRING_FILE | No | Path to a file holding the full connection string (Docker/K8s secret-mount style). |