MSSQL MCP Server

by knight0zh
MIT License
3

MSSQL MCP 서버

Microsoft SQL Server 데이터베이스에 연결하기 위한 모델 컨텍스트 프로토콜(MCP) 서버입니다. 이 서버는 SQL 쿼리 실행 및 데이터베이스 연결 관리 도구를 제공합니다.

설치

Smithery를 통해 설치

Smithery를 통해 Claude Desktop용 MSSQL 데이터베이스 커넥터를 자동으로 설치하려면:

지엑스피1

수동 설치

npm install mssql-mcp-server

용법

MCP 설정 구성 파일에 서버를 추가합니다.

{ "mcpServers": { "mssql": { "command": "mssql-mcp-server", "env": { "MSSQL_CONNECTION_STRING": "Server=localhost;Database=master;User Id=sa;Password=yourpassword;", // Or individual connection parameters: "MSSQL_HOST": "localhost", "MSSQL_PORT": "1433", "MSSQL_DATABASE": "master", "MSSQL_USER": "sa", "MSSQL_PASSWORD": "yourpassword", "MSSQL_ENCRYPT": "false", "MSSQL_TRUST_SERVER_CERTIFICATE": "true" } } } }

도구

질문

MSSQL 데이터베이스에서 SQL 쿼리를 실행합니다.

매개변수
  • connectionString (문자열, 선택 사항): 전체 연결 문자열(개별 매개변수에 대한 대안)
  • host (문자열, 선택 사항): 데이터베이스 서버 호스트 이름
  • port (숫자, 선택): 데이터베이스 서버 포트(기본값: 1433)
  • database (문자열, 선택 사항): 데이터베이스 이름(기본값: master)
  • username (문자열, 선택 사항): 데이터베이스 사용자 이름
  • password (문자열, 선택 사항): 데이터베이스 비밀번호
  • query (문자열, 필수): 실행할 SQL 쿼리
  • encrypt (부울, 선택 사항): 암호화를 활성화합니다(기본값: false)
  • trustServerCertificate (부울, 선택 사항): 신뢰 서버 인증서(기본값: true)

connectionString 또는 ( host + username + password )를 제공해야 합니다.

const result = await use_mcp_tool({ server_name: 'mssql', tool_name: 'query', arguments: { host: 'localhost', username: 'sa', password: 'yourpassword', query: 'SELECT * FROM Users', }, });

개발

# Install dependencies npm install # Run in development mode npm run dev # Build npm run build # Run tests npm test # Run linter npm run lint # Format code npm run format

특허

MIT

-
security - not tested
A
license - permissive license
-
quality - not tested

SQL 쿼리를 실행하고 Microsoft SQL Server 데이터베이스와의 연결을 관리할 수 있는 모델 컨텍스트 프로토콜 서버입니다.

  1. Installation
    1. Installing via Smithery
    2. Manual Installation
  2. Usage
    1. Tools
      1. query
    2. Development
      1. License

        Related MCP Servers

        • -
          security
          A
          license
          -
          quality
          Enables execution of SQL queries and management of Microsoft SQL Server database connections through the Model Context Protocol.
          Last updated -
          10
          TypeScript
          MIT License
          • Apple
          • Linux
        • -
          security
          A
          license
          -
          quality
          A Model Context Protocol server that enables secure and structured interaction with Microsoft SQL Server databases, allowing AI assistants to list tables, read data, and execute SQL queries with controlled access.
          Last updated -
          12
          Python
          MIT License
          • Linux
          • Apple
        • -
          security
          F
          license
          -
          quality
          A Model Context Protocol server that enables SQL query execution, database management, and business intelligence capabilities through MySQL connections.
          Last updated -
          JavaScript
        • A
          security
          A
          license
          A
          quality
          A Model Context Protocol server that enables secure interaction with Microsoft SQL Server databases, allowing AI assistants to list tables, read data, and execute SQL queries through a controlled interface.
          Last updated -
          1
          30
          Python
          MIT License
          • Linux
          • Apple

        View all related MCP servers

        ID: k89rro1mlh