
jexinsam/mssql_mcp_server
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
jexinsam/mssql mcp server는 MCP 서버 후보가 https://github.com/jexinsam/mssql_mcp_server.에서 수입되었습니다
개요
jexinsam/mssql mcp server는 MCP 서버 후보가 https://github.com/jexinsam/mssql_mcp_server.에서 수입되었습니다
개요(AI 번역)
MSSQL MCP Server는 Microsoft SQL Server (MSSQL) 데이터베이스와 보안 및 구조화 상호 작용을 가능하게하는 ** Model Context Protocol (MCP) 서버**입니다. AI 조수는 다음과 같습니다.
- 사용 가능한 표
- 테이블 내용 읽기
- 통제된 접근을 가진 SQL 쿼리를 실행하십시오
MCP SDK v2 (2026-07-28 spec)에 내장되어 stdio 및 Streamable HTTP 수송을 지원합니다.
특징
- **Secure MSSQL 데이터베이스 액세스 ** 환경 변수를 통해
- ** SQL Injection Protection** 식별자 검증
- **Read-Only & Write Tools ** 적절한 MCP 표기
- Windows 인증 신뢰할 수 있는 연결을 통해 지원
- Dual Transport - stdio (기본값) 및 HTTP
- Docker Support 사전 구성 ODBC 드라이버
- **Comprehensive Logging ** 쿼리 및 운영 모니터링
설치
구성
다음 환경 변수를 설정하여 데이터베이스 액세스를 구성:
사용 가능한 도구
| 도구 | 설명 | 표기 |
|---|---|---|
list_tables |
데이터베이스의 모든 테이블 일람 | 읽기 전용, Idempotent |
query_sql |
읽기 전용 SELECT 쿼리 실시 | 읽기 전용 |
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
MSSQL MCP Server
MSSQL MCP Server is a Model Context Protocol (MCP) server that enables secure and structured interaction with Microsoft SQL Server (MSSQL) databases. It allows AI assistants to:
- List available tables
- Read table contents
- Execute SQL queries with controlled access
Built on MCP SDK v2 (2026-07-28 spec) with support for both stdio and Streamable HTTP transports.
Features
- Secure MSSQL Database Access through environment variables
- SQL Injection Protection with identifier validation
- Read-Only & Write Tools with appropriate MCP annotations
- Windows Authentication support via Trusted Connection
- Dual Transport — stdio (default) and HTTP
- Docker Support with pre-configured ODBC drivers
- Comprehensive Logging for monitoring queries and operations
Installation
pip install mssql-mcp-server
Configuration
Set the following environment variables to configure database access:
# Required
MSSQL_DATABASE=your_database
# Authentication (choose one):
# Option 1: SQL Server Authentication
MSSQL_USER=your_username
MSSQL_PASSWORD=your_password
# Option 2: Windows / Kerberos Authentication
Trusted_Connection=yes
# Optional
MSSQL_HOST=localhost # or use MSSQL_SERVER
MSSQL_DRIVER=SQL Server # default driver
TrustServerCertificate=no # default: no (set to yes for self-signed certs)
MCP_TRANSPORT=stdio # or "streamable-http" for Streamable HTTP
Available Tools
| Tool | Description | Annotations |
|---|---|---|
list_tables |
List all tables in the database | Read-only, Idempotent |
query_sql |
Execute read-only SELECT queries | Read-only, Idempotent |
execute_sql |
Execute any SQL statement (SELECT, INSERT, UPDATE, DELETE, DDL) | Destructive |
Usage
With Claude Desktop
Add this configuration to claude_desktop_config.json:
{
"mcpServers": {
"mssql": {
"command": "uv",
"args": [
"--directory",
"path/to/mssql_mcp_server",
"run",
"mssql_mcp_server"
],
"env": {
"MSSQL_HOST": "localhost",
"MSSQL_USER": "your_username",
"MSSQL_PASSWORD": "your_password",
"MSSQL_DATABASE": "your_database"
}
}
}
}
With Cursor IDE
Add this to your .cursor/mcp.json:
{
"mcpServers": {
"mssql": {
"command": "uv",
"args": [
"--directory",
"path/to/mssql_mcp_server",
"run",
"mssql_mcp_server"
],
"env": {
"MSSQL_HOST": "localhost",
"MSSQL_USER": "your_username",
"MSSQL_PASSWORD": "your_password",
"MSSQL_DATABASE": "your_database"
}
}
}
}
With pip install (global)
{
"mcpServers": {
"mssql": {
"command": "mssql_mcp_server",
"env": {
설치
docker run -e MSSQL_HOST=host.docker.internal \설정
{
"mcpServers": {
"mssql": {
"command": "uv",
"args": [
"--directory",
"path/to/mssql_mcp_server",
"run",
"mssql_mcp_server"
],
"env": {
"MSSQL_HOST": "localhost",
"MSSQL_USER": "your_username",
"MSSQL_PASSWORD": "your_password",
"MSSQL_DATABASE": "your_database"
}
}
}
}