Mariadb MCP Server

An MCP server that provides access to MariaDB ou MySQL databases.

Local serverstdio

What is the Mariadb MCP Server?

Mariadb mcp server connects Mariadb to AI assistants that speak the Model Context Protocol. An MCP server that provides access to MariaDB ou MySQL databases.

What Mariadb does

This MCP server provides access to MariaDB / MySQL databases.

Practical notes

  • Maintained by bretoreta.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
list_databasesLists all accessible databases on the MariaDB / MySQL server. **Parameters**: None
list_tables
describe_table
execute_query

How to install the Mariadb MCP Server

{
  "mcpServers": {
    "mariadb": {
      "command": "npx",
      "args": ["-y", "pnpm"],
      "env": {
        "MARIADB_HOST": "your-value",
        "MARIADB_PORT": "your-value",
        "MARIADB_USER": "your-value",
        "MARIADB_PASSWORD": "your-value",
        "MARIADB_DATABASE": "your-value",
        "MARIADB_ALLOW_INSERT": "your-value",
        "MARIADB_ALLOW_UPDATE": "your-value",
        "MARIADB_ALLOW_DELETE": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
MARIADB_HOSTEndpoint or connection string the server talks to.Optional
MARIADB_PORTConfiguration value read at startup.Optional
MARIADB_USERConfiguration value read at startup.Optional
MARIADB_PASSWORDConfiguration value read at startup.Optional
MARIADB_DATABASEConfiguration value read at startup.Optional
MARIADB_ALLOW_INSERTConfiguration value read at startup.Optional
MARIADB_ALLOW_UPDATEConfiguration value read at startup.Optional
MARIADB_ALLOW_DELETEConfiguration value read at startup.Optional

Example prompts to try

  • “Use Mariadb to list databases.”
  • “Use Mariadb to list tables.”
  • “Use Mariadb to describe table.”

Frequently asked questions

An MCP server that provides access to MariaDB ou MySQL databases. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.