Skip to main content
Glama
zhaojw-php

MySQL ReadOnly MCP Server

by zhaojw-php

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MYSQL_HOSTNoMySQL server addresslocalhost
MYSQL_PORTNoMySQL server port3306
MYSQL_USERYesMySQL username
MYSQL_SSL_CANoSSL CA certificate path
MYSQL_SSL_KEYNoSSL client key path
MYSQL_DATABASENoDefault database to connect to
MYSQL_PASSWORDYesMySQL password
MYSQL_SSL_CERTNoSSL client certificate path
MYSQL_SSL_REJECT_UNAUTHORIZEDNoWhether to reject unauthorized SSL certificatestrue

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

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription
mysql_queryA

Execute a read-only SQL query on MySQL database

mysql_list_tablesB

List all tables in the database

mysql_describe_tableC

Get table structure and column information

mysql_list_databasesB

List all available databases

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.5/5.0

Scored across 4 tools

Disambiguation5/5

Each tool has a clearly distinct purpose with no overlap: describe_table focuses on schema details, list_databases and list_tables handle enumeration at different levels, and query provides general read-only execution. An agent can easily distinguish between these four functions.

Naming Consistency5/5

All tools follow a consistent 'mysql_verb_noun' pattern with snake_case throughout (e.g., mysql_describe_table, mysql_list_databases). This predictable naming scheme makes the tool set easy to navigate and understand.

Tool Count4/5

Four tools is a reasonable number for a read-only MySQL server, covering core operations like listing databases/tables, describing structure, and executing queries. It's slightly lean but well-scoped, with no obvious bloat or missing essentials for the stated purpose.

Completeness4/5

For a read-only MySQL server, the tool set covers key operations: enumeration (databases, tables), schema inspection (describe_table), and data retrieval (query). Minor gaps might include tools for viewing indexes or constraints, but agents can work around this with queries, making it largely complete.

Maintenance

ActivityInactive
ResponsivenessNo issues