Connector guide2-minute read5 MCP toolsEN · DE · IT

MySQL / MariaDB を ChatGPT に接続する方法 — MCP 経由

Query a MySQL or MariaDB database directly: list tables, describe columns and run read-only SQL. Installs read-only; credentials are held encrypted rather than in the connection string.

HCBy HelpCode team更新日 2 min read GitHub でオープンソース

クレジットカード不要 · 7日間の試用 · セルフホストの選択肢あり

MySQL / MariaDB

MySQL / MariaDB

Query a MySQL or MariaDB database directly: list tables, describe columns and run read-only SQL. Installs read-only; credentials are held encrypted rather than in the connection string.

ツール

5

地域

INTL

カテゴリー

Databases

認証

Connection string

必要な環境変数

MYSQL_HOSTMYSQL_PORTMYSQL_DATABASEMYSQL_USERMYSQL_PASSWORD
Cloud にワンクリックでインストール

7日間無料トライアル · クレジットカード不要

  • 7日間の無料トライアル
    クレジットカード不要
  • GDPR & SOC 2 ready
    EU データ保管、監査ログ
  • GitHub でオープンソース
    オープンソース · AGPL-3.0
  • ChatGPT、Claude、Gemini に対応
    MCP 対応クライアントすべて

インストール不要。2分以内に動きます。

cloud.anythingmcp.com で無料トライアルを開始し、MySQL / MariaDB をワンクリックで追加して、AI クライアント(Claude、ChatGPT、Copilot、Cursor)を生成された MCP エンドポイントに向けるだけ。Docker も git clone も、開発経験も不要です。

無料トライアルを開始

Summary

Query a MySQL or MariaDB database directly: list tables, describe columns and run read-only SQL. Installs read-only; credentials are held encrypted rather than in the connection string.

こう聞いてみよう

MySQL / MariaDB のサンプルプロンプト

プロンプトをクリックでコピー。Claude / ChatGPT / Cursor / Gemini / Copilot / OpenClaw に貼り付けて、このコネクターで実行できます。

MySQL / MariaDB · MCP 経由でライブ
共有
Opus 4.7

Claude は AI のため誤ることがあります。回答をご確認ください。

💡 インストール不要? cloud.anythingmcp.com を直接利用してください。 サインインし、Connectors → MySQL / MariaDB をクリック、認証情報を貼り付け、MCP API キーを発行 — 完了です。Docker も git clone もローカルサーバーも不要。

MySQL / MariaDB + ChatGPT

Query a MySQL or MariaDB database directly: list tables, describe columns and run read-only SQL. Installs read-only; credentials are held encrypted rather than in the connection string.

前提条件

完全なセットアップ手順はコネクタ自体に組み込まれています (ストアでコネクタを選択すると表示)。必要な環境変数:

MYSQL_HOST, MYSQL_PORT, MYSQL_DATABASE, MYSQL_USER, MYSQL_PASSWORD

ステップ 1 — 認証情報を取得

Setup

  1. Create a dedicated user and grant it only SELECT:
    CREATE USER 'amcp_reader'@'%' IDENTIFIED BY 'change-me';
    GRANT SELECT ON sales.* TO 'amcp_reader'@'%';
    FLUSH PRIVILEGES;
    
    Narrow '%' to the AnythingMCP host if you can — MySQL's host part of the account name is a real access control and worth using.
  2. Set MYSQL_HOST, MYSQL_PORT (3306), MYSQL_DATABASE, MYSQL_USER and MYSQL_PASSWORD.

MariaDB works unchanged. The engine also accepts a mariadb:// DSN and normalises it, because the mysql2 driver only understands mysql://. Either scheme reaches a MariaDB server.

…(continued in the in-app connector instructions)

ステップ 2 — アダプターをインストール

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

ステップ 3 — ChatGPT にコネクタを追加

ChatGPT は Connectors 機能 (Plus / Pro / Team / Enterprise プラン) で MCP サーバーをサポートします。無料プランはカスタムコネクタをサポートしません。

  1. ChatGPT → Settings → Connectors を開きます (またはコンポーザーの 🔧 アイコン → Manage connectors をクリック)。
  2. "Add custom connector" をクリック。
  3. 入力:
    • Name: MySQL / MariaDB
    • MCP server URL: https://cloud.anythingmcp.com/mcp
    • Authentication: Bearer token → MCP API キーを貼り付け
  4. Connect をクリック。

利用可能なツール

ToolWhat it does
mysql_list_tablesList the tables and views in the database with their schema and, where the server tracks it, an approximate row count
mysql_describe_tableDescribe one table: every column with its data type, nullability and default
mysql_find_columnsFind columns across every table whose name matches a pattern — the fast way to locate where customer e-mail addresses, IBANs or order number
mysql_queryRun a read-only SQL statement against MySQL / MariaDB and return up to 1000 rows
mysql_query_examplesShow worked example queries for MySQL / MariaDB: how to list schemas, find large tables, inspect indexes and check what is running right now

FAQ

ChatGPT 無料プランはカスタム MCP Connectors で動作しますか? いいえ — Plus、Pro、Team、Enterprise が必要です。

次のステップ

このガイドは役に立ちましたか?

Your MySQL / MariaDB agent is one click away.

Install the connector, paste the key, prompt ChatGPT. Free for 7 days, no credit card.

関連ガイド

connectors

MySQL / MariaDB を Claude に接続する方法 — MCP 経由

Query a MySQL or MariaDB database directly: list tables, describe columns and run read-only SQL. Installs read-only; credentials are held encrypted rather than in the connection string.

connectors

MySQL / MariaDB を Cursor に接続する方法 — MCP 経由

Query a MySQL or MariaDB database directly: list tables, describe columns and run read-only SQL. Installs read-only; credentials are held encrypted rather than in the connection string.

connectors

MySQL / MariaDB を Gemini に接続する方法 — MCP 経由

Query a MySQL or MariaDB database directly: list tables, describe columns and run read-only SQL. Installs read-only; credentials are held encrypted rather than in the connection string.

databases

AIエージェントのためのMCPへのMySQL接続方法

MySQLデータベースをMCP経由でAIエージェントに直接接続します。AnythingMCPの読み取り専用データベースコネクタを使用して、自然言語でテーブルをクエリし、レポートを実行します。

connectors

AFAS Profit を ChatGPT に接続する方法 — MCP 経由

AFAS Profit — Dutch ERP and HR: read any published GetConnector, list what is available, and inspect a connector's metadata. Token auth with AFAS's base64-wrapped XML token.

connectors

Aruba Fatturazione Elettronica を ChatGPT に接続する方法 — MCP 経由

Aruba Fatturazione Elettronica: send and track Italian e-invoices through the Sistema di Interscambio, read received invoices and their SDI notifications. Token auth against Aruba's B2B gateway.