
This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A Model Context Protocol server that connects to MySQL databases and lets LLMs run SQL queries and inspect database information.
MySQL MCP Server is cataloged as an MCP server attributed to yuki777. A Model Context Protocol server that connects to MySQL databases and lets LLMs run SQL queries and inspect database information. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: ISC. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MySQL MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It supports MySQL 5.7 or later, or MariaDB servers.
No; it uses stdio mode and does not bind to a port.
README.md · 74fbf84f43c0 · 采集于 2026-11-13 11:03:40 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
MySQL Model Context Protocol(MCP)サーバーは、ローカル環境のMySQLデータベースに接続し、大規模言語モデル(LLM)がSQLクエリを実行できるようにするツールです。
npx -y https://github.com/yuki777/mysql-mcp-server --host 127.0.0.1 --port 13306 --user root
| オプション | 説明 | デフォルト値 |
|---|---|---|
-h, --host <host> | MySQLホスト | localhost |
-p, --port <port> | MySQLポート | 13306 |
-u, --user <user> | MySQLユーザー | root |
--password <password> | MySQLパスワード | (空文字) |
-d, --database <database> | デフォルトデータベース | (オプション) |
-c, --config <path> | 設定ファイルパス | (オプション) |
--auto-connect | サーバー起動時に自動的にデータベースに接続 | false |
--server-port <port> | MCPサーバーポート(stdioモードでは使用されません) | 3000 |
--server-host <host> | MCPサーバーホスト(stdioモードでは使用されません) | localhost |
--query-timeout <ms> | クエリタイムアウト(ミリ秒) | 30000 |
--max-results <count> | 最大結果行数 | 1000 |
--debug | デバッグモード | false |
MySQL MCP Serverは、正常に接続したデータベースの情報を名前付きプロファイルとしてローカルに保存します。これにより、次回の起動時に接続情報を名前で指定して再利用できます。保存された接続情報は、ユーザーのホームディレクトリにある .mysql-mcp-connections.json ファイルに保存されます。
各接続プロファイルには以下が含まれます:
複数のデータベース接続をプロファイル名で管理し、簡単に切り替えることが可能です。
設定ファイル(JSON形式)を使用して接続情報を設定することもできます:
{
"server": {
"port": 3000,
"host": "localhost"
},
"mysql": {
"host": "localhost",
"port": 13306,
"user": "root",
"password": "yourpassword",
"database": "mydb"
},
"debug": false,
"queryTimeout": 30000,
"maxResultSize": 1000
}
設定ファイルを使用する場合:
npx -y https://github.com/yuki777/mysql-mcp-server -c ./mysql-mcp-config.json
MySQL MCP ServerはMCP (Model Context Protocol) に準拠した「stdio」モードで動作します。これにより特定のポートにバインドせず、標準入出力を介して通信します。これには次のような利点があります:
| ツール名 | 説明 | 必須パラメータ |
|---|---|---|
| connect_database | データベースに接続します | host, port, user |
| connect_by_profile | 保存済みプロファイル名で接続します | profileName |
| disconnect_database | 現在のデータベース接続を切断します | なし |
| get_connection_status | データベース接続の状態を取得します | なし |
| ツール名 | 説明 | 必須パラメータ |
|---|---|---|
| list_profiles | 保存済みのプロファイル一覧を取得します | なし |
| get_profile | プロファイルの詳細を取得します | profileName |
| add_profile | 新しいプロファイルを追加します | profileName, host, port, user |
| remove_profile | プロファイルを削除します | profileName |
| ツール名 | 説明 | 必須パラメータ |
|---|---|---|
| execute_query | MySQLクエリを実行します | query: SQL文 |
| get_databases | 利用可能なデータベースの一覧を取得します | なし |
| get_tables | 指定したデータベース内のテーブル一覧を取得します | database (オプション) |
| describe_table | 指定したテーブルの構造を取得します | table |
MySQL MCP Serverでは、サーバーの起動とデータベース接続を分離することができます。このアプローチにより以下のメリットがあります:
npx -y https://github.com/yuki777/mysql-mcp-server だけで実行可能自動接続なしでサーバーを起動:
npx -y https://github.com/yuki777/mysql-mcp-server
接続ツールを使用してデータベースに接続(プロファイル名を指定して保存):
{
"type": "tool_call",
"request_id": "req_1",
"tool": "connect_database",
"arguments": {
"host": "localhost",
"port": 3306,
"user": "root",
"password": "your_password",
"database": "your_db",
"profileName": "my-db"
}
}
プロファイル一覧の取得:
{
"type": "tool_call",
"request_id": "req_2",
"tool": "list_profiles",
"arguments": {}
}
プロファイル名で接続:
{
"type": "tool_call",
"request_id": "req_3",
"tool": "connect_by_profile",
"arguments": {
"profileName": "my-db"
}
}
新しいプロファイルの追加(接続は行わない):
{
"type": "tool_call",
"request_id": "req_4",
"tool": "add_profile",
"arguments": {
"profileName": "production-db",
"host": "prod.example.com",
"port": 3306,
"user": "prod_user",
"password": "prod_password",
"database": "production"
}
}
接続状態の確認:
{
"type": "tool_call",
"request_id": "req_5",
"tool": "get_connection_status",
"arguments": {}
}
接続の切断:
{
"type": "tool_call",
"request_id": "req_6",
"tool": "disconnect_database",
"arguments": {}
}
リポジトリには test-connection-management.js というテストスクリプトが含まれています。このスクリプトを使用して、接続管理機能をテストできます:
node test-connection-management.js
# リポジトリのクローン
git clone [repository-url]
cd mysql-mcp-server
# 依存関係のインストール
npm install
# 開発モードでの実行
npm run dev
npm run build
ISC
バグレポートや機能リクエスト、プルリクエストを歓迎します。
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MySQL MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mysql-mcp-server-yuki777)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A Model Context Protocol server that lets AI assistants run SQL queries against AWS Athena databases and retrieve results.

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.