Skip to main content
Glama
nilsir

MCP Server MySQL

by nilsir

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MYSQL_HOSTYesThe MySQL host addresslocalhost
MYSQL_PORTYesThe MySQL port number3306
MYSQL_USERYesThe MySQL usernameroot
MYSQL_DATABASENoThe MySQL database name (optional)
MYSQL_PASSWORDYesThe MySQL password
MYSQL_ALLOW_DELETENoSet to "false" to disable DELETE operationstrue
MYSQL_ALLOW_INSERTNoSet to "false" to disable INSERT operationstrue
MYSQL_ALLOW_UPDATENoSet to "false" to disable UPDATE operationstrue

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
connectA

Connect to a MySQL database. If not called explicitly, will use environment variables for connection.

queryB

Execute a SELECT query and return results. Use this for reading data.

executeB

Execute an INSERT, UPDATE, DELETE or other modifying query. Returns affected rows count.

list_databasesB

List all databases on the MySQL server

list_tablesB

List all tables in the current or specified database

describe_tableC

Get the structure/schema of a table

create_tableC

Create a new table with specified columns

alter_tableC

Modify an existing table structure

drop_tableC

Drop/delete a table

create_databaseC

Create a new database

drop_databaseC

Drop/delete a database

use_databaseC

Switch to a different database

create_indexC

Create an index on a table

drop_indexC

Drop an index from a table

health_checkB

Check database connection health and get server status

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 15 tools

Disambiguation5/5

Every tool has a clearly distinct purpose with no ambiguity. Each tool targets a specific database operation (e.g., create_table vs. alter_table, query vs. execute) with clear boundaries between read operations, write operations, and administrative tasks.

Naming Consistency5/5

Tool names follow a consistent verb_noun pattern throughout (e.g., create_database, list_tables, drop_index). All names use snake_case with descriptive verbs that clearly indicate the action being performed.

Tool Count5/5

15 tools is well-scoped for a MySQL database server, covering essential CRUD operations, schema management, and administrative functions. Each tool earns its place without redundancy or bloat.

Completeness5/5

The toolset provides complete coverage for MySQL database operations including connection management, database/table lifecycle (create, describe, drop), data manipulation (query, execute), indexing, and administrative functions. No obvious gaps exist for core database workflows.

Maintenance

ActivityInactive
ResponsivenessNo issues