database-mcp-mariadb
MCP server giving AI clients safe, structured access to a MariaDB database. Two tools, guardrails on by default.
Quick start (Claude Desktop / Claude Code / Cursor)
{
"mcpServers": {
"mariadb": {
"command": "uvx",
"args": ["database-mcp-mariadb"],
"env": {
"MARIADB_HOST": "127.0.0.1",
"MARIADB_USER": "youruser",
"MARIADB_PASSWORD": "yourpassword",
"MARIADB_DATABASE": "yourdb"
}
}
}
}
Configuration
Sources, highest precedence first: flags, --config YAML, environment
variables, defaults.
Environment variables
MARIADB_HOST, MARIADB_PORT, MARIADB_USER, MARIADB_PASSWORD,
MARIADB_DATABASE, or a full MARIADB_DSN
(mysql://user:pass@host:3306/db, inline credentials discouraged).
Password without plaintext
MARIADB_PASSWORD_FILE=/run/secrets/mariadb_password(Docker/Kubernetes secrets convention)- In YAML:
connection.password: ${MARIADB_PASSWORD}(env expansion, never a literal)
The password is held in a non-printable type and redacted from all output.
Tools
execute_sql: run a single SQL statement. Returns a summary line and compact JSON{columns, rows}.search_objects: list tables with estimated row counts, or describe one table (columns, indexes, foreign keys).
Guardrails
- Read-only by default, enforced twice: a SQL guard plus
SET SESSION TRANSACTION READ ONLYat the server. Pass--allow-writeto enable writes. - Results capped at
maxRows(default 1000,MAX_ROWS). - Statements exceeding
queryTimeoutMs(default 30000,QUERY_TIMEOUT_MS) are aborted.
Full contract: docs/tool-contract.md
mcp-name: io.github.arifulislamat/database-mcp-mariadb
Metadata
Release files for database-mcp-mariadb 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| database_mcp_mariadb-0.2.0.tar.gz | 2.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| database_mcp_mariadb-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.2 kB
Release files / database_mcp_mariadb-0.2.0.tar.gz
| Download URL | database_mcp_mariadb-0.2.0.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4988d86ca345e37bd618689ccd116d1df437af1083ebafb4b5f63dff11d828f8
|
|
BLAKE2b-256 checksum How to use checksums |
b4b2b4cff09f1a2fabb3152e5b943f8cf7889c584e4cb5550272c5a7be3e4545
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / database_mcp_mariadb-0.2.0-py3-none-any.whl
| Download URL | database_mcp_mariadb-0.2.0-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0e2266eb2cca025aa52d79e6a53232fea681abef2afb260ae834b6986faa27f4
|
|
BLAKE2b-256 checksum How to use checksums |
6420caa2ff31854c50a86ed72b882ae52e09f9b3e56970145514158f0b43a0c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for database-mcp-mariadb 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.