Skip to main content
Glama

MariaDB MCP Server

by yawlhead91

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_LEVELNoSet logging level (DEBUG, INFO, WARNING, ERROR, CRITICAL)INFO
MARIADB_HOSTYesThe MariaDB server host
MARIADB_PORTYesThe MariaDB server port
MARIADB_USERYesThe MariaDB username
MARIADB_DATABASEYesThe MariaDB database name
MARIADB_PASSWORDYesThe MariaDB password

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
reload_config

Reload configuration from environment variables and .env file.

list_databases

List all accessible databases in the MariaDB server.

list_tables

List all tables in a specific database.

get_table_schema

Get the schema/structure of a specific table.

execute_sql

Execute a read-only SQL query and return results.

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yawlhead91/mariadb-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server