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.

7 Tage gratis · keine Kreditkarte · EU-Hosting

Frag MySQL alles

Teste einen echten Prompt gegen MySQL / MariaDB via AnythingMCP — Claude ruft die Tools auf, liefert die Antwort. Drück Enter auf deine eigene Nachricht, um auf Cloud zu installieren.

MySQL auf Cloud installieren
MySQL / MariaDB · live via MCP
Teilen
Opus 4.7

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

Setup in 2 Minuten

  1. 1Free Trial auf cloud.anythingmcp.com starten.
  2. 2Im Connector-Store auf MySQL / MariaDB klicken. Credentials einfügen.
  3. 3MCP-API-Key generieren und KI-Client auf die MCP-URL zeigen.
MySQL / MariaDB jetzt installieren

Anleitungen für MySQL

Schritt-für-Schritt-Setup für die wichtigsten KI-Clients.

MySQL / MariaDB einrichten

Direkt aus der Connector-Definition: wo du die Credentials findest, welche Rechte sie brauchen und mit welcher API dieser Adapter spricht. Vom Connector-Autor auf Englisch bereitgestellt.

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.

In MySQL a schema is a database. information_schema.tables.table_schema holds the database name, so the listing below is scoped to the one database you configured rather than to a schema inside it.

How a database connector behaves

  • It installs read-only. The engine rejects anything that is not a read until you flip the switch in the connector's settings. That is a guard rail, not a security boundary: give the connection a database role that is itself read-only, and the guard rail never has to matter.
  • Credentials live in the encrypted authConfig, not in the connection string. MYSQL_USER and MYSQL_PASSWORD are stored encrypted and spliced into the DSN at call time; the host and database name are stored in the plaintext baseUrl column.
  • Results are capped at 1000 rows. A query that would return more comes back truncated with a flag. Aggregate in SQL rather than in the agent.
  • A statement runs exactly as written. There is no query rewriting and no automatic LIMIT — an unbounded scan on a large table is a real unbounded scan on your production database. Say LIMIT.

Reachable from where?

  • On AnythingMCP Cloud the server must accept connections from the public internet, which for a production database usually means it should not. Point the connector at a read replica, or self-host AnythingMCP inside the network.
  • Self-hosted, add the host to SSRF_ALLOWED_HOSTS: the outbound guard blocks private address space by default, and 10.0.0.5 is exactly the shape it is there to block.

Deine KI ist zwei Klicks von MySQL / MariaDB entfernt.

Connector installieren, Credentials einfügen, KI fragen. 7 Tage gratis, keine Kreditkarte.