MSSQL MCP Server

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Integrations

  • Used for data validation and settings management in the MSSQL MCP server implementation

  • Powers the MSSQL MCP server implementation, allowing for database operations and business intelligence capabilities

MSSQL MCP 서버

영어 | 중국어

개요

MSSQL MCP 서버는 데이터베이스 연동 및 비즈니스 인텔리전스 기능을 제공합니다. 이 서버를 통해 SQL 쿼리 실행, 비즈니스 데이터 분석, 비즈니스 인사이트 메모 자동 생성이 가능합니다.
MSSQL에 맞게 수정하려면 공식 웹사이트의 SQLite를 참조하세요.

구성 요소

  • read_query
    • 데이터베이스에서 데이터를 읽기 위해 SELECT 쿼리를 실행합니다.
  • write_query
    • INSERT, UPDATE 또는 DELETE 쿼리 실행
  • create_table
    • 데이터베이스에 새 테이블을 만듭니다
  • list_tables
    • 데이터베이스의 모든 테이블 목록을 가져옵니다.
  • describe-table
    • 특정 테이블에 대한 스키마 정보 보기
  • append_insight
    • 메모 리소스에 새로운 비즈니스 통찰력 추가

데모

데이터베이스 테이블은 다음과 같습니다. 열 이름은 표준화되어 있지 않으며, AI가 자동으로 일치시킵니다. SQL 실행 중 발생하는 오류는 자동으로 수정됩니다.

데모는 다음과 같습니다.

작동 환경

  • Python 3.x
  • Packages
    • pyodbc>=4.0.39
    • 파이댄틱>=2.0.0
    • mcp>=0.1.0
  • ODBC Driver 17 for SQL Server

용법

패키지 설치

지엑스피1

설정

#with server.py same folder create config.json,add: { "database": { "driver": "ODBC Driver 17 for SQL Server", "server": "server ip", "database": "db name", "username": "username", "password": "password", "trusted_connection": false }, "server": { "name": "mssql-manager", "version": "0.1.0" } }

클로드 데스크탑 、 윈드서핑

# add to claude_desktop_config.json. Note:use your path { "mcpServers": { "mssql": { "command": "python", "args": [ # your path,e.g.:"C:\\mssql-mcp\\src\\server.py" "~/server.py" ] } } }

커서

# Add according to the following diagram Cursor MCP. Note:use your path

MCP 검사관

# Note:use your path npx -y @modelcontextprotocol/inspector python C:\\mssql-mcp\\src\\server.py

프로젝트 구조

mssql-mcp ├── .git ├── .gitignore ├── LICENSE ├── README.md ├── README_en.md ├── README_zh.md ├── imgs │ ├── cursor_config.png │ ├── table.png │ └── demo.gif ├── requirements.txt └── src ├── __init__.py └── server.py

특허

MIT 라이센스

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

데이터베이스 상호작용 및 비즈니스 인텔리전스 기능을 제공하여 사용자가 SQL 쿼리를 실행하고, 비즈니스 데이터를 분석하고, Microsoft SQL Server 데이터베이스에 대한 비즈니스 통찰력 메모를 자동으로 생성할 수 있도록 합니다.

  1. Overview
    1. Components
      1. Demo
        1. Operating environment
          1. Usage
            1. Install packages
            2. config
            3. Claude Desktop 、 Windsurf
            4. Cursor
            5. MCP Inspector
          2. Project Structure
            1. License
              ID: ite84l43kv