← Back to catalog
MCPDatabase↓ 737

MySQL

Connects Claude Code to MySQL databases to access and manage data.

Installation
npx claude-code-templates@latest --mcp database/mysql-integration --yes

This MCP connects Claude Code to a MySQL database. With the connection string, the assistant reaches your tables directly.

It brings querying and database management into your workflow inside the editor.

You can run queries, inspect the schema, and manage data without switching to an external client. It’s useful for projects running on MySQL that need quick access to their data.

When to use

  • When you need to query data from a MySQL database.
  • To understand the table structure during development.
  • While testing assumptions about your data without writing the query by hand.

How to use

After installing, provide the MySQL connection string and the MCP becomes available. Ask Claude Code to “list the tables” or “count the rows in this table”.