Skip to main content
Glama
hanweg

SQL Server Express MCP Server

by hanweg

SQL Server Express MCP サーバー

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

前提条件

  • Python 3.10以上

  • SQL Server 用 Microsoft ODBC ドライバー 18

  • 適切な権限を持つ SQL Server インスタンス

Related MCP server: MCP 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 : テーブルスキーマを表示する

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    Not graded
    maintenance
    Enables AI assistants to interact with both local SQL Server and Azure SQL Database through natural language, supporting queries, data manipulation, and schema operations with built-in security features.
    8
    3,879 npm
    1
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    An MCP server for Microsoft SQL Server integration that enables users to query, monitor, and analyze databases directly through Claude. It supports schema exploration, performance analysis, and optional write operations via natural language commands.
    5 npm
    1
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that enables interaction with Microsoft SQL Server instances using Windows or SQL Server authentication via native ODBC drivers. It allows users to execute SQL queries, list tables, and inspect schemas across multiple configured database environments through natural language.
    1,578 npm
    MIT
  • A
    license
    B
    quality
    D
    maintenance
    Enables AI agents to interact with Microsoft SQL Server databases via MCP, supporting table listing, schema retrieval, and CRUD operations.
    3
    1
    MIT