Skip to main content
Glama
EgCooper

MCP MySQL

by EgCooper

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MYSQL_HOSTNoMySQL server host (default: localhost)localhost
MYSQL_PORTNoMySQL server port (default: 3306)3306
MYSQL_USERYesMySQL username
MYSQL_DATABASEYesMySQL database name
MYSQL_PASSWORDYesMySQL password

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
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
test_connectionA

Test the MySQL connection and return database name and version.

list_tablesA

List all tables in the configured MySQL database.

list_viewsA

List all views in the configured MySQL database.

describe_tableC

Describe the columns of a MySQL table.

Args: table_name: Name of the table to inspect.

list_indexesC

List indexes for a MySQL table.

Args: table_name: Name of the table.

list_foreign_keysA

List foreign keys for one table, or all in the current database.

Args: table_name: Optional table name. Empty = all foreign keys.

find_columnA

Find tables that contain a column name (supports % wildcards).

Args: column_name: Exact name or pattern, e.g. customer_id or %email%.

sample_rowsB

Return sample rows from a table.

Args: table_name: Table name. limit: Max rows (1-100). Default 10.

count_rowsC

Count rows in a table.

Args: table_name: Table name.

execute_queryA

Execute a read-only SQL query (SELECT, SHOW, DESCRIBE, EXPLAIN, WITH).

Args: query: SQL query to run. limit: Max rows when the query has no LIMIT (1-1000).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 10 tools

Disambiguation4/5

Most tools have clearly distinct purposes (list_tables vs list_views vs describe_table, etc.), but execute_query overlaps with nearly all specialized tools since it can run arbitrary read-only SQL including SHOW, DESCRIBE, and SELECT. The descriptions help, but an agent might still choose execute_query instead of the dedicated tool for some tasks.

Naming Consistency5/5

All tool names follow a consistent snake_case verb_noun pattern (test_connection, list_tables, describe_table, find_column, etc.), making the set highly predictable and readable.

Tool Count5/5

With 10 tools, the server is well-scoped for read-only MySQL introspection and querying. Each tool serves a specific purpose, and the count is neither too thin nor too heavy.

Completeness4/5

The surface covers connection testing, schema listing (tables, views, indexes, foreign keys), column discovery, and data sampling/counting. Minor gaps like retrieving DDL (SHOW CREATE TABLE) or listing triggers/procedures exist, but these can be handled via execute_query.

Maintenance

ActivityMaintained
ResponsivenessNo issues