Labsco
MCP SERVER

MariaDB

by abel9851

Read-only SQL against MariaDB, with the database schema exposed for the model to read first.

Relational SQL Databases
Summary
Question your database without handing over write access.

The pairing of a published schema with a read-only query path is what makes it safe to point an assistant at a real database: it can find out what exists before asking, and nothing it sends can change anything.

What it is

A small MariaDB connector: the schema list is published as a resource so the assistant can see what tables exist, and one tool runs read-only queries against them.

What you get
  • `query_database` — executes read-only operations against MariaDB
  • The database's schema list, exposed as a resource the client can read before writing a query
Requirements

A MariaDB instance and credentials, passed either as arguments to `uvx mcp-server-mariadb` — host, port, user, password, database — or as `MARIADB_HOST`, `MARIADB_USER`, `MARIADB_PASSWORD`, `MARIADB_DATABASE` and `MARIADB_PORT`, whose sample value is 3306. On macOS the install can fail with `mariadb_config not found`: install MariaDB Connector/C with `brew install mariadb-connector-c`, put its bin directory on your PATH, set `MARIADB_CONFIG` to the connector's `mariadb_config`, and run the install again.

Setup effort

One command plus a key — uvx mcp-server-mariadb, then supply credentials