Connector guide2-minute read5 MCP toolsEN · DE · IT

Как подключить 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.

HCBy HelpCode teamОбновлено 2 min read Открытый код на GitHub

Без банковской карты · 7 дней пробного периода · Есть вариант self-host

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

Требуемые env-vars

MYSQL_HOSTMYSQL_PORTMYSQL_DATABASEMYSQL_USERMYSQL_PASSWORD
Установить в Cloud одним кликом

7 дней бесплатно · Без карты

  • 7 дней бесплатно
    Без банковской карты
  • GDPR & SOC 2 ready
    Данные в ЕС, журналы аудита
  • Открытый код на GitHub
    Open source · AGPL-3.0
  • Работает с ChatGPT, Claude, Gemini
    Любой MCP-совместимый клиент

Пропустите установку. Заработает меньше чем за 2 минуты.

Начните бесплатный период на cloud.anythingmcp.com, добавьте MySQL / MariaDB одним кликом и направьте свой ИИ-клиент (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 · live via MCP
Поделиться
Opus 4.7

Claude — это AI, он может ошибаться. Проверяйте ответы.

💡 Без установки? Используйте cloud.anythingmcp.com напрямую. Войдите, нажмите Connectors → MySQL / MariaDB, вставьте учётные данные, создайте MCP API key — готово. Без Docker, без git clone, без локального сервера.

MySQL / MariaDB + Claude

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 — Добавьте коннектор в Claude

Рекомендуемый путь — работает в claude.ai web без редактирования конфигурационных файлов.

  1. Откройте claude.ai/customize/connectors.
  2. Нажмите "Add custom connector".
  3. Заполните:
    • Name: MySQL / MariaDB
    • URL: https://cloud.anythingmcp.com/mcp
    • Authentication: Bearer token → вставьте ваш MCP API key (из AnythingMCP → Profile → MCP API Keys → New Key)
  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

Работает ли с Claude Code так же как с Claude Desktop? Да — оба указывайте на https://cloud.anythingmcp.com/mcp.

Следующие шаги

Это руководство помогло?

Your MySQL / MariaDB agent is one click away.

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

Похожие руководства

connectors

Как подключить 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.

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

Как подключить MySQL к MCP для AI-агентов

Подключи базы данных MySQL напрямую к AI-агентам через MCP. Запрашивайте таблицы и создавайте отчеты с помощью естественного языка с помощью коннектора базы данных AnythingMCP только для чтения.

connectors

Как подключить AFAS Profit к Claude — через 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 к Claude — через 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.