Token导航 LogoToken导航TokenDH.com
MariaDB MCP Server logo
数据服务未说明官方级别未说明来源级核验

MariaDB MCP Server

MCP Server

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

工具数

0

提示词数

0

GitHub Stars

20

资源数

0
数据分析数据库服务MySQLClaude数据检索Claude DesktopClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

abel9851

提供方

abel9851

最后核验

2026/5/18 02:51

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

mcp服务器mariadb

从mariadb检索数据的MCP服务器实现

特性

资源

显示数据库中的架构列表

工具

  • 查询数据库

- 对MariDB执行只读操作

依赖

安装mariadb

  • 苹果电脑

- 当安装mariadb时, 可能会在下面引发操作系统错误。 您可以通过安装mariadb-connector-c来解决这个问题。


OSError: mariadb_config not found.

      This error typically indicates that MariaDB Connector/C, a dependency which
      must be preinstalled, is not found.
      If MariaDB Connector/C is not installed, see installation instructions
      If MariaDB Connector/C is installed, either set the environment variable
      MARIADB_CONFIG or edit the configuration file 'site.cfg' to set the
       'mariadb_config' option to the file location of the mariadb_config utility.
  1. 执行 brew install mariadb-connector-c
  2. 执行 echo 'export PATH="/opt/homebrew/opt/mariadb-connector-c/bin:$PATH"' >> ~/.bashrc
  3. 设置环境变量 export MARIADB_CONFIG=$(brew --prefix mariadb-connector-c)/bin/mariadb_config
  4. 执行 uv add mariadb 再一次。

使用Claude Desktop

配置文件

Claude Desktop配置文件的路径:

  • MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • 视窗: %APPDATA%\Claude\claude_desktop_config.json

Add this configuration to enable published servers


{
    "mcpServers": {
        "mcp_server_mariadb": {
            "command": "/PATH/TO/uvx"
            "args": [
                "mcp-server-mariadb",
                "--host",
                "${DB_HOST}",
                "--port",
                "${DB_PORT}",
                "--user",
                "${DB_USER}",
                "--password",
                "${DB_PASSWORD}",
                "--database",
                "${DB_NAME}"
            ]
        }
    }
}

备注:将这些占位符替换为实际路径:

  • /PATH/TO/uvx:uvx可执行文件的完整路径

Add this configuration to enable development/unpublished servers

{
    "mcpServers": {
        "mcp_server_mariadb": {
            "command": "/PATH/TO/uv",
            "args": [
                "--directory",
                "/YOUR/SOURCE/PATH/mcp-server-mariadb/src/mcp_server_mariadb",
                "run",
                "server.py"
            ],
            "env": {
                "MARIADB_HOST": "127.0.0.1",
                "MARIADB_USER": "USER",
                "MARIADB_PASSWORD": "PASSWORD",
                "MARIADB_DATABASE": "DATABASE",
                "MARIADB_PORT": "3306"
            }
        }
    }
}

备注:将这些占位符替换为实际路径:

  • /PATH/TO/uv:UV可执行文件的完整路径
  • /YOUR/SOURCE/PATH/mcp-server-mariadb/src/mcp_server_mariadb:服务器源代码的路径

许可证

此mcp服务器根据MIT许可证获得许可。请查看存储库中的LICENSE文件。

目录标签

目录标签

数据分析数据库服务MySQLClaude数据检索databasesmcpmariadbmodel-context-protocolmcp-serverPython本地部署MCP服务器

支持客户端

Claude DesktopClaude

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

none

部署方式(deploymentType,部署类型)

remote-capable

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明noneremote-capable

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP