add_connection
MCP only. Available when the server runs in MCP mode (stdio) with MYSQLMCPEXTENDED=1 and MYSQLMCPENABLEADDCONNECTION=1. It registers a new named MySQL connection at runtime and switches the process-wide active connection for that MCP process. There is no HTTP route to register a new DSN. REST API mo
How to use it
Project documentation lists add_connection for the Mysql MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), then check which tools your installed version makes available. Tool availability can depend on configuration and credentials. A server handshake does not verify this tool’s behavior. See the full listing for setup details.
Install Mysql MCP Server
mysql-mcp-serverOther tools in Mysql MCP Server (23)
Get database size information.
Input:
Get execution plan for a SELECT query. Responses include optional warnings (e.g. full table scan, filesort) when the plan suggests optimizations.
List foreign key constraints.
List all configured MySQL connections.
Returns non-system databases.
List stored functions.
List indexes on a table.
List table partitions.
List stored procedures.
List MySQL server status variables.
Input:
List triggers in a database.
List MySQL server configuration variables.
List views in a database.
Tests database connectivity and returns latency.
Input:
Returns MySQL server details.
Get the CREATE TABLE statement.
Get table size information.
Switch to a different MySQL connection.
List vector columns in a database.
Perform similarity search on vector columns.