MySQL MCP Server

Provides read-only access to MySQL databases.

Local serverstdio★ 69

What is the MySQL MCP Server?

Provides read-only access to MySQL databases.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
list_databases
list_tables
describe_table
execute_query

Configuration

VariableDescriptionRequired
MYSQL_HOSTEndpoint or connection string the server talks to.Optional
MYSQL_PORTConfiguration value read at startup.Optional
MYSQL_USERConfiguration value read at startup.Optional
MYSQL_PASSWORDConfiguration value read at startup.Optional
MYSQL_DATABASEConfiguration value read at startup.Optional
MYSQL_CONNECTION_LIMITConfiguration value read at startup.Optional
MYSQL_QUEUE_LIMITConfiguration value read at startup.Optional
MYSQL_CONNECT_TIMEOUTConfiguration value read at startup.Optional

Example prompts to try

  • “Use MySQL to list databases.”
  • “Use MySQL to list tables.”
  • “Use MySQL to describe table.”

Frequently asked questions

Yes, the tool features a query timeout functionality. This prevents long-running queries from consuming excessive resources and potentially impacting database performance.