Access and manage MariaDB or MySQL databases using an MCP server.
This MCP server provides access to MariaDB / MySQL databases.
It allows you to:
# Clone the repository
git clone https://github.com/bretoreta/mariadb-mcp-server.git
cd mariadb-mcp-server
# Install dependencies and build
pnpm install
pnpm run build
The server requires the following environment variables:
Add the following configuration to your MCP settings file:
If you built from source:
{
"mcpServers": {
"mariadb": {
"command": "node",
"args": ["/path/to/mariadb-mcp-server/dist/index.js"],
"env": {
"MARIADB_HOST": "your-host",
"MARIADB_PORT": "3306",
"MARIADB_USER": "your-user",
"MARIADB_PASSWORD": "your-password",
"MARIADB_DATABASE": "your-default-database",
"MARIADB_ALLOW_INSERT": "false",
"MARIADB_ALLOW_UPDATE": "false",
"MARIADB_ALLOW_DELETE": "false",
"MARIADB_TIMEOUT_MS": "10000",
"MARIADB_ROW_LIMIT": "1000",
},
"disabled": false,
"autoApprove": []
}
}
}
Lists all accessible databases on the MariaDB / MySQL server. Parameters: None
Example:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"sessionId": "session_id from /sse call",
"name": "list_databases"
}
}
Lists all tables in a specified database.
Parameters:
database
(optional): Database name (uses default if not specified)Example:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"sessionId": "session_id from /sse call",
"name": "list_tables",
"database": "my_database_name"
}
}
Shows the schema for a specific table.
Parameters:
database
(optional): Database name (uses default if not specified)table
(required): Table nameExample:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"sessionId": "session_id from /sse call",
"name": "describe_table",
"database": "my_database_name",
"table": "my_table_name"
}
}
Executes a SQL query.
Parameters:
query
(required): SQL querydatabase
(optional): Database name (uses default if not specified)Example:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"sessionId": "session_id from /sse call",
"name": "execute_query",
"query": "SELECT * FROM my_table LIMIT 10"
}
}
The server automatically tests MariaDB to verify functionality with your MariaDB setup:
If you encounter issues:
Inspiration https://github.com/rjsalgado/mariadb-mcp-server
This project is licensed under the MIT License - see the LICENSE file for details.
An MCP server that provides tools to interact with Powerdrill datasets, enabling smart AI data analysis and insights.
Provides natural language access to Brazilian treasury bond data from the Tesouro Direto API, allowing users to query market data and bond details.
An MCP-based database server with support for SQLite, MySQL, PostgreSQL, and MSSQL.
Integrate with the Grist API to manage relational spreadsheets and data. Requires a Grist API key.
Interact with Microsoft SQL Server (MSSQL) databases. List tables, read data, and execute SQL queries with controlled access.
Integrates with Trino and Iceberg for advanced data exploration, querying, and table maintenance.
Integrates AI assistants with the Metabase business intelligence and analytics platform.
A server for retrieving MySQL database schema information using the FastMCP framework.
Integrates with Odoo Accounting via XML-RPC, allowing AI tools to query and analyze account journal entries for auditing purposes.
Provides access to Jewish texts from the Sefaria library.