Database · Developer Tools

Mariadb MCP Server logo

Mariadb MCP Server

bretoreta/mariadb-mcp-server

This is an MCP server that provides MariaDB/MySQL database access, supporting features such as listing databases, describing table schemas and executing SQL queries, with security features such as read-only access and query validation.

Install

Client configuration

{
  "mcpServers": {
    "mariadb": {
      "command": "node",
      "args": [
        "/path/to/mariadb-mcp-server/dist/index.js"
      ],
      "env": {
        "MARIADB_HOST": "<MARIADB_HOST>",
        "MARIADB_PORT": "<MARIADB_PORT>",
        "MARIADB_USER": "<MARIADB_USER>",
        "MARIADB_PASSWORD": "<MARIADB_PASSWORD>",
        "MARIADB_DATABASE": "<MARIADB_DATABASE>",
        "MARIADB_ALLOW_INSERT": "<MARIADB_ALLOW_INSERT>",
        "MARIADB_ALLOW_UPDATE": "<MARIADB_ALLOW_UPDATE>",
        "MARIADB_ALLOW_DELETE": "<MARIADB_ALLOW_DELETE>",
        "MARIADB_TIMEOUT_MS": "<MARIADB_TIMEOUT_MS>",
        "MARIADB_ROW_LIMIT": "<MARIADB_ROW_LIMIT>"
      }
    }
  }
}

Environment variables

MARIADB_HOSTMARIADB_PORTMARIADB_USERMARIADB_PASSWORDMARIADB_DATABASEMARIADB_ALLOW_INSERTMARIADB_ALLOW_UPDATEMARIADB_ALLOW_DELETEMARIADB_TIMEOUT_MSMARIADB_ROW_LIMIT
Category
Database, Developer Tools
License
MIT
Updated
Oct 6, 2026

Features

  • Read-only access Default: SELECT, SHOW, DESCRIBE, and EXPLAIN

  • Query validation: Prevents SQL injection and blocks any data modification attempts

  • Query timeout: Prevents long-running queries from consuming resources

  • Row limit: Prevents excessive data return

Tools (4)

  • list_databases

    Lists all accessible databases on the MariaDB / MySQL server.

  • list_tables

    Lists all tables in a specified database.

  • describe_table

    Shows the schema for a specific table.

  • execute_query

    Executes a SQL query.

Details on this page are taken from the project's README. Open README

Related MCP servers

More servers
Supabase MCP logo

Supabase MCP

supabase-community/supabase-mcp

1.3k

The Model Context Protocol (MCP) standardizes how Large Language Models (LLMs) talk to external services like Supabase. It connects AI assistants directly with your Supabase project and allows them to perform tasks like managing tables, fetching config, and querying data. See the full list of tools.

Database
Genai Toolbox logo

Genai Toolbox

googleapis/genai-toolbox

769

MCP Toolbox for Databases is an open source Model Context Protocol (MCP) server that connects your AI agents, IDEs, and applications directly to your enterprise databases.

Database
Supabase MCP Server logo

Supabase MCP Server

alexander-zuev/supabase-mcp-server

677

Query MCP is an open-source MCP server that lets your IDE safely run SQL, manage schema changes, call the Supabase Management API, and use Auth Admin SDK — all with built-in safety controls.

Database
Awesome MCP List logo

Awesome MCP List

MobinX/awesome-mcp-list

645

This is a continuously updated curated list of MCP servers, covering categories such as browser control, arts and culture, cloud platforms, command line, communication, customer data platforms, databases, developer tools, data science tools, file systems, finance and fintech, gaming, knowledge and memory, location services, marketing, monitoring, search and utilities. Each project includes a GitHub link and star count for quick reference and use.

Database
PostgreSQL Model Context Protocol (PG MCP) Server logo

PostgreSQL Model Context Protocol (PG MCP) Server

stuzero/pg-mcp-server

440

PG-MCP is a server implementation of the Model Context Protocol for PostgreSQL databases. It provides a comprehensive API for AI agents to discover, connect to, query, and understand PostgreSQL databases through MCP's resource-oriented architecture.

Database
dbhub logo

dbhub

bytebase/dbhub

332

[!NOTE] If you need an enterprise-level database MCP server with built-in guardrails like approval flow, access control, data masking, and audit logging beyond what DBHub offers, check out Bytebase.

Database