mariadb-mcp-server

mariadb-mcp-server

7

The MariaDB / MySQL Database Access MCP Server provides a secure and read-only interface for interacting with MariaDB and MySQL databases. It includes features for listing databases and tables, describing schemas, and performing SQL queries, all while preventing unauthorized data modifications.

MariaDB / MySQL Database Access MCP Server

This MCP server provides access to MariaDB / MySQL databases.

Features

  • List available databases
  • List tables in a database
  • Describe table schemas
  • Execute SQL queries

Security Features

  • Read-only access default
  • Query validation
  • Query timeout
  • Row limit

Installation

  • Install from NPM
  • Build from Source

Available Tools

  • list_databases
  • list_tables
  • describe_table
  • execute_query

Testing

  • Setup Test Database
  • Test MCP Tools
  • Run All Tests

Troubleshooting

  • Check server logs
  • Verify credentials
  • Ensure user permissions
  • Check query format