SQL Server Express MCP Server

local-only server

The server can only run on the client’s local machine because it depends on local resources.

SQL Server Express MCP サーバー

Microsoft SQL Server Express と連携するための MCP サーバー。Windows および SQL Server 認証をサポートします。

前提条件

  • Python 3.10以上
  • SQL Server 用 Microsoft ODBC ドライバー 18
  • 適切な権限を持つ SQL Server インスタンス

インストール

このリポジトリをクローンする

cd mcp-sqlexpress # Create and activate virtual environment uv venv .venv\Scripts\activate # Install dependencies uv pip install --editable .

Claude Desktopでの使用

claude_desktop_config.jsonに追加します:

{ "mcpServers": { "sqlexpress": { "command": "uv", "args": [ "--directory", "PATH\\TO\\PROJECT\\mcp-sqlexpress", "run", "mcp-server-sqlexpress", "--server", "server\\instance", "--auth", "windows", "--trusted-connection", "yes", "--trust-server-certificate", "yes", "--allowed-databases", "database1,database2" ] } } }

認証オプション

Windows 認証の場合:

  • --auth windowsを設定する
  • --trusted-connection yes設定する

SQL Server 認証の場合:

  • --auth sqlを設定する
  • --username--passwordを追加する

特徴

ツール

  • get_allowed_databases : アクセスが許可されているデータベースのリストを取得する
  • read_query : SELECTクエリを実行する
  • write_query : INSERT/UPDATE/DELETEクエリを実行する
  • create_table : 新しいテーブルを作成する
  • list_tables : データベース内のすべてのテーブルを一覧表示する
  • describe_table : テーブルスキーマを表示する
-
security - not tested
A
license - permissive license
-
quality - not tested

Microsoft SQL Server Express とのやり取りを容易にし、自然言語 MCP コマンドによるクエリ、テーブル管理、スキーマ検査などのデータベース操作をサポートします。

  1. Prerequisites
    1. Installation
      1. Usage with Claude Desktop
        1. Authentication Options
      2. Features
        1. Tools
      ID: jgo4khf1fc