mcp-mysql-explorer

v0.1.4
mcp-mysql-explorer Checked 2 days ago Published 5 months ago

MCP 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.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
sql *string

get_table_indexes

Show all indexes of a specific table. Args: table_name: Name of the table.

ParameterTypeDescription
table_name *string

get_create_table

Get the CREATE TABLE statement of a specific table. Args: table_name: Name of the table.

ParameterTypeDescription
table_name *string

get_database_info

Get overview information about the connected database, including size, table count, and charset.