MCP.so
ログイン

Mariadb MCP Server

@abel9851

基本情報

カテゴリ

データベース

ライセンス

MIT license

トランスポート

stdio

作者

abel9851

Mariadb MCP Server について

An mcp server that provides read-only access to MariaDB.

Mariadb MCP Server の設定

標準の設定はありません

このサーバーの README には解析可能な MCP 設定ブロックが含まれていません。インストール手順はリポジトリをご確認ください。

リポジトリ

Mariadb MCP Server のツール

1

Execute read-only operations against MariDB

概要

What is mariadb-mcp-server?

mariadb-mcp-server is an MCP (Model Context Protocol) server that enables AI assistants like Claude to execute read-only SQL queries against a MariaDB database and retrieve its schema. It is intended for developers who want to query MariaDB through MCP-compatible clients.

How to use mariadb-mcp-server?

Install MariaDB Connector/C (on macOS using Homebrew), set the required environment variables (MARIADB_HOST, MARIADB_USER, MARIADB_PASSWORD, MARIADB_DATABASE, MARIADB_PORT), and configure your MCP client (e.g., Claude Desktop) with the uv command pointing to the server source. Once configured, use the query_database tool to run read-only queries.

Key features of mariadb-mcp-server

  • Exposes database schema list as resources
  • Provides a read-only query_database tool
  • Uses MariaDB Connector/C for database connectivity
  • Licensed under the MIT License

Use cases of mariadb-mcp-server

  • Query MariaDB from an AI assistant without write access
  • Explore and document database schemas through natural language
  • Integrate MariaDB data into MCP-powered workflows
  • Run ad-hoc read-only reports via Claude Desktop

よくある質問

1

How do I resolve the "mariadb_config not found" error?

Install MariaDB Connector/C (e.g., `brew install mariadb-connector-c`), add its `bin` directory to `PATH`, set the `MARIADB_CONFIG` environment variable, and retry the dependency installation.

2

What environment variables are required?

`MARIADB_HOST`, `MARIADB_USER`, `MARIADB_PASSWORD`, `MARIADB_DATABASE`, and `MARIADB_PORT` (default 3306). These are set in the client configuration’s `env` block.

3

What operations can the server perform?

It only supports read-only operations via the `query_database` tool. No write or DDL commands are allowed.

4

Where is the Claude Desktop configuration file located?

On macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`. On Windows: `%APPDATA%\Claude\claude_desktop_config.json`.

5

What license does mariadb-mcp-server use?

It is licensed under the MIT License.

コメント

「データベース」の他のコンテンツ