mcp-local-mysql

v3.4.2
@teolin/mcp-local-mysql Checked 3 hours ago Published 26 days ago

MCP server for local MySQL database operations

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

query

Execute a SQL query on the MySQL database. Supports parameterized queries for safety. Use ? as placeholders and provide params array.

ParameterTypeDescription
query *stringThe SQL query to execute. Use ? for parameters (e.g., 'SELECT * FROM users WHERE id = ?')
databasestringOptional: Database name to use for this query
paramsarrayOptional: Array of parameters to bind to the query placeholders

list_databases

List all databases in the MySQL instance

list_tables

List all tables in a specific database

ParameterTypeDescription
database *stringDatabase name

describe_table

Show the structure of a table

ParameterTypeDescription
database *stringDatabase name
table *stringTable name