mcp-server-mariadb MCP Server

An MCP server implementation for retrieving data from mariadb

Local serverstdio

What is the mcp-server-mariadb MCP Server?

mcp-server-mariadb is an MCP project maintained in the abel9851/mcp-server-mariadb repository. The maintainer describes its purpose as “An MCP server implementation for retrieving data from mariadb”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using /PATH/TO/uv. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Configuration values

The example declares MARIADB_HOST, MARIADB_USER, MARIADB_PASSWORD, MARIADB_DATABASE, MARIADB_PORT. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

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
query_databaseExecute read-only operations against MariDB

How to install the mcp-server-mariadb MCP Server

{
  "mcpServers": {
    "mcp_server_mariadb": {
      "command": "/PATH/TO/uv",
      "args": [
        "--directory",
        "/YOUR/SOURCE/PATH/mcp-server-mariadb/src/mcp_server_mariadb",
        "run",
        "server.py"
      ],
      "env": {
        "MARIADB_HOST": "127.0.0.1",
        "MARIADB_USER": "USER",
        "MARIADB_PASSWORD": "YOUR_MARIADB_PASSWORD",
        "MARIADB_DATABASE": "DATABASE",
        "MARIADB_PORT": "3306"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
MARIADB_HOSTDeclared in the maintainer’s client configuration.Check documentation
MARIADB_USERDeclared in the maintainer’s client configuration.Check documentation
MARIADB_PASSWORDDeclared in the maintainer’s client configuration.Check documentation
MARIADB_DATABASEDeclared in the maintainer’s client configuration.Check documentation
MARIADB_PORTDeclared in the maintainer’s client configuration.Check documentation