Back to Home
Winds-AI icon

MSSQL_MCP_Server-custom-fork-

by Winds-AI

Overview

Enables Large Language Models (LLMs) to interact with and query an MSSQL database using natural language.

Installation

Run Command
npm start

Environment Variables

  • SERVER_NAME
  • DATABASE_NAME
  • READONLY
  • CONNECTION_TIMEOUT
  • REQUEST_TIMEOUT
  • TRUST_SERVER_CERTIFICATE
  • AZURE_AUTH_MODE

Security Notes

The `ReadDataTool` implements strong SQL injection prevention for SELECT queries, including keyword blocking, pattern matching, and disallowing multiple statements. However, `CreateTableTool`, `CreateIndexTool`, `InsertDataTool`, and `UpdateDataTool` are highly vulnerable to SQL injection. These tools directly interpolate critical user-provided inputs (such as table names, column names, column types, and especially the WHERE clause) into SQL queries without proper validation or parameterization. This allows an attacker to execute arbitrary SQL commands if `READONLY` is set to `false`.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassMedium
Avg Tokens2000
Stars0
Forks0
Last Update2026-01-16

Tags

MSSQLLLMDatabaseAI AssistantMCP