MySQL
MySQL MCPData & Enrichment8 actions

MySQL MCP Server

Let your AI agents run MySQL for you, safely.

A hosted MySQL MCP server for Claude, ChatGPT, Cursor and CLI agents. Paste one server URL into your AI client to use its 8 actions. There is nothing to install.

  • Enable or disable every action, per account. Block your agent from doing dangerous actions.

  • Ask in plain English. Pull reports, find insights and take action in MySQL.

  • 8 read and write actions. Every MySQL task your agent needs, from reporting to making changes.

  • Built for teams. Invite your team and share one connected account.

Works with
ChatGPTChatGPTClaudeClaudeClaude CodeClaude CodeCodexCodexGemini CLIGemini CLICursorCursorMistralMistralOpenClawOpenClawHermesHermesPerplexityGrokn8nWindsurfVS CodeZed
ChatGPT
MySQL
ChatGPT
connected to MySQL MCP
Online
ChatGPT
Actions

Available Actions

8 actions available to automate your MySQL workflows.

8 actions

MySQL
Read

Analyze Db Health

Connection pool + buffer pool size + tables with reclaimable space.

MySQL
Read

Explain Query

EXPLAIN plan for a query. analyze=true uses EXPLAIN ANALYZE (MySQL 8+).

MySQL
Read

Get Table Metadata

Full metadata: columns + constraints + indexes + estimated size.

MySQL
Read

Get Table Schema

Column list (name, data_type, is_nullable, default) for a table or view.

MySQL
Read

Get Top Queries

Heaviest queries from performance_schema.events_statements_summary_by_digest.

MySQL
Read

List Schemas

List all schemas (databases) on the server.

MySQL
Read

List Tables

List tables, views, or plugins in a schema.

MySQL
Write

Run Query

Execute a SQL statement.

Compare

MySQL MCP servers compared: hosted vs official

Oracle publishes a MySQL MCP Server as a proof of concept focused on MySQL AI and MySQL HeatWave. It suits developers exploring those products locally. InsightfulPipe is a hosted service for working with any internet-reachable MySQL database from your AI client.

StatusHosted service included in every InsightfulPipe planProof of concept, not intended for production use
HostingHosted by InsightfulPipe: paste one URLRuns locally with uvx
FocusAny MySQL database reachable over the internet with TLSMySQL AI and MySQL HeatWave, with ML, RAG and OCI Object Storage tools
SetupHost, user and password, or a connection URI, entered in InsightfulPipeMySQL credentials in a JSON config file or environment variable; OCI config for cloud features
SQL safetyA single SELECT runs as a read; other SQL is a write limited to owners, admins and operatorsSQL runs through a connection-based tool
Other platformsAds, analytics, e-commerce and data platforms in the same workspace, plus a CLIMySQL and Oracle Cloud services
Overview

What you can do with the MySQL MCP

The InsightfulPipe MySQL MCP server is a hosted Model Context Protocol server that connects a MySQL database to AI assistants such as Claude, ChatGPT, Cursor, Claude Code, Gemini CLI and Codex. You enter the host, port, database, user and password, or paste a connection URI, and add one server URL to your AI client.

ClaudeMySQLAcme StoreRead-only
Ask about your MySQL account…
01Explore an unfamiliar database

Explore an unfamiliar database

List schemas and tables, and read columns, constraints, indexes and sizes before writing a query.

See all MySQL actions
ClaudeMySQLAcme StoreRead-only
Ask about your MySQL account…
02Answer business questions with SQL

Answer business questions with SQL

Ask in plain English; the assistant writes the query, runs it and summarizes the result.

See all MySQL actions
ClaudeMySQLAcme StoreRead-only
Ask about your MySQL account…
03Find heavy queries

Find heavy queries

List the queries with the most total or average time from performance_schema, then read their plans.

See all MySQL actions
8
actions
one server URL
7
read actions
reports, audits, research
1
write actions
create, update, manage
Setup

How to connect the MySQL MCP server

Add the server URL to your AI client, then sign in with your InsightfulPipe account to authorize access. The server is hosted, so there is nothing to install.

MCP server URL

https://mysql.insightfulmcp.com/

Connect MySQL to Claude

Fastest: add InsightfulPipe from the Claude Directory

One click connects the full InsightfulPipe MCP with all your connected accounts. To add a server scoped to MySQL only, follow the steps below.

Open Claude Directory

Or add the MySQL server manually:

  1. 01
    Copy the server URL:
    https://mysql.insightfulmcp.com/
  2. 02
    Open Claude connector settings (Customize > Connectors), click + and then Add custom connector.
  3. 03
    Paste the URL and click Add.
  4. 04
    Click Connect, then click Authorize access in the browser.

Start a new chat, click +, open Connectors and turn the connector on to use it.

The Free plan can add one custom connector. On Team and Enterprise plans, an Owner first adds it under Organization settings > Connectors, then each member clicks Connect in Customize > Connectors.

Watch the setup tutorial

Playbook

Prompts and skills that run on the MySQL MCP

Copy a prompt into any connected client, or install a Claude skill that chains the actions for you.

Prompt

“List the tables in the shop schema”

Lists tables in a schema

Prompt

“What indexes does the orders table have?”

Reads table metadata

Prompt

“What was revenue by product category last month?”

Writes and runs a SELECT query

Prompt

“Which queries take the most total time?”

Reads top queries from performance_schema

Prompt

“Show the query plan for this checkout query”

Runs EXPLAIN without executing the query

Prompt

“Which tables have the most reclaimable space?”

Runs the database health report

Prompt

“How many orders have no matching customer?”

Runs a data quality check

HAVE QUESTIONS?

Frequently asked questions

A MySQL MCP server connects a MySQL database to AI assistants through the Model Context Protocol (MCP), an open standard for giving AI tools access to data and actions. Once connected, you can ask Claude, ChatGPT or Cursor to explore the schema, run SQL and look into slow queries.

Ready to connect your data?

Join hundreds of agencies and brands using InsightfulPipe to connect marketing data to AI.

Start a trial today.