Skip to main content
Glama
MariaDB Reader MCP Server

MariaDB Reader MCP Server

by moosin76

MariaDB Reader MCP Server

This project is a Model Context Protocol (MCP) server for exploring and interacting with MariaDB databases. It provides tools for AI assistants like Cline to access and query MariaDB databases.

function

This MCP server provides the following tools:

  • list_databases : Returns a list of all accessible databases.

  • list_tables : Returns a list of all tables in the specified database.

    • Input: database (string, required) - The name of the database for which to retrieve a list of tables.

  • get_table_schema : Returns the schema (column definition) of the specified table.

    • input:

      • database (string, required) - The name of the database to which the table belongs.

      • table (string, required) - The name of the table to query the schema for.

  • query_table : Retrieves data from a specified table. By default, it returns the first 100 rows.

    • input:

      • database (string, required) - The name of the database to which the table belongs.

      • table (string, required) - The name of the table from which to retrieve data.

      • limit (number, optional) - The maximum number of rows to return (default: 100).

Related MCP server: MCP MariaDB Server

setting

To use this server, you need to clone the GitHub repository and register the server information in the configuration file of your MCP client (e.g. the VS Code extension). This repository includes a pre-built executable ( build/index.js ), so no separate build step is required.

  1. Clone repository: Clone this repository to a location of your choice.

    git clone https://github.com/moosin76/mcp_server_mariadb_reader.git
  2. Modify the MCP settings file:

Example settings:

{
  "mcpServers": {
    "mcp_server_mariadb_reader": {
      "command": "node",
      "args": ["<클론된 저장소 경로>/build/index.js"], // 클론된 저장소 내 build/index.js 파일 경로
      "env": {
        "MARIADB_HOST": "YOUR_DB_HOST",         // MariaDB 호스트 주소
        "MARIADB_PORT": "YOUR_DB_PORT",         // MariaDB 포트 번호 (예: "3306")
        "MARIADB_USER": "YOUR_DB_USER",         // MariaDB 사용자 이름
        "MARIADB_PASSWORD": "YOUR_DB_PASSWORD", // MariaDB 비밀번호
        "MARIADB_DATABASE": "YOUR_DEFAULT_DB"   // (선택) 기본 데이터베이스 이름
      },
      "disabled": false,
      "autoApprove": []
    }
    // 다른 MCP 서버 설정...
  }
}

caution:

  • You need to change <클론된 저장소 경로> part to the local path where you cloned the actual repository (e.g. C:/Users/YourUser/Documents/GitHub/mcp_server_mariadb_reader ).

  • You will need to modify the MariaDB connection information in env object to match your actual environment.

Development (when modifying source code)

This repository contains the built files, so you don't need to follow the steps below to use the server. If you want to modify the source code ( src directory ) directly and apply the changes, follow these steps:

  1. Installing dependencies (first time or when changing package.json ):

    npm install
  2. Build after fix:

    npm run build
    • This command compiles TypeScript code in the src directory into JavaScript code in build directory.

  3. (Optional) Detect changes during development and build automatically:

    npm run watch

License

This project is distributed under the [Enter License Information] license.

Available Tools

4 tools
get_table_schemaB

특정 테이블의 스키마(컬럼 정의)를 가져옵니다.

Inputs: database (required), table (required).

list_databasesB

접근 가능한 모든 데이터베이스 목록을 보여줍니다.

Inputs: no named parameters.

list_tablesC

특정 데이터베이스 내의 모든 테이블 목록을 보여줍니다.

Inputs: database (required).

query_tableC

특정 테이블에서 데이터를 조회합니다 (제한된 행 반환).

Inputs: database (required), table (required), limit.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no overlap: get_table_schema retrieves column definitions, list_databases shows available databases, list_tables enumerates tables within a database, and query_table fetches data from a table. The descriptions clearly differentiate their functions, making misselection unlikely.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern with snake_case (e.g., get_table_schema, list_databases, list_tables, query_table). The naming is predictable and readable throughout the set, with no deviations in style.

    Tool Count4/5

    With 4 tools, the count is reasonable for a database reader server, but it feels slightly thin for covering all typical read operations. While core functions are present, additional tools like querying across tables or advanced filtering might enhance completeness without being excessive.

    Completeness3/5

    The tool set covers basic read operations (list databases, list tables, get schema, query data), but there are notable gaps for a database reader. Missing operations include querying with custom SQL, joining tables, or advanced filtering, which could limit agent capabilities in complex scenarios.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to interact with MariaDB databases through standard SQL operations and advanced vector/embedding-based search. Supports database management, schema inspection, and semantic document storage and retrieval with multiple embedding providers.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to interact with MariaDB databases through SQL operations and vector-based semantic search. Supports standard database queries, schema inspection, and optional embedding-powered document storage and retrieval.
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to interact with MariaDB databases through schema exploration, query execution, and database statistics. Includes security features like read-only mode, parameterized queries, and connection pooling with support for both JSON and Markdown output formats.
      -
    • A
      license
      B
      quality
      D
      maintenance
      Enables AI assistants to securely interact with MariaDB and MySQL databases using granular per-connection read/write permissions and transaction support. It allows users to manage multiple database connections, explore schemas, and execute controlled SQL queries through a standardized interface.
      6
      10 npm
      5
      MIT