Skip to main content
Glama
MCP Server for MariaDB/MySQL

MCP Server for MariaDB/MySQL

by Zdendys79

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DB_HOSTNoDatabase host.127.0.0.1
DB_NAMENoDatabase name. If set non-empty, the database is automatically selected on startup. If empty or not set, the switch_database tool must be used before executing queries.
DB_PASSNoDatabase password. Defaults to an empty string.
DB_PORTNoDatabase port.3306
DB_USERNoDatabase username.claude_mcp
POOL_QUEUE_LIMITNoMaximum number of queued connection requests. 0 means unlimited.0
POOL_CONNECTION_LIMITNoMaximum number of connections in the pool.10
POOL_WAIT_FOR_CONNECTIONSNoWhether to wait for an available connection when the pool is full.true

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
execute_sqlC

Execute a SQL query on the MariaDB database

list_tablesB

List all tables in the current database

describe_tableC

Show the structure of a table

list_databasesA

List all available databases

switch_databaseA

Switch to a different database. Must be called before executing queries.

get_current_databaseA

Get the name of the currently selected database

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 6 tools

Disambiguation5/5

Each tool targets a clearly distinct operation: executing queries, listing tables, describing structure, listing databases, switching context, and reading current context. The only surface overlap (list_tables vs list_databases) is resolved by their distinct resources. No two tools could be reasonably confused.

Naming Consistency5/5

All six tools follow a strict snake_case verb_noun pattern (execute_sql, list_tables, describe_table, list_databases, switch_database, get_current_database). The convention is uniform and predictable throughout.

Tool Count5/5

Six tools is well-scoped for a database interaction server, covering the essential query and inspection operations without redundancy. Each tool earns its place and nothing feels padded or missing.

Completeness4/5

execute_sql as a catch-all gives full CRUD/DML capability, and metadata tools cover discovery and schema inspection. Minor gaps exist around index/schema detail beyond describe_table and explicit transaction/session management, but these are workaroundable via raw SQL.

Maintenance

ActivityStale
ResponsivenessNo recent community issues