Integrations
Enables database exploration and interaction with MariaDB databases, providing tools to list databases, view tables, retrieve table schemas, and query table data with customizable limits.
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.
- Input:
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.
- input:
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).
- input:
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.
- Clone repository: Clone this repository to a location of your choice.Copy
- Modify the MCP settings file:
Example settings:
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:
- Installing dependencies (first time or when changing
package.json
):Copy - Build after fix:Copy
- This command compiles TypeScript code in the
src
directory into JavaScript code inbuild
directory.
- This command compiles TypeScript code in the
- (Optional) Detect changes during development and build automatically:Copy
License
This project is distributed under the [Enter License Information] license.
You must be authenticated.
Provides tools for AI assistants to explore and interact with MariaDB databases, allowing them to list databases, view tables, inspect schema definitions, and query data.