Skip to main content
Glama

MSSQL MCP Server

MIT License
31
  • Apple
  • Linux

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

使用法

パッケージをインストールする

CD /d ~/mssql-mcp pip install -r requirements.txt

設定

#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

カーソル設定

注:カーソルの新しいバージョンもJSON構成に変更されました。前のセクションを参照してください。

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. 概要
    1. コンポーネント
      1. デモ
        1. 動作環境
          1. 使用法
            1. パッケージをインストールする
            2. 設定
            3. クロードデスクトップ、ウィンドサーフィン
            4. カーソル
            5. MCP検査官
          2. プロジェクト構造
            1. ライセンス

              Related MCP Servers

              • A
                security
                A
                license
                A
                quality
                Allows AI assistants to list tables, read data, and execute SQL queries through a controlled interface, making database exploration and analysis safer and more structured.
                Last updated -
                1
                580
                Python
                MIT License
                • Linux
                • Apple
              • -
                security
                A
                license
                -
                quality
                Enables execution of SQL queries and management of Microsoft SQL Server database connections through the Model Context Protocol.
                Last updated -
                13
                TypeScript
                MIT License
                • Apple
                • Linux
              • -
                security
                A
                license
                -
                quality
                Facilitates interaction with Microsoft SQL Server Express, supporting database operations such as querying, table management, and schema inspection via natural language MCP commands.
                Last updated -
                1
                Python
                MIT License
              • -
                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 -
                20
                Python
                MIT License
                • Linux
                • Apple

              View all related MCP servers

              MCP directory API

              We provide all the information about MCP servers via our MCP API.

              curl -X GET 'https://glama.ai/api/mcp/v1/servers/daobataotie/mssql-mcp'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server