Back to Home
akkki98 icon

Multi-database-sql-mcp-server

by akkki98

Overview

Provides a Model Context Protocol (MCP) server for AI assistants and applications to interact with multiple Azure SQL databases.

Installation

Run Command
dotnet run

Environment Variables

  • AZURESQL_DB1_CONN
  • AZURESQL_DB2_CONN

Security Notes

The `run_query` tool accepts raw SQL queries as a string. While the documentation strongly recommends using parameterized queries to prevent SQL injection, the truncated source code does not provide the concrete implementation of `ToolHandlers.cs` or `DatabaseManager.cs`. Without this, there is a significant potential for SQL injection if the queries are not properly parameterized and sanitized internally. The project explicitly states it is a 'development/demonstration project' and warns about implementing 'additional security measures' for production use. Hardcoded secrets are generally avoided by using environment variables for connection strings.

Similar Servers

Stats

Interest Score0
Security Score6
Cost ClassMedium
Avg Tokens500
Stars0
Forks0
Last Update2025-12-01

Tags

MCP ServerAzure SQL.NETDatabase ToolingAI Assistant Integration