MSSQL MCP サーバー
Microsoft SQL Server データベースに接続するためのモデルコンテキストプロトコル (MCP) サーバー。このサーバーは、SQL クエリの実行とデータベース接続の管理のためのツールを提供します。
**バージョンに関するお知らせ:**このプロジェクトは、Model Context Protocol SDK 1.9.0を使用するようにアップグレードされました。詳細はUPGRADE.mdをご覧ください。
インストール
Smithery経由でインストール
Smithery経由で Claude Desktop 用の MSSQL MCP Server を自動的にインストールするには:
手動インストール
使用法
MCP 設定構成ファイルにサーバーを追加します。
ツール
クエリ
MSSQL データベースで SQL クエリを実行します。
パラメータ
connectionString
(文字列、オプション): 完全な接続文字列 (個々のパラメータの代替)host
(文字列、オプション): データベースサーバーのホスト名port
(数値、オプション): データベースサーバのポート (デフォルト: 1433)database
(文字列、オプション): データベース名 (デフォルト: master)username
(文字列、オプション): データベースのユーザー名password
(文字列、オプション): データベースのパスワードquery
(文字列、必須): 実行するSQLクエリencrypt
(ブール値、オプション): 暗号化を有効にする (デフォルト: false)trustServerCertificate
(ブール値、オプション): 信頼サーバー証明書 (デフォルト: true)
connectionString
または ( host
+ username
+ password
) のいずれかを指定する必要があります。
例
サーバーの実行
地域開発
Dockerの使用
テスト
安全
サーバーには、危険な SQL 操作に対する安全策が組み込まれています。
- DROP、TRUNCATE、ALTER、CREATE、EXEC などの潜在的に有害なコマンドをブロックします。
- すべての入力パラメータとデータベース名を検証します
- クエリの長さとタイムアウトに適切な制限を設定します
- パフォーマンスとセキュリティを向上させるために接続プールを使用します
ライセンス
マサチューセッツ工科大学
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
モデル コンテキスト プロトコルを通じて SQL クエリの実行と Microsoft SQL Server データベース接続の管理を可能にします。
Related Resources
Related MCP Servers
- -securityAlicense-qualityA 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 -39PythonMIT License
- -securityFlicense-qualityA Model Context Protocol server that enables SQL query execution, database management, and business intelligence capabilities through MySQL connections.Last updated -JavaScript
- AsecurityAlicenseAqualityA Model Context Protocol server that enables executing SQL queries and managing connections with Microsoft SQL Server databases.Last updated -1425TypeScriptMIT License
- -securityFlicense-qualityA Model Context Protocol server that provides comprehensive access to Microsoft SQL Server databases, enabling Language Models to inspect schemas, execute queries, manage database objects, and perform advanced database operations.Last updated -6Python