Microsoft SQL Server MCP サーバー
Microsoft SQL Server データベースとの安全なやり取りを可能にするモデルコンテキストプロトコル(MCP)サーバー。このサーバーにより、AI アシスタントは制御されたインターフェースを介してテーブルの一覧表示、データの読み取り、SQL クエリの実行が可能になり、データベースの探索と分析をより安全かつ構造化できます。
特徴
- 利用可能な SQL Server テーブルをリソースとして一覧表示する
- 表の内容を読む
- 適切なエラー処理でSQLクエリを実行する
- 環境変数による安全なデータベースアクセス
- 包括的なログ記録
- システム依存関係の自動インストール
インストール
パッケージは、MCP 経由でインストールされると、必要なシステム依存関係 (FreeTDS など) を自動的にインストールします。
構成
次の環境変数を設定します。
使用法
クロード・デスクトップ
これをclaude_desktop_config.json
に追加します:
スタンドアロンサーバーとして
発達
セキュリティに関する考慮事項
- 環境変数や資格情報をコミットしないでください
- 必要最小限の権限を持つデータベースユーザーを使用する
- 本番環境での使用にクエリホワイトリストを実装することを検討する
- すべてのデータベース操作を監視して記録する
セキュリティのベストプラクティス
このMCPサーバーは機能するためにデータベースへのアクセスが必要です。セキュリティのため:
- 最小限の権限を持つ専用の SQL Server ログインを作成する
- sa 資格情報や管理者アカウントは使用しないでください
- 必要な操作のみにデータベースアクセスを制限する
- 監査目的でログを有効にする
- データベースアクセスの定期的なセキュリティレビュー
詳細な手順については、 SQL Server セキュリティ構成ガイドを参照してください。
- 制限付き SQL Server ログインの作成
- 適切な権限の設定
- データベースアクセスの監視
- セキュリティのベストプラクティス
⚠️ 重要: データベース アクセスを構成するときは、常に最小権限の原則に従ってください。
ライセンス
MIT ライセンス - 詳細については LICENSE ファイルを参照してください。
貢献
- リポジトリをフォークする
- 機能ブランチを作成します(
git checkout -b feature/amazing-feature
) - 変更をコミットします (
git commit -m 'Add some amazing feature'
) - ブランチにプッシュする (
git push origin feature/amazing-feature
) - プルリクエストを開く
You must be authenticated.
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Tools
Microsoft SQL Server データベースとの安全なやり取りを可能にするモデル コンテキスト プロトコル サーバー。これにより、AI アシスタントは制御されたインターフェイスを介してテーブルの一覧表示、データの読み取り、SQL クエリの実行が可能になります。
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 -20PythonMIT License
- -securityAlicense-qualityA Model Context Protocol server implementation that enables AI assistants to securely interact with GreptimeDB, allowing them to explore database schema, read data, and execute SQL queries through a controlled interface.Last updated -17PythonMIT License
- -security-license-qualityA Model Context Protocol server that enables AI assistants to securely interact with ClickHouse databases, supporting table exploration and SQL query execution through a controlled interface.Last updated -6PythonApache 2.0
- -securityAlicense-qualityA Model Context Protocol server that enables executing SQL queries and managing connections with Microsoft SQL Server databases.Last updated -3TypeScriptMIT License