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: テーブルスキーマを表示する
Related MCP Servers
- -securityFlicense-qualityA FastMCP server that provides natural language interaction with MS SQL databases, enabling users to query data, list tables, describe structures, and execute database operations through a conversational AI interface.Last updated -
- -securityAlicense-qualityA FastMCP-based server that enables executing Microsoft SQL Server data queries and table structure queries through a standardized MCP protocol interface.Last updated -5MIT License
- AsecurityAlicenseAqualityEnables interaction with Microsoft SQL Server databases through a Model Context Protocol interface, supporting database connections, switching between databases, and executing secure SELECT queries.Last updated -82MIT License
- -securityAlicense-qualityAn MCP (Model Context Protocol) server that exposes natural language to SQL functionality, allowing any MCP-compatible client to convert plain English questions into SQL queries for database interaction using AI.Last updated -3MIT License