Claude AI 向けデータベースツール
これは、Claude AI が MySQL データベースと直接対話できるようにする MCP (Model Context Protocol) サーバーです。
特徴
- Claude を通じて MySQL データベースをクエリする
- 有効なSQLクエリを実行する
- サイズや構造など、テーブルに関する情報を取得します
- クロードで読みやすいようにフォーマットされた結果
インストール
Smithery経由でインストール
Smithery経由で Claude Desktop のデータベース ツールを自動的にインストールするには:
このツールをインストールして使用するには、次の手順に従います。
- リポジトリをクローンまたはダウンロードするまたは、ZIP ファイルをダウンロードして解凍します。
- 依存関係をインストールするプロジェクト ディレクトリに移動して、次のコマンドを実行します。
構成
Claude がこのツールを使用するには、通常次の場所にあるclaude_desktop_config.json
ファイルに構成を追加する必要があります。
次の構造になります。
使用法
設定が完了すると、次のようなコマンドを使用して Claude から MySQL データベースを操作できるようになります。
- すべてのデータベースを一覧表示する
「MySQL でクエリを実行してデータベースを表示します。」 - データベース内のテーブルを表示する
「MySQL でクエリを実行して、テーブルname_table
表示します。」 - テーブルのサイズを問い合わせる
「MySQL でクエリを実行して、テーブルname_table
のサイズを表示します。」 - カスタムクエリを実行する
「MySQL でクエリを実行する: クエリで実行する内容の説明。」
安全
このツールは、 mysql.js
ファイルで設定された権限で実行されます。許可したい操作に必要な権限のみを認証情報に含めてください。
トラブルシューティング
接続に問題がある場合は、以下を確認してください。
- MySQLが動作していること
mysql.js
の認証情報が正しいこと- Claude構成ファイル内のパスが正しいこと
実装
データベースをクエリするには、Claude に次のように質問するだけです:「MySQL 内のすべてのデータベースを表示してください」または「users テーブルのサイズはどれくらいですか?」
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Tools
Claude AI が MySQL データベースと直接対話し、自然言語によるクエリ実行とテーブル情報の取得を可能にする MCP サーバー。
Related MCP Servers
- AsecurityAlicenseAqualityAn MCP server that enables MySQL database integration with Claude. You can execute SQL queries and manage database connections.Last updated -27PythonMIT License
- AsecurityAlicenseAqualityAn MCP server implementation that enables Claude AI to interact with Clickhouse databases. Features include secure database connections, query execution, read-only mode support, and multi-query capabilities.Last updated -22PythonMIT License
- -securityAlicense-qualityAn MCP server that implements Claude Code-like functionality, allowing the AI to analyze codebases, modify files, execute commands, and manage projects through direct file system interactions.Last updated -229PythonMIT License
- -securityFlicense-qualityAn MCP server that allows AI assistants like Claude to execute terminal commands on the user's computer and return the output, functioning like a terminal through AI.Last updated -48Python