An MCP server that provides access to MariaDB ou MySQL databases.
Mariadb mcp server connects Mariadb to AI assistants that speak the Model Context Protocol. An MCP server that provides access to MariaDB ou MySQL databases.
This MCP server provides access to MariaDB / MySQL databases.
Once connected, the assistant can call these 4 tools directly:
list_databases — Lists all accessible databases on the MariaDB / MySQL server. Parameters: Nonelist_tables — The list_tables tool exposed by this serverdescribe_table — The describe_table tool exposed by this serverexecute_query — The execute_query tool exposed by this serverThe server is distributed via npm as pnpm, so most clients can run it without a manual build step. Add it to your MCP client's configuration and restart the client to pick it up — the copy-paste configs for Claude Desktop, Claude Code and Cursor are on this page.
The server reads 8 environment variables: MARIADB_HOST, MARIADB_PORT, MARIADB_USER, MARIADB_PASSWORD, MARIADB_DATABASE, MARIADB_ALLOW_INSERT, MARIADB_ALLOW_UPDATE, MARIADB_ALLOW_DELETE. Keep credentials in your client's env block or a secrets manager rather than committing them.
Database servers turn schema archaeology and ad-hoc reporting into conversation, which is why they tend to be the second or third server people install. Mariadb sits in that group, and the shape of its toolset — list_databases, list_tables, describe_table among others — tells you what it is really for. Worth comparing against the other databases servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.
| Tool | What it does |
|---|---|
| list_databases | Lists all accessible databases on the MariaDB / MySQL server. **Parameters**: None |
| list_tables | The list_tables tool exposed by this server. |
| describe_table | The describe_table tool exposed by this server. |
| execute_query | The execute_query tool exposed by this server. |
{
"mcpServers": {
"mariadb": {
"command": "npx",
"args": ["-y", "pnpm"],
"env": {
"MARIADB_HOST": "your-value",
"MARIADB_PORT": "your-value",
"MARIADB_USER": "your-value",
"MARIADB_PASSWORD": "your-value",
"MARIADB_DATABASE": "your-value",
"MARIADB_ALLOW_INSERT": "your-value",
"MARIADB_ALLOW_UPDATE": "your-value",
"MARIADB_ALLOW_DELETE": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
| Variable | Description | Required |
|---|---|---|
| MARIADB_HOST | Endpoint or connection string the server talks to. | Optional |
| MARIADB_PORT | Configuration value read at startup. | Optional |
| MARIADB_USER | Configuration value read at startup. | Optional |
| MARIADB_PASSWORD | Configuration value read at startup. | Optional |
| MARIADB_DATABASE | Configuration value read at startup. | Optional |
| MARIADB_ALLOW_INSERT | Configuration value read at startup. | Optional |
| MARIADB_ALLOW_UPDATE | Configuration value read at startup. | Optional |
| MARIADB_ALLOW_DELETE | Configuration value read at startup. | Optional |
Read-only SQL access to Postgres — let your assistant inspect schemas and answer questions from real data.
Manage your whole Supabase project in conversation — database, auth, storage, Edge Functions and branches.
Query, modify and analyse local SQLite databases in conversation — the fastest way to chat with a data file.
Metabase ships its own MCP endpoint — search your BI content, build and run queries, and save questions and dashboards without leaving the chat.
Official MongoDB server covering data, schemas and Atlas management — from find queries to spinning up clusters.
Serverless Postgres with database branching — point your assistant at Neon and let it work on disposable copies.