Connector guide2-minute read5 MCP toolsEN · DE · IT

MySQL / MariaDB mit Claude verbinden — über 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 teamAktualisiert 2 min read Open Source auf GitHub

Keine Kreditkarte · 7 Tage Test · Self-Hosting-Alternative verfügbar

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.

Tools

5

Region

INTL

Kategorie

Databases

Authentifizierung

Connection string

Benötigte Env-Vars

MYSQL_HOSTMYSQL_PORTMYSQL_DATABASEMYSQL_USERMYSQL_PASSWORD
Mit einem Klick in der Cloud installieren

7 Tage kostenlos testen · Keine Kreditkarte

  • 7 Tage kostenlos
    Keine Kreditkarte nötig
  • GDPR & SOC 2 ready
    EU-Datenhaltung, Audit-Logs
  • Open Source auf GitHub
    Open-Source · AGPL-3.0
  • Funktioniert mit ChatGPT, Claude, Gemini
    Jeder MCP-kompatible Client

Installation überspringen. In unter 2 Minuten einsatzbereit.

Starte eine kostenlose Testphase auf cloud.anythingmcp.com, füge MySQL / MariaDB mit einem Klick hinzu und richte deinen KI-Client (Claude, ChatGPT, Copilot oder Cursor) auf den erzeugten MCP-Endpoint. Kein Docker, kein git clone, keinerlei Entwicklungserfahrung nötig.

Kostenlos testen

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.

Frag einfach

Beispiel-Prompts für MySQL / MariaDB

Klick auf einen Prompt, um ihn zu kopieren. In Claude, ChatGPT, Cursor, Gemini, Copilot oder OpenClaw einfügen — und gegen diesen Connector laufen lassen.

MySQL / MariaDB · live via MCP
Teilen
Opus 4.7

Claude ist KI und kann Fehler machen. Bitte Antworten gegenprüfen.

💡 Keine Installation? Nutze cloud.anythingmcp.com direkt. Einloggen, Connectors → MySQL / MariaDB klicken, Zugangsdaten einfügen, MCP-API-Key erzeugen — fertig. Kein Docker, kein git clone, kein lokaler Server.

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.

Voraussetzungen

Die vollständige Setup-Anleitung ist in den Connector eingebaut (im Store sichtbar, wenn du den Connector auswählst). Benötigte Umgebungsvariablen für diesen Connector:

MYSQL_HOST, MYSQL_PORT, MYSQL_DATABASE, MYSQL_USER, MYSQL_PASSWORD

Schritt 1 — Zugangsdaten holen

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)

Schritt 2 — Adapter installieren

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

Schritt 3 — Connector in Claude hinzufügen

Empfohlener Weg — funktioniert auf claude.ai web ohne Anfassen einer Konfigurationsdatei.

  1. Öffne claude.ai/customize/connectors.
  2. Klicke "Add custom connector".
  3. Trage ein:
    • Name: MySQL / MariaDB
    • URL: https://cloud.anythingmcp.com/mcp
    • Authentication: Bearer Token → MCP-API-Key einfügen (aus AnythingMCP → Profile → MCP API Keys → New Key)
  4. Klicke Connect zum Autorisieren.

Alle unten gelisteten Tools erscheinen in deinem Chat — leg los mit Prompts.

Verfügbare Tools

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

Funktioniert es mit Claude Code genauso wie mit Claude Desktop? Ja — beide auf https://cloud.anythingmcp.com/mcp zeigen lassen.

Nächste Schritte

War dieser Guide hilfreich?

Your MySQL / MariaDB agent is one click away.

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

Verwandte Anleitungen