MariaDB MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DB_HOST | Yes | The host address of the MariaDB/MySQL server (default: localhost). | localhost |
| DB_NAME | No | Optional default database name. | |
| DB_PORT | Yes | The port number of the MariaDB/MySQL server (default: 3306). | 3306 |
| DB_USER | Yes | The database user. | |
| DB_PASSWORD | Yes | The password for the database. |
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 |
|---|---|
| query_databaseC | Execute a SQL query on the MariaDB database. Returns the results as JSON. |
| list_databasesA | List all databases available on the MariaDB server |
| list_tablesC | List all tables in the current database |
| describe_tableC | Get the structure/schema of a specific table |
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 4 tools
The four tools have clearly distinct purposes: arbitrary SQL execution, database listing, table listing, and schema description. An agent can easily tell when to use each tool without ambiguity.
All tool names follow a consistent snake_case verb_noun pattern: query_database, list_databases, list_tables, describe_table. This is highly predictable.
Four tools are well-scoped for a database access server, covering query execution and the essential metadata discovery steps. Each tool earns its place without bloat.
Core operations are covered: query_database can execute arbitrary SQL including DDL/DML, and the introspection tools cover databases, tables, and schemas. Minor gaps exist around explicitly switching database context and inspecting richer metadata like indexes or constraints, but these are workable via query_database.