
jexinsam/mssql_mcp_server
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
jexinsam/mssql mcp serverは[https://github.com/jexinsam/mssql_mcp_server.からインポートされたMCPサーバー候補です
概要
jexinsam/mssql mcp serverは[https://github.com/jexinsam/mssql_mcp_server.からインポートされたMCPサーバー候補です
概要(AI 翻訳)
MSSQL MCP Server は、Microsoft SQL Server (MSSQL) でセキュアかつ構造化されたインタラクションを可能にする、**Model Context Protocol (MCP) サーバです。 これにより、AI アシスタントが次のようになります。
- 利用可能なテーブルのリスト
- 読書テーブルの内容
- 管理されたアクセスでSQLクエリを実行
** MCP SDK v2** (2026-07-28 仕様) で、stdio とStreamable HTTP の両方の転送をサポートします。
##特徴
- 環境変数によるMSSQLデータベースアクセスのセキュリティ
- 識別子検証でSQLインジェクション保護
- 適切なMCPアノテーションでツールの読み込みと書き込み
- Windows認証 Trusted Connectionによるサポート -Dual Transport — stdio (デフォルト) と HTTP
- Docker サポート 事前構成された ODBC の運転者を使って
- モニタリングクエリと操作のための包括的なログ
インストール
設定
以下の環境変数を設定し、データベースアクセスの設定を行います。
利用可能なツール
| ツール | 説明 | 注釈 |
お問い合わせ
| [list_tables | データベース内の全てのテーブルを一覧表示 | 読解者 |
| [[T1] | 読み取り専用 SELECT クエリを実行 | 読み取り専用 |
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
MSSQL MCP Server
MSSQL MCP Server is a Model Context Protocol (MCP) server that enables secure and structured interaction with Microsoft SQL Server (MSSQL) databases. It allows AI assistants to:
- List available tables
- Read table contents
- Execute SQL queries with controlled access
Built on MCP SDK v2 (2026-07-28 spec) with support for both stdio and Streamable HTTP transports.
Features
- Secure MSSQL Database Access through environment variables
- SQL Injection Protection with identifier validation
- Read-Only & Write Tools with appropriate MCP annotations
- Windows Authentication support via Trusted Connection
- Dual Transport — stdio (default) and HTTP
- Docker Support with pre-configured ODBC drivers
- Comprehensive Logging for monitoring queries and operations
Installation
pip install mssql-mcp-server
Configuration
Set the following environment variables to configure database access:
# Required
MSSQL_DATABASE=your_database
# Authentication (choose one):
# Option 1: SQL Server Authentication
MSSQL_USER=your_username
MSSQL_PASSWORD=your_password
# Option 2: Windows / Kerberos Authentication
Trusted_Connection=yes
# Optional
MSSQL_HOST=localhost # or use MSSQL_SERVER
MSSQL_DRIVER=SQL Server # default driver
TrustServerCertificate=no # default: no (set to yes for self-signed certs)
MCP_TRANSPORT=stdio # or "streamable-http" for Streamable HTTP
Available Tools
| Tool | Description | Annotations |
|---|---|---|
list_tables |
List all tables in the database | Read-only, Idempotent |
query_sql |
Execute read-only SELECT queries | Read-only, Idempotent |
execute_sql |
Execute any SQL statement (SELECT, INSERT, UPDATE, DELETE, DDL) | Destructive |
Usage
With Claude Desktop
Add this configuration to claude_desktop_config.json:
{
"mcpServers": {
"mssql": {
"command": "uv",
"args": [
"--directory",
"path/to/mssql_mcp_server",
"run",
"mssql_mcp_server"
],
"env": {
"MSSQL_HOST": "localhost",
"MSSQL_USER": "your_username",
"MSSQL_PASSWORD": "your_password",
"MSSQL_DATABASE": "your_database"
}
}
}
}
With Cursor IDE
Add this to your .cursor/mcp.json:
{
"mcpServers": {
"mssql": {
"command": "uv",
"args": [
"--directory",
"path/to/mssql_mcp_server",
"run",
"mssql_mcp_server"
],
"env": {
"MSSQL_HOST": "localhost",
"MSSQL_USER": "your_username",
"MSSQL_PASSWORD": "your_password",
"MSSQL_DATABASE": "your_database"
}
}
}
}
With pip install (global)
{
"mcpServers": {
"mssql": {
"command": "mssql_mcp_server",
"env": {
インストール
docker run -e MSSQL_HOST=host.docker.internal \設定
{
"mcpServers": {
"mssql": {
"command": "uv",
"args": [
"--directory",
"path/to/mssql_mcp_server",
"run",
"mssql_mcp_server"
],
"env": {
"MSSQL_HOST": "localhost",
"MSSQL_USER": "your_username",
"MSSQL_PASSWORD": "your_password",
"MSSQL_DATABASE": "your_database"
}
}
}
}