BM

bilims/mcp-sqlserver

Developer tools공식

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

49 stars 21 forks 품질 74 트렌드 0MIT

bilims/mcp-sqlserver는 MCP 서버 후보가 https://github.com/bilims/mcp-sqlserver.에서 수입되었습니다

개요

bilims/mcp-sqlserver는 MCP 서버 후보가 https://github.com/bilims/mcp-sqlserver.에서 수입되었습니다

개요(AI 번역)

Microsoft SQL Server의 read-only Model Context Protocol (MCP) 서버는 AI Agent를 안전하고 SQL Server 데이터베이스를 탐구하고 쿼리할 수 있습니다.

빠른 시작

단계 1: 패키지 설치

단계 2: SQL 서버 연결 구성

SQL Server 유형을 선택하고 구성을 따르십시오.

Azure SQL 데이터베이스

온프레미스 SQL Server

로컬 SQL 서버 Express

단계 3: 연결을 시험하십시오

단계 4: Claude 데스크탑에 추가

  1. ** Claude Desktop config 파일 공유:**
  • ** 마이크 **: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  1. ** MCP 서버 구성 추가:**

  2. **Restart Claude 데스크톱 **

단계 5: 탐험 시작!

Claude Desktop에서 이러한 명령을 사용해보십시오.

  • [T2]]
  • [T3]
  • [T4]]
  • [T5]
  • [T6]]

특징

  • ** 읽기 전용 운영**: SELECT queries는 포괄적인 보안 검증으로 허용됩니다.
  • ️️ 슈마 발견: 데이터베이스, 테이블, 전망, 관계 및 메타데이터를 탐험

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

README

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

MCP SQL Server

A read-only Model Context Protocol (MCP) server for Microsoft SQL Server that enables AI agents to safely explore and query SQL Server databases.

Quick Start

Step 1: Install the Package

# Global installation (recommended)
npm install -g @bilims/mcp-sqlserver

# Verify installation
mcp-sqlserver --version

Step 2: Configure Your SQL Server Connection

Choose your SQL Server type and follow the configuration:

Azure SQL Database

export SQLSERVER_HOST="your-server.database.windows.net"
export SQLSERVER_USER="your-username"
export SQLSERVER_PASSWORD="your-password"
export SQLSERVER_DATABASE="your-database"
export SQLSERVER_ENCRYPT="true"
export SQLSERVER_TRUST_CERT="false"

On-Premises SQL Server

export SQLSERVER_HOST="your-sql-server.company.com"
export SQLSERVER_USER="your-username"
export SQLSERVER_PASSWORD="your-password"
export SQLSERVER_DATABASE="your-database"
export SQLSERVER_ENCRYPT="true"
export SQLSERVER_TRUST_CERT="true"  # For self-signed certificates

Local SQL Server Express

export SQLSERVER_HOST="localhost\\SQLEXPRESS"
export SQLSERVER_USER="sa"
export SQLSERVER_PASSWORD="your-password"
export SQLSERVER_DATABASE="master"
export SQLSERVER_ENCRYPT="false"
export SQLSERVER_TRUST_CERT="true"

Step 3: Test the Connection

# Test your configuration
mcp-sqlserver --help

# Quick connection test (press Ctrl+C to exit)
mcp-sqlserver

Step 4: Add to Claude Desktop

  1. Find your Claude Desktop config file:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  2. Add the MCP server configuration:

{
  "mcpServers": {
    "sqlserver": {
      "command": "mcp-sqlserver",
      "env": {
        "SQLSERVER_HOST": "your-server.database.windows.net",
        "SQLSERVER_USER": "your-username",
        "SQLSERVER_PASSWORD": "your-password",
        "SQLSERVER_DATABASE": "your-database",
        "SQLSERVER_ENCRYPT": "true",
        "SQLSERVER_TRUST_CERT": "false"
      }
    }
  }
}
  1. Restart Claude Desktop

Step 5: Start Exploring!

Try these commands in Claude Desktop:

  • "Test the SQL Server connection"
  • "List all databases on the server"
  • "Show me the tables in [database name]"
  • "Describe the structure of the Users table"
  • "Show me foreign key relationships"

Features

  • 🔒 Read-only operations: Only SELECT queries allowed, with comprehensive security validation
  • 🗄️ Schema discovery: Explore databases, tables, views, relationships, and metadata
  • 📊 Data exploration: Execute safe queries with built-in limits and timeouts
  • 🔐 Enterprise-ready: Encrypted connections with certificate trust for production environments
  • 🛡️ Security-first: Query validation, SQL injection protection, and access controls

Available Tools

Schema Discovery

GitHub에서 전체 README 보기

설치

npx mcp-sqlserver
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "sqlserver": { "command": "mcp-sqlserver", "env": { "SQLSERVER_HOST": "your-server.database.windows.net", "SQLSERVER_USER": "your-username", "SQLSERVER_PASSWORD": "your-password", "SQLSERVER_DATABASE": "your-database", "SQLSERVER_ENCRYPT": "true", "SQLSERVER_TRUST_CERT": "false" } } } }