Developer Tools

MySQL MCP Server

Connect your account, then chat with AI to run tools.

MySQL MCP server for powerful open-source relational database operations. Execute SQL queries, manage relational data with high throughput, support web applications and data warehousing, and integrate with popular frameworks for scalable database operations. Connect to local databases with MCPBundles Desktop.

Managed
9 tools
Agent guide included

Opens MCPBundles Studio with this server selected. After sign-in, chat and run tools from the same thread.

Browse all tools

AI Skill
SKILL.md

Domain knowledge for MySQL — workflow patterns, data models, and gotchas for your AI agent.

MySQL

MySQL access uses a standard connection URI or discrete host/port/database credentials—mirror the PostgreSQL mental model. Reads use list_rows, search, or execute; mutating work goes through explicit SQL execution.

Data Model

  • Tables — discover names before writing migrations or ad hoc queries.
  • Parameterized reads — list_rows, search (SQL or structured syntax), or execute.
  • Ad hoc execution — DDL/DML when the integration exposes an execute surface.
  • Connectivitymysql:// URIs; loopback hosts use the local desktop setup.

Operational order (unfamiliar schema)

  1. List tables or AI schema narration — table and column names before SQL.
  2. Inspect database — schema snapshot for the connected database.
  3. List rows, search, or execute — never guess column names.

Two credential field setups

SetupFieldsRouting
Remote MySQLhost, port, database, user, password (+ SSL for cloud)Direct TCP/TLS
Local MySQL on this machinedatabase, user, password, port (+ desktop tunnel)MCPBundles Desktop to localhost

Gotchas

  • Read vs write: Keep exploratory reads on guarded paths; wrap destructive statements in transactions.
  • TLS: Managed clouds expect SSL modes in the DSN.
  • Single-row reads: Use list_rows with a where clause on the primary key or execute with parameterized SQL — not colon mysql:row:… tokens (removed).

Tools in this Server (9)

Execute

Execute SQL statements on MySQL database. Supports all SQL operations including SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER. Use with caution ...

Get AI Description

Get a token-efficient schema description optimized for AI models to generate SQL queries. Includes table names, column names, types, and relationships...

Get Table Stats

Get detailed statistics and metadata for a MySQL table including row count, size, indexes, and foreign keys.

Inspect Database

Get a full overview of the MySQL database schema including tables, columns, indexes, and relationships.

List Rows

List rows from a MySQL table with pagination, column selection, filtering, and sorting.

List Tables

List all tables in the MySQL database with pagination and optional name pattern filtering.

Profile Column

Profile a MySQL column to get statistics including min/max, distinct count, null count, and top values.

Sample Data

Get sample data from a MySQL table for preview and exploration.

Search

Search MySQL database using SQL queries or structured syntax. Returns ranked results with plain row ids and titles. For pagination use list_rows or ex...

Frequently Asked Questions

What is the MySQL MCP server?

MySQL MCP server for powerful open-source relational database operations. Execute SQL queries, manage relational data with high throughput, support web applications and data warehousing, and integrate with popular frameworks for scalable database operations. Connect to local databases with MCPBundles Desktop. It provides 9 tools that AI agents can use through the Model Context Protocol (MCP).

How do I connect MySQL to my AI agent?

Add the MCPBundles server URL to your MCP client configuration (Claude Desktop, Cursor, VS Code, etc.). The URL format is: https://mcp.mcpbundles.com/bundle/mysql. Authentication is handled automatically.

How many tools does MySQL provide?

MySQL provides 9 tools that can be called by AI agents, along with a SKILL.md that gives your AI agent domain knowledge about when and how to use them.

What authentication does MySQL require?

MySQL uses API Key. MySQL requires credentials. Connect via MCPBundles and authentication is handled automatically.

Setup Instructions

Connect MySQL to any MCP client in minutes

MCP URL
https://mcp.mcpbundles.com/bundle/mysql

One-click install:

The link prefills the Add custom connector dialog — you still review the values and click Add, then Connect to complete OAuth.

Or add manually

  1. Open claude.ai → Settings → Connectors.
  2. Click the + button and choose Add custom connector.
  3. Set Name to MySQL and paste the MCP URL into Remote MCP server URL.
  4. Click Add. MySQL will appear under Not connected — select it and click Connect to complete OAuth.
Name: MySQL
Remote MCP server URL: https://mcp.mcpbundles.com/bundle/mysql
Authentication: OAuth

Custom connectors at claude.ai require a paid Claude plan (Pro, Max, Team, or Enterprise).

Ready to use MySQL?

Sign in to connect your credentials and start running tools from the chat.

MySQL MCP Server & Skill