RM

richardhan/mssql_mcp_server

Database management

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

401 stars 122 forks 품질 72 트렌드 20MIT

Microsoft SQL Server용 모델 컨텍스트 프로토콜(MCP) 서버로, 통제된 인터페이스를 통해 안전한 데이터베이스 상호작용을 가능하게 합니다.

개요

Claude Desktop을 통한 SQL Server 데이터베이스 접근을 위한 모델 컨텍스트 프로토콜(MCP) 서버입니다. - 🔍 리스트 데이터베이스 테이블 - 📊 SQL 쿼리 실행(SELECT, INSERT, UPDATE, DELETE) - 🔐 다중 인증 방법(SQL, Windows, Azure AD) - 🏢 LocalDB 및 Azure SQL 지원 - 🔌 커스텀 포트 구성 - 최소한의 권한으로 전용 SQL 사용자 생성 - 관리자/SA 계정 절대 사용하지 말 - 가능하면 Windows 인증 사용 - 민감한 데이터에 대한 암호화 활성화

개요(AI 번역)

Claude Desktop을 통한 SQL Server 데이터베이스 접근을 위한 모델 컨텍스트 프로토콜(MCP) 서버입니다.

특징

  • 🔍 리스트 데이터베이스 테이블
  • 📊 SQL 쿼리 실행 (SELECT, INSERT, UPDATE, DELETE)
  • 🔐 다중 인증 방법 (SQL, Windows, Azure AD)
  • 🏢 LocalDB 및 Azure SQL 지원
  • 🔌 커스텀 포트 구성

퀵 스타트

Claude 데스크톱으로 설치

claude_desktop_config.json에 추가:

구성

기본 SQL 인증

윈도우 인증

Azure SQL Database

선택 설정

대체 설치 방법

핍 사용

그다음 claude_desktop_config.json에서:

개발

보안

  • 최소한의 권한으로 전용 SQL 사용자 생성
  • 관리자/SA 계정 절대 사용하지 마세요
  • 가능할 경우 Windows 인증 사용
  • 민감한 데이터에 대한 암호화 활성화

면허증

MIT

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

README

Microsoft SQL Server MCP Server

A Model Context Protocol (MCP) server for secure SQL Server database access through Claude Desktop.

Features

  • 🔍 List database tables
  • 📊 Execute SQL queries (SELECT, INSERT, UPDATE, DELETE)
  • 🔐 Multiple authentication methods (SQL, Windows, Azure AD)
  • 🏢 LocalDB and Azure SQL support
  • 🔌 Custom port configuration

Quick Start

Install with Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "mssql": {
      "command": "uvx",
      "args": ["microsoft_sql_server_mcp"],
      "env": {
        "MSSQL_SERVER": "localhost",
        "MSSQL_DATABASE": "your_database",
        "MSSQL_USER": "your_username",
        "MSSQL_PASSWORD": "your_password"
      }
    }
  }
}

Configuration

Basic SQL Authentication

MSSQL_SERVER=localhost          # Required
MSSQL_DATABASE=your_database    # Required
MSSQL_USER=your_username        # Required for SQL auth
MSSQL_PASSWORD=your_password    # Required for SQL auth

Windows Authentication

MSSQL_SERVER=localhost
MSSQL_DATABASE=your_database
MSSQL_WINDOWS_AUTH=true         # Use Windows credentials

Azure SQL Database

MSSQL_SERVER=your-server.database.windows.net
MSSQL_DATABASE=your_database
MSSQL_USER=your_username
MSSQL_PASSWORD=your_password
# Encryption is automatic for Azure

Optional Settings

MSSQL_PORT=1433                 # Custom port (default: 1433)
MSSQL_ENCRYPT=true              # Force encryption

Alternative Installation Methods

Using pip

pip install microsoft_sql_server_mcp

Then in claude_desktop_config.json:

{
  "mcpServers": {
    "mssql": {
      "command": "python",
      "args": ["-m", "mssql_mcp_server"],
      "env": { ... }
    }
  }
}

Development

git clone https://github.com/RichardHan/mssql_mcp_server.git
cd mssql_mcp_server
pip install -e .

Security

  • Create a dedicated SQL user with minimal permissions
  • Never use admin/sa accounts
  • Use Windows Authentication when possible
  • Enable encryption for sensitive data

License

MIT

GitHub에서 전체 README 보기

설치

uvx microsoft_sql_server_mcp
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "mssql": { "command": "uvx", "args": ["microsoft_sql_server_mcp"], "env": { "MSSQL_SERVER": "localhost", "MSSQL_DATABASE": "your_database", "MSSQL_USER": "your_username", "MSSQL_PASSWORD": "your_password" } } } }