npm @database-mcp/mariadbstdioMITupdated 23d ago
MCP servers that give AI clients safe, structured access to SQL databases.
Was kannst du mit database mcp mariadb machen?
database-mcp
MCP servers that give AI clients safe, structured access to SQL databases.
One installable package per database engine, in TypeScript (npm) and Python
(PyPI). Every package exposes the same minimal two-tool surface,
execute_sql and search_objects, with guardrails on by default: read-only
mode, row caps, and statement timeouts.
Packages
| Engine | TypeScript (npm) | Python (PyPI) |
|---|---|---|
| SQLite | @database-mcp/sqlite |
database-mcp-sqlite |
| libSQL | @database-mcp/libsql |
database-mcp-libsql |
| MySQL | @database-mcp/mysql |
database-mcp-mysql |
| MariaDB | @database-mcp/mariadb |
database-mcp-mariadb |
| Postgres | @database-mcp/postgres |
database-mcp-postgres |
Both lines are published and pass the same language-agnostic conformance suite against real databases in CI, so behavior is identical regardless of language. Every engine is also listed on the MCP Registry with both install options.
Go and Rust implementations are planned.
Design principles
- Two tools, no more. A tiny tool surface keeps the model's context window
clean.
search_objectsprogressively discloses schema: call it with no arguments to list tables, with a table name to get columns, indexes, and foreign keys. - Safe by default. Read-only mode is enforced in two layers: a conservative SQL guard, plus a session-level read-only setting in the database itself. Rows are capped (default 1000) and statements time out (default 30s).
- Configured at launch, never via chat. Connection details come from flags, a YAML config file, or environment variables. Credentials are never accepted through a tool call.
- Secrets never appear in logs. Passwords live in non-printable secret types, DSNs are sanitized before logging, and a redaction filter guards the log boundary.
Quick start
Pick your engine's package; each README has the full config surface. SQLite via npm:
{
"mcpServers": {
"sqlite": {
"command": "npx",
"args": ["-y", "@database-mcp/sqlite", "--dsn", "/absolute/path/to/database.db"]
}
}
}
Or via PyPI: use "command": "uvx" and
"args": ["database-mcp-sqlite", "--dsn", "/absolute/path/to/database.db"].
Flags, environment variables, and YAML config are identical across both
lines.
Networked engines take credentials from the environment (MYSQL_*,
MARIADB_*, POSTGRES_*/DATABASE_URL, LIBSQL_URL/LIBSQL_AUTH_TOKEN),
*_FILE mounted secrets, or a YAML file via --config. Never from a chat
prompt.
Contributing
See CONTRIBUTING.md. The short version: the conformance
suite is the definition of done. A change is mergeable only when
conformance/run.mjs passes against every affected server.
License
Installation
database mcp mariadb zu deinem Client hinzufügen. Wähl den, den du nutzt.
claude mcp add mariadb -- npx -y @database-mcp/mariadbcodex mcp add mariadb -- npx -y @database-mcp/mariadbamp mcp add mariadb -- npx -y @database-mcp/mariadb{
"mcpServers": {
"mariadb": {
"command": "npx",
"args": [
"-y",
"@database-mcp/mariadb"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"mariadb": {
"command": "npx",
"args": [
"-y",
"@database-mcp/mariadb"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"mariadb","command":"npx","args":["-y","@database-mcp/mariadb"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"mariadb": {
"command": "npx",
"args": [
"-y",
"@database-mcp/mariadb"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"mariadb": {
"command": "npx",
"args": [
"-y",
"@database-mcp/mariadb"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"mariadb": {
"command": "npx",
"args": [
"-y",
"@database-mcp/mariadb"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"mariadb": {
"type": "local",
"command": "npx",
"args": [
"-y",
"@database-mcp/mariadb"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"mariadb": {
"command": {
"path": "npx",
"args": [
"-y",
"@database-mcp/mariadb"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y @database-mcp/mariadbRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
Score
39 / 100
Unvollständig
- Dokumentation25/25
- Pflege19/25
- Vertrauen13/20
- Funktionsumfang0/15
- Installation12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 16 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
Versionsverlauf
| Versionen | Veröffentlicht |
|---|---|
| 0.4.2Aktuell | 16. Juli 2026 |
| 0.4.1 | 12. Juli 2026 |