awslabs.mysql-mcp-server

v1.1.6
awslabs.mysql-mcp-server Checked 16 hours ago Published 14 days ago

An AWS Labs Model Context Protocol (MCP) server for mysql

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

run_query

Run a SQL query against MySQL

ParameterTypeDescription
cluster_identifier *stringCluster identifier
connection_method *connection method
database *stringdatabase name
db_endpoint *stringdatabase endpoint
sql *stringThe SQL query to run
query_parametersParameters for the SQL query

get_table_schema

Fetch table columns and comments from MySQL

ParameterTypeDescription
cluster_identifier *stringCluster identifier
connection_method *connection method
database *stringdatabase name
db_endpoint *stringdatabase endpoint
table_name *stringname of the table

connect_to_database

Connect to a specific database and save the connection internally

ParameterTypeDescription
cluster_identifier *stringcluster identifier
connection_method *connection method
database *stringdatabase name
database_type *database type
db_endpoint *stringdatabase endpoint
port *integerMySQL port
region *stringregion

is_database_connected

Check if a connection has been established

ParameterTypeDescription
cluster_identifier *stringcluster identifier

get_database_connection_info

Get all cached database connection information

create_cluster

Create an Aurora MySQL cluster

ParameterTypeDescription
cluster_identifier *stringcluster identifier
region *stringregion
cluster_typestringAurora cluster topology. 'serverless_v2' (default) creates a Serverless v2 cluster with auto-scaling ACU — recommended for variable, bursty, or cost-sensitive workloads. 'provisioned' creates a fixe…
databasestringdefault database name
db_instance_classstringWriter instance class. 'db.serverless' (default) for cluster_type='serverless_v2'. For cluster_type='provisioned', choose a non-serverless class such as db.r6g.large, db.r6g.xlarge, db.r7g.large, etc.…
db_subnet_group_nameOptional DB subnet group name. Required when the AWS account does not have default VPC subnets (most production accounts). When omitted, RDS tries to use default subnets, which fails with InvalidSubne…
engine_versionstringengine version
vpc_security_group_idsOptional list of VPC security group IDs to attach to the cluster. When omitted, RDS uses the default security group of the chosen subnet group.

get_job_status

get background job status

ParameterTypeDescription
job_id *string