MCP Server for MariaDB/MySQL
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DB_HOST | No | Database host. | 127.0.0.1 |
| DB_NAME | No | Database 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_PASS | No | Database password. Defaults to an empty string. | |
| DB_PORT | No | Database port. | 3306 |
| DB_USER | No | Database username. | claude_mcp |
| POOL_QUEUE_LIMIT | No | Maximum number of queued connection requests. 0 means unlimited. | 0 |
| POOL_CONNECTION_LIMIT | No | Maximum number of connections in the pool. | 10 |
| POOL_WAIT_FOR_CONNECTIONS | No | Whether 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
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 6 tools
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.
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.
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.
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.