Back to Home
MariaDB icon

mcp

Verified Safe

by MariaDB

Overview

Provides an MCP interface to MariaDB, enabling standard SQL operations and optional vector/embedding-based search for AI assistants.

Installation

Run Command
uv run server.py

Environment Variables

  • DB_HOST
  • DB_USER
  • DB_PASSWORD

Security Notes

The server demonstrates strong security practices, notably by explicitly disabling the 'MULTI_STATEMENTS' client flag in its custom database connection pool to prevent SQL injection vulnerabilities. It enforces read-only mode via configuration ('MCP_READ_ONLY') and validates database/table names using 'isidentifier()'. Configuration for database credentials and external API keys is correctly handled via environment variables, with no hardcoded secrets. Network access is controlled by CORS and Trusted Host middleware, and the README explicitly advises on implementing authentication for non-stdio transports, indicating a thoughtful approach to network security.

Similar Servers

Stats

Interest Score54
Security Score9
Cost ClassMedium
Avg Tokens500
Stars95
Forks41
Last Update2025-11-24

Tags

MariaDBSQLVector DatabaseEmbeddingsAI Tools