MySQL MCP サーバー
MySQLデータベースへの直接アクセスを提供する強力なMCPサーバー。このサーバーにより、AIエージェントはMySQLデータベースと対話し、SQLクエリを実行し、シンプルなインターフェースを通じてデータベースコンテンツを管理できるようになります。
特徴
リソース
- データベースに保存されているノートに
note:///{id}
URI 経由でアクセスします。 - 各メモにはタイトルと内容があります
- シンプルなコンテンツアクセスのためのプレーンテキスト MIME タイプ
ツール
create_note
- データベースに新しいテキストノートを作成する- タイトルとコンテンツを必須パラメータとして受け取ります
- MySQLデータベースにメモを保存する
list_tables
- 接続されたデータベース内のすべてのテーブルを一覧表示しますcount_tables
- データベース内のテーブルの合計数を取得しますsearch_tables
- LIKEパターンを使用してテーブルを検索するdescribe_table
- 特定のテーブルの構造を取得するexecute_sql
- カスタムSQLクエリを実行する
前提条件
- Node.js 18以上
- MySQLサーバーがインストールされ、実行中
- 適切な権限を持つデータベース
設定
- このリポジトリをクローンします:
- 依存関係をインストールします:
- MySQL 接続の詳細を含む
.env
ファイルをルート ディレクトリに作成します。 - サーバーを構築します。
インストール
クロードデスクトップ向け
Claude Desktop 構成ファイルにサーバー構成を追加します。
MacOS の場合: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows の場合: %APPDATA%/Claude/claude_desktop_config.json
クラインのために
Cline MCP 設定ファイルにサーバー設定を追加します。
MacOS の場合: ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows の場合: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
使用例
インストールが完了すると、Claude との会話で MySQL MCP サーバーを使用できるようになります。
データベース内のすべてのテーブルを一覧表示する
SQLクエリを実行する
メモを作成する
発達
自動リビルドを使用した開発の場合:
デバッグ
MCP Inspector を使用してサーバーをデバッグします。
インスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。
ライセンス
マサチューセッツ工科大学
This server cannot be installed
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.
AI エージェントが MySQL データベースと対話し、SQL クエリを実行し、シンプルなインターフェースを通じてデータベース コンテンツを管理できるようにする強力なサーバーです。
Related MCP Servers
- AsecurityAlicenseAqualityThis server enables AI models to interact with MySQL databases through a standardized interface.Last updated -564661JavaScriptMIT License
- -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
- AsecurityAlicenseAqualityConnect and interact with MySQL databases seamlessly. Execute SQL queries, manage database connections, and retrieve data directly through AI assistants. Enhance your AI capabilities with structured access to your MySQL data.Last updated -9143TypeScriptMIT License
- -securityFlicense-qualityEnables secure interaction with MySQL databases, allowing AI assistants to list tables, read data, and execute SQL queries through a controlled interface.Last updated -Python