mcp
Verified Safeby MariaDB
Overview
Provides an MCP interface to MariaDB, enabling standard SQL operations and optional vector/embedding-based search for AI assistants.
Installation
uv run server.pyEnvironment 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
opensearch-mcp-server-py
Enables AI assistants to interact with OpenSearch clusters, providing a standardized interface for search, mapping, and shard management.
mcp-mysql-server
Provides an MCP-compliant interface for AI models to securely interact with a MySQL database for CRUD operations, schema inspection, and performance analysis.
DatabaseMcpServer
This server provides a unified, secure database operation interface for AI assistants, supporting a wide range of database types and dynamic switching.
mimer-mcp
A Model Context Protocol (MCP) server providing Mimer SQL database connectivity for AI applications to browse schemas, execute read-only queries, and manage stored procedures via natural language.