mcp-mysql-explorer
v0.1.4MCP server for querying MySQL databases — let AI agents explore schemas, run queries, and manage data via Model Context Protocol.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_tables
List all tables in the connected MySQL database.
describe_table
Get the schema (columns, types, keys) of a specific table. Args: table_name: Name of the table to describe.
| Parameter | Type | Description |
|---|---|---|
table_name * | string |
query
Execute a read-only SQL query (SELECT / SHOW / DESCRIBE / EXPLAIN). Only SELECT, SHOW, DESCRIBE, and EXPLAIN statements are allowed. Args: sql: The SQL query to execute.
| Parameter | Type | Description |
|---|---|---|
sql * | string |
execute_sql
Execute a write SQL statement (INSERT / UPDATE / DELETE / ALTER / CREATE / DROP, etc). Use with caution: this modifies the database. Args: sql: The SQL statement to execute.
| Parameter | Type | Description |
|---|---|---|
sql * | string |
get_table_indexes
Show all indexes of a specific table. Args: table_name: Name of the table.
| Parameter | Type | Description |
|---|---|---|
table_name * | string |
get_create_table
Get the CREATE TABLE statement of a specific table. Args: table_name: Name of the table.
| Parameter | Type | Description |
|---|---|---|
table_name * | string |
get_database_info
Get overview information about the connected database, including size, table count, and charset.