MariaDB / MySQL Database Access MCP Server
@hjsad1994
About MariaDB / MySQL Database Access MCP Server
No overview available yet
Basic information
Config
No standard config provided
This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.
RepositoryTools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is MariaDB / MySQL Database Access MCP Server?
This MCP server provides read-only access to MariaDB and MySQL databases, allowing users to list databases, list tables, describe table schemas, and execute SQL queries. It is designed for developers and administrators who need to query databases securely through the Model Context Protocol.
How to use MariaDB / MySQL Database Access MCP Server?
Install via npm (npm install -g mariadb-mcp-server) or build from source. Configure required environment variables (host, port, user, password, etc.) and add the server configuration to your MCP settings file. Use tools such as list_databases, list_tables, describe_table, and execute_query to interact with the database.
Key features of MariaDB / MySQL Database Access MCP Server
- Read-only access by default (SELECT, SHOW, DESCRIBE, EXPLAIN)
- Query validation to prevent SQL injection and data modification
- Configurable query timeout and row limit
- Supports both MariaDB and MySQL databases
- Can connect via TCP or Unix socket
Use cases of MariaDB / MySQL Database Access MCP Server
- Explore available databases and tables in a MariaDB/MySQL instance
- Retrieve table schemas to understand database structure
- Execute read-only SQL queries for reporting or data inspection
- Integrate database querying into MCP-enabled applications
FAQ from MariaDB / MySQL Database Access MCP Server
What operations are allowed by default?
Only read-only operations: SELECT, SHOW, DESCRIBE, and EXPLAIN. INSERT, UPDATE, and DELETE are blocked unless explicitly enabled via environment variables.
How do I configure the database connection?
Set environment variables such as MARIADB_HOST, MARIADB_PORT, MARIADB_USER, MARIADB_PASSWORD, and optionally MARIADB_DATABASE. Refer to the installation section for full details.
Can I modify data with this server?
By default, no. Data modification is prevented. You can enable it by setting MARIADB_ALLOW_INSERT, MARIADB_ALLOW_UPDATE, or MARIADB_ALLOW_DELETE to true, but this is strongly discouraged.
What are the default timeout and row limit?
The default query timeout is 10000 ms (10 seconds) and the default row limit is 1000 rows. These can be changed via MARIADB_TIMEOUT_MS and MARIADB_ROW_LIMIT.
How do I install this server?
Install globally via npm: npm install -g mariadb-mcp-server. Alternatively, clone the repository, run npm install and npm run build, then point your MCP settings to the built dist/index.js.
More Databases MCP servers
mcp_mysql_server
wenb1n-devModel Context Protocol (MCP) server that supports secure interaction with MySQL databases and has anomaly analysis capabilities.更加牛逼!更加好用!不仅止于mysql的增删改查功能; 还包含了数据库异常分析能力;且便于开发者们进行个性化的工具扩展
Neon MCP Server
neondatabaseMCP server for interacting with Neon Management API and databases
Dbhub
bytebaseZero-dependency, token-efficient database MCP server for Postgres, MySQL, SQL Server, MariaDB, SQLite.
MongoDB Lens
furey🍃🔎 MongoDB Lens: Full Featured MCP Server for MongoDB Databases
MCP Server for MySQL based on NodeJS
benborlaA Model Context Protocol server that provides read-only access to MySQL databases. This server enables LLMs to inspect database schemas and execute read-only queries.
Comments