AM

aaronontheweb/mssql-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

159 stars 23 forks 품질 75 트렌드 0Apache-2.0

aaronontheweb/mssql-mcp는 [[T0]에서 가져온 MCP 서버 후보입니다.

개요

aaronontheweb/mssql-mcp는 [[T0]에서 가져온 MCP 서버 후보입니다.

개요(AI 번역)

A . Microsoft SQL Server용 NET 기반 모델 컨텍스트 프로토콜(MCP) 서버.

초록

왜 이런 게 존재하는 걸까요? 시장에 나와 있는 다른 MCP 솔루션들은 대체로 작동하지 않는 불안정한 제품들이기 때문입니다 - 특히 윈도우에서는 더욱 그렇습니다.

이 MCP 서버는 내부 조정을 위한 Akka.NET 과 프로토콜 준수를 위한 공식 MCP C# SDK를 사용하는 깔끔하고 잘 설계된 .NET 애플리케이션을 통해 AI 에이전트에게 Microsoft SQL Server 데이터베이스에 견고하고 신뢰할 수 있는 접근을 제공합니다.

특징

  • 스키마 발견: AI 에이전트가 복잡한 SQL 작성 없이 데이터베이스 구조를 탐색할 수 있습니다
  • 쿼리 실행: SELECT, INSERT, UPDATE, DELETE, DDL 작업에 대한 완전한 SQL 지원
  • 연결 검증: 시작 시 자동 데이터베이스 연결 검증
  • 오류 처리: 명확하고 실행 가능한 오류 메시지를 포함한 포괄적인 오류 처리입니다
  • 테이블 서식: AI 사용을 위한 읽기 쉬운 표로 정렬된 쿼리 결과입니다
  • Docker 지원: 내장된 .NET Docker 툴링으로 쉽게 배포할 수 있습니다

사용 가능한 도구

도구 설명
execute_sql 데이터베이스에 대한 SQL 쿼리를 실행하세요

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

mssql-mcp

A .NET-powered Model Context Protocol (MCP) server for Microsoft SQL Server.

Abstract

Why does this exist? Because the other MCP solutions in market for this are generally janky pieces of shit that don’t work - certainly not on Windows.

This MCP server provides AI agents with robust, reliable access to Microsoft SQL Server databases through a clean, well-architected .NET application using Akka.NET for internal coordination and the official MCP C# SDK for protocol compliance.

Features

  • Schema Discovery: AI agents can explore database structure without writing complex SQL
  • Query Execution: Full SQL support for SELECT, INSERT, UPDATE, DELETE, and DDL operations
  • Connection Validation: Automatic database connectivity validation on startup
  • Error Handling: Comprehensive error handling with clear, actionable error messages
  • Table Formatting: Query results formatted in readable tables for AI consumption
  • Docker Support: Easy deployment with built-in .NET Docker tooling

Available Tools

Tool Description
execute_sql Execute any SQL query against the database
list_tables List all tables with schema, name, type, and row count
list_schemas List all available schemas/databases in the SQL Server instance

Configuration

Required Environment Variables

The MCP server requires a single environment variable:

  • MSSQL_CONNECTION_STRING: Complete SQL Server connection string

Example Connection Strings

Windows Authentication:

MSSQL_CONNECTION_STRING="Server=localhost;Database=MyDatabase;Trusted_Connection=true;"

SQL Server Authentication:

MSSQL_CONNECTION_STRING="Server=localhost;Database=MyDatabase;User Id=myuser;Password=mypassword;"

Azure SQL Database:

MSSQL_CONNECTION_STRING="Server=myserver.database.windows.net;Database=mydatabase;User Id=myuser;Password=mypassword;Encrypt=true;"

Running the MCP Server

The easiest way to run the MCP server is using Docker with .NET’s built-in container support.

Build and Run with Docker

Clone the repository

# Clone the repository
git clone https://github.com/Aaronontheweb/mssql-mcp.git
cd mssql-mcp

Build the Docker image

dotnet publish --os linux --arch x64 /t:PublishContainer

You can run the container directly if you wish, but it’s probably best to let the MCP server spin up the client:

# Run the container
docker run -it --rm \
  -e MSSQL_CONNECTION_STRING="Server=host.docker.internal;Database=MyDB;Trusted_Connection=true;" \
  mssql-mcp:latest

MCP Client Configuration

Cursor IDE

Add to your Cursor settings (Cursor Settings > Features > Model Context Protocol):

{
  "mcpServers": {
    "mssql": {
      "command": "docker",
      "args": [
          "run",
          "-i",
          "--rm",
          "-e",
          "MSSQL_CONNECTION_STRING",
GitHub에서 전체 README 보기

설치

docker run -i --rm -e MSSQL_CONNECTION_STRING mssql-mcp:latest
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "mssql": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "MSSQL_CONNECTION_STRING", "mssql-mcp:latest" ], "env": { "MSSQL_CONNECTION_STRING": "Server=host.docker.internal,1533; Database=MyDb; User Id=myUser; Password=My(!)Password;TrustServerCertificate=true;" } } } }