Skip to main content
Glama
MCP MySQL Server

MCP MySQL Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DB_HOSTYesThe MySQL database host
DB_PORTNoThe MySQL database port3306
DB_USERYesThe MySQL database username
DB_DATABASEYesThe MySQL database name
DB_PASSWORDYesThe MySQL database 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
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
queryC

Execute a SQL query on the MySQL database

list_tablesA

List all tables in the database

describe_tableC

Get the structure/schema of a table

insertC

Insert a single row into a table

updateC

Update rows in a table

deleteC

Delete rows from a table based on a condition

connect_dbB

Connect to the MySQL database. This tool does not require any input parameters.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.2/5.0

Scored across 7 tools

Disambiguation3/5

The generic `query` tool can perform the same writes as `insert`, `update`, and `delete`, so boundaries between these four tools are fuzzy and an agent must choose between a raw-SQL path and a structured path. Descriptions do help (insert/update/delete are parameterized conveniences), and `list_tables`/`describe_table` are clearly distinct, but `connect_db` taking no parameters adds further uncertainty about connection state.

Naming Consistency3/5

Mixed conventions: `list_tables`, `describe_table`, and `connect_db` use verb_noun, while `query`, `insert`, `update`, and `delete` are bare verbs. It remains readable and each name is intuitive, but there is no single predictable pattern.

Tool Count5/5

Seven tools is well-scoped for a MySQL server: read, schema inspection, single-row write, bulk update/delete, and connection setup. Each tool earns its place without redundancy in count.

Completeness4/5

Core CRUD plus schema introspection and raw SQL are covered, which lets agents handle DDL, multi-row inserts, and transactions through `query`. Minor gaps: no batch-insert tool, no explicit transaction/commit controls, and no database-level listing (list_databases) or explain/performance tooling.

Maintenance

ActivityInactive
ResponsivenessOutdated data