A
securityA
licenseA
qualityAllows AI assistants to list tables, read data, and execute SQL queries through a controlled interface, making database exploration and analysis safer and more structured.
Last updated -
1
580
Python
MIT License
该项目是一个用于探索和与 MariaDB 数据库交互的模型上下文协议 (MCP) 服务器。该服务器提供的工具允许像 Cline 这样的 AI 助手访问 MariaDB 数据库并查询信息。
该 MCP 服务器提供以下工具:
list_databases
:返回所有可访问数据库的列表。list_tables
:返回指定数据库中所有表的列表。database
(字符串,必需) - 要检索表列表的数据库的名称。get_table_schema
:返回指定表的模式(列定义)。database
(字符串,必需) - 表所属数据库的名称。table
(字符串,必需) - 要查询架构的表的名称。query_table
:从指定的表中检索数据。默认情况下它返回前 100 行。database
(字符串,必需) - 表所属数据库的名称。table
(字符串,必需) - 要从中检索数据的表的名称。limit
(数字,可选) - 返回的最大行数(默认值:100)。要使用此服务器,您需要克隆 GitHub 存储库并在 MCP 客户端(例如 VS Code 扩展)的设置文件中注册服务器信息。该存储库包含预先构建的可执行文件( build/index.js
),不需要单独的构建步骤。
示例设置:
警告:
<클론된 저장소 경로>
部分更改为您实际克隆存储库的本地路径。 (例如C:/Users/YourUser/Documents/GitHub/mcp_server_mariadb_reader
)env
对象中的 MariaDB 连接信息以匹配您的实际环境。该存储库包含构建的文件,因此您无需按照以下步骤使用服务器。要直接修改源代码( src
目录)并应用更改,请按照以下步骤操作:
package.json
时):src
目录中的 TypeScript 代码编译为build
目录中的 JavaScript 代码。该项目根据[输入许可信息]许可证分发。
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
为 AI 助手提供探索和与 MariaDB 数据库交互的工具,允许他们列出数据库、查看表格、检查模式定义和查询数据。
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/moosin76/mcp_server_mariadb_reader'
If you have feedback or need assistance with the MCP directory API, please join our Discord server