Creativity · MCP — server

MCP MariaDB Server

The MCP MariaDB Server is a community-maintained Model Context Protocol server that wraps the MariaDB C/Python connectors. It gives an LLM client read (and optionally write) access to a MariaDB database — schema listing, query execution, row inspection — without handing over raw connection strings every turn.

MCP facts

Kind
server
Ecosystem
anthropic-mcp
Language
Python
Transports
stdio

Capabilities

  • Tools: list_tables, describe_table, query, run_transaction (opt-in)
  • Resources: mariadb://table/{name} URIs
  • Auth: MARIADB_URL DSN; optional MARIADB_ALLOW_WRITE flag

Install

pip install mcp-server-mariadb && python -m mcp_server_mariadb

Configuration

{
  "mcpServers": {
    "mariadb": {
      "command": "python",
      "args": ["-m", "mcp_server_mariadb"],
      "env": {
        "MARIADB_URL": "mysql://readonly:pass@host:3306/appdb",
        "MARIADB_ALLOW_WRITE": "false"
      }
    }
  }
}

Frequently asked questions

Is this server official?

No — it is community-maintained. MariaDB Foundation does not ship an MCP server; community Python and Go implementations are both common.

Can I point it at MySQL too?

Yes — MariaDB's wire protocol is MySQL-compatible. Most MCP MariaDB servers accept a MySQL DSN, though edge features like columnstore may behave differently.

How do I prevent destructive queries?

Connect with a read-only database user. The MCP server layer is defense in depth, but the database itself is the enforcement boundary.

Sources

  1. MariaDB documentation — accessed 2026-04-20
  2. MCP community servers — accessed 2026-04-20