@f4ww4z/mcp-mysql-server
MySQLデータベース操作を提供するモデルコンテキストプロトコルサーバー。このサーバーにより、AIモデルは標準化されたインターフェースを介してMySQLデータベースと対話できるようになります。
インストール
Smithery経由でインストール
Smithery経由で Claude Desktop 用の MySQL Server を自動的にインストールするには:
手動インストール
構成
サーバーでは、MCP 設定構成ファイルに次の環境変数を設定する必要があります。
推奨用途
評価の実行
evalsパッケージはmcpクライアントをロードし、index.tsファイルを実行するため、テスト間でリビルドする必要はありません。npxコマンドの先頭に環境変数をロードすることもできます。完全なドキュメントはこちらでご覧いただけます。
利用可能なツール
1. connect_db
提供された資格情報を使用して MySQL データベースへの接続を確立します。
2. クエリ
オプションの準備されたステートメント パラメータを使用して SELECT クエリを実行します。
3. 実行する
オプションの準備されたステートメント パラメータを使用して、INSERT、UPDATE、または DELETE クエリを実行します。
4. list_tables
接続されたデータベース内のすべてのテーブルを一覧表示します。
5. テーブルの説明
特定のテーブルの構造を取得します。
特徴
- 自動クリーンアップによる安全な接続処理
- クエリパラメータの準備済みステートメントのサポート
- 包括的なエラー処理と検証
- TypeScriptサポート
- 自動接続管理
安全
- SQLインジェクションを防ぐために準備されたステートメントを使用する
- 環境変数による安全なパスワード処理をサポート
- 実行前にクエリを検証します
- 完了すると自動的に接続が閉じられます
エラー処理
サーバーは、一般的な問題に関する詳細なエラー メッセージを提供します。
- 接続失敗
- 無効なクエリ
- パラメータが不足しています
- データベースエラー
貢献
貢献を歓迎します!お気軽にhttps://github.com/f4ww4z/mcp-mysql-serverにプルリクエストを送信してください。
ライセンス
マサチューセッツ工科大学
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
このサーバーにより、AI モデルは標準化されたインターフェースを介して MySQL データベースと対話できるようになります。
Related MCP Servers
- AsecurityFlicenseAqualityEnables AI models to perform MySQL database operations through a standardized interface, supporting secure connections, query execution, and comprehensive schema management.Last updated -73522JavaScript
- -securityAlicense-qualityA server that enables AI models to interact with MySQL databases through a Model Control Protocol, providing tools for table creation, schema inspection, query execution, and data retrieval.Last updated -20PythonMIT License
- -security-license-qualityA Model Context Protocol server that enables AI models to interact with MySQL databases, providing tools for querying, executing statements, listing tables, and describing table structures.Last updated -MIT License
- -security-license-qualityA Model Context Protocol server that enables AI models to interact with MySQL databases through a standardized interface, providing tools for querying, executing commands, and managing database schemas.Last updated -JavaScript