1. Conduid
  2. Data
  3. Mariadb MCP Server
MCP server · Data

Mariadb MCP Server

MCP server for MariaDB/MySQL with per-connection read/write access control

Unclaimed MIT last commit 6 months ago data
34Low

Scored 5 days ago · breakdown

About Mariadb MCP Server

Mariadb MCP Server is an MCP server published by cemalturkcan in the Data category: mCP server for MariaDB/MySQL with per-connection read/write access control.

The repository has 5 stars and 0 forks, with the last commit 6 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/cemalturkcan/mariadb-mcp-server

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Mariadb MCP Server

Powered by Claude · Grounded in docs

I know everything about Mariadb MCP Server. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository yesterday. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.

1 check has not been run yet.

Releases

v1.1.3v1.1.3 · 4 Apr 20261.1.3 (2026-04-04) Bug Fixes translate all user-facing strings from Turkish to English (70f33b3)
v1.1.2v1.1.2 · 2 Apr 20261.1.2 (2026-04-02) Bug Fixes use named import for mariadb to fix Node.js v24 ESM compatibility (6c6be0b)
v1.1.1v1.1.1 · 24 Mar 20261.1.1 (2026-03-24) Bug Fixes Windows-compatible config path (APPDATA) and correct OpenCode MCP format in README (ed512d9)
v1.1.0v1.1.0 · 24 Mar 20261.1.0 (2026-03-24) Features auto-create default config at ~/.config/mariadb-mcp/ and improve README (5d22a63)
v1.0.2v1.0.2 · 24 Mar 20261.0.2 (2026-03-24) Bug Fixes correct npm scope and fix bin entry (bef4515)

README

mariadb-mcp-server

MCP (Model Context Protocol) server for MariaDB/MySQL databases. Provides AI assistants with safe, controlled database access through per-connection read/write permissions.

Features

  • Multi-connection — manage multiple MariaDB/MySQL databases from a single server
  • Per-connection access control — read and write flags per connection
  • Optional limits — statement_timeout_ms, default_row_limit, max_row_limit (all optional, unlimited by default)
  • SQL guard — validates queries to prevent accidental writes through read tools
  • Transaction support — atomic multi-query execution on writable connections

Installation

npm install -g @cemalturkcann/mariadb-mcp-server

Or use directly with npx:

npx @cemalturkcann/mariadb-mcp-server

Configuration

The server looks for config.json in this order:

  1. DB_MCP_CONFIG_PATH environment variable
  2. Next to the package (../config.json relative to src/)
  3. Current working directory
  4. ~/.config/mariadb-mcp/config.json

If no config is found, a default one is created automatically at ~/.config/mariadb-mcp/config.json with a local read-only connection.

Example config:

{
  "connections": {
    "local": {
      "host": "localhost",
      "port": 3306,
      "user": "root",
      "password": "",
      "description": "Local MariaDB",
      "read": true,
      "write": true
    },
    "production": {
      "host": "db.example.com",
      "port": 3306,
      "user": "readonly_user",
      "password": "secret",
      "database": "mydb",
      "description": "Production (read-only)",
      "read": true,
      "write": false,
      "statement_timeout_ms": 5000,
      "default_row_limit": 50,
      "max_row_limit": 500
    }
  }
}

Connection options

Field Type Default Description
host string localhost Database host
port number 3306 Database port
user string root Database user
password string "" Database password
database string "" Default database
description string "" Human-readable label
read boolean true Allow read queries
write boolean false Allow write queries
ssl boolean/object false SSL configuration
statement_timeout_ms number none Connection timeout (0 or omit = unlimited)
default_row_limit number none Default LIMIT for SELECT (0 or omit = unlimited)
max_row_limit number none Max allowed LIMIT (0 or omit = unlimited)

MCP Tools

Tool Description Requires
list_connections List all configured connections —
list_databases Show databases on a connection read
list_tables Show tables (optionally in a specific database) read
describe_table Show column definitions read
execute_select Run SELECT / SHOW / DESCRIBE / EXPLAIN queries read
execute_write Run INSERT / UPDATE / DELETE / DDL queries write
execute_transaction Run multiple write queries atomically write
suggest_query Suggest a query for manual review —

MCP Client Setup

On first run, a default config is created automatically at ~/.config/mariadb-mcp/config.json (Linux/macOS) or %APPDATA%\mariadb-mcp\config.json (Windows). Edit it to add your connections.

Claude Code

Add to ~/.claude.json:

{
  "mcpServers": {
    "mariadb": {
      "command": "npx",
      "args": ["-y", "@cemalturkcann/mariadb-mcp-server"]
    }
  }
}

OpenCode

Add to your opencode.json:

{
  "mcp": {
    "mariadb": {
      "type": "local",
      "command": ["npx", "-y", "@cemalturkcann/mariadb-mcp-server"]
    }
  }
}

Other MCP Clients

Any MCP-compatible client can use this server. The binary name is mariadb-mcp-server and it communicates over stdio. To use a custom config path, set DB_MCP_CONFIG_PATH.

License

MIT

README fetched from the repository yesterday. The original is authoritative.

Questions

About Mariadb MCP Server

How do I install Mariadb MCP Server?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Mariadb MCP Server safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 4 of the 5 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Mariadb MCP Server still maintained?

The last commit was 6 months ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.