database-mcp-mariadb
CommunityMCP server by arifulislamat · updated · ★ 5
MCP server for MariaDB. Read-only by default, row caps, timeouts, secrets never logged. database-mcp-mariadb is a community project by arifulislamat, not verified by a company domain.
Last commit 5 days ago
MIT: permissive, fine for commercial use
Clear description, published package or server URL, original repository
Not checked yet. What we check
What you need
| Setting | Needed | What it is |
|---|---|---|
MARIADB_Environment variable | Required | Database host |
MARIADB_Environment variable | Required | Database user (a read-only user is recommended) |
MARIADB_Environment variable | Required | Database name |
MARIADB_Environment variable, secret | Optional | Database password (or use MARIADB_PASSWORD_FILE) |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Install database-mcp-mariadb
Built from the published package, never by AIclaude mcp add database-mcp-mariadb -e MARIADB_HOST=YOUR_MARIADB_HOST -e MARIADB_USER=YOUR_MARIADB_USER -e MARIADB_DATABASE=YOUR_MARIADB_DATABASE -- npx -y @database-mcp/mariadbRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"database-mcp-mariadb": {
"command": "npx",
"args": [
"-y",
"@database-mcp/mariadb"
],
"env": {
"MARIADB_HOST": "YOUR_MARIADB_HOST",
"MARIADB_USER": "YOUR_MARIADB_USER",
"MARIADB_DATABASE": "YOUR_MARIADB_DATABASE"
}
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
Step-by-step: install database-mcp-mariadb in Claude Desktop
{
"mcpServers": {
"database-mcp-mariadb": {
"command": "npx",
"args": [
"-y",
"@database-mcp/mariadb"
],
"env": {
"MARIADB_HOST": "YOUR_MARIADB_HOST",
"MARIADB_USER": "YOUR_MARIADB_USER",
"MARIADB_DATABASE": "YOUR_MARIADB_DATABASE"
}
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"database-mcp-mariadb": {
"command": "npx",
"args": [
"-y",
"@database-mcp/mariadb"
],
"env": {
"MARIADB_HOST": "YOUR_MARIADB_HOST",
"MARIADB_USER": "YOUR_MARIADB_USER",
"MARIADB_DATABASE": "YOUR_MARIADB_DATABASE"
}
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add database-mcp-mariadb --env MARIADB_HOST=YOUR_MARIADB_HOST --env MARIADB_USER=YOUR_MARIADB_USER --env MARIADB_DATABASE=YOUR_MARIADB_DATABASE -- npx -y @database-mcp/mariadb{
"mcpServers": {
"database-mcp-mariadb": {
"command": "npx",
"args": [
"-y",
"@database-mcp/mariadb"
],
"env": {
"MARIADB_HOST": "YOUR_MARIADB_HOST",
"MARIADB_USER": "YOUR_MARIADB_USER",
"MARIADB_DATABASE": "YOUR_MARIADB_DATABASE"
}
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install database-mcp-mariadb in Antigravity CLI
gemini mcp add database-mcp-mariadb npx -y @database-mcp/mariadbGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the database-mcp-mariadb block.
Weekly newsletter
Like database-mcp-mariadb? Get the best new MCP servers every week
The best new tools, security warnings before you install something risky, and one practical tip. Free, three minute read.
Alternatives to database-mcp-mariadb
All alternatives →MCP server for interacting with the Supabase platform
Built-in MCP server for ArcadeDB multi-model database (graph, document, vector, time-series)
MCP Toolbox for Databases enables your agent to connect to your database.
MCP Toolbox for Databases enables your agent to connect to your database.
Real-time Kubernetes network traffic visibility and API analysis for HTTP, gRPC, Redis, Kafka, DNS.
Self-learning vector database for Node.js — hybrid search, Graph RAG, FlashAttention-3, HNSW, 50+ attention mechanisms
database-mcp-mariadb: common questions
How do I install database-mcp-mariadb?
In Claude Code run claude mcp add database-mcp-mariadb -e MARIADB_HOST=YOUR_MARIADB_HOST -e MARIADB_USER=YOUR_MARIADB_USER -e MARIADB_DATABASE=YOUR_MARIADB_DATABASE -- npx -y @database-mcp/mariadb. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is database-mcp-mariadb the official server?
database-mcp-mariadb is a community project by arifulislamat, not verified by a company domain.
Is database-mcp-mariadb free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is database-mcp-mariadb safe to use?
It scores 51 of 100. Grades: maintenance A, licence A, quality C. The security check has not run for it yet. Review the code before you install. How grades work.
What are alternatives to database-mcp-mariadb?
Similar MCP servers: Supabase, ArcadeDB MCP Server, MCP Toolbox for Databases, MCP Toolbox for Databases.
Does database-mcp-mariadb work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
