Skip to content

MySQL MCP

MySQL MCP: ask Claude or ChatGPT about your MySQL tables.

Connect MySQL to Mammoth, then add Mammoth to Claude or ChatGPT. Ask about orders by day, revenue by product and basket size by store in plain words. Mammoth calculates the answer, so the numbers are exact.
  1. MySQLYour data
  2. MammothCleans and calculates
  3. Your AI assistantClaude, ChatGPT, VS Code

Your two options

Two ways to connect MySQL to your AI assistant

Mammoth answers questions about MySQL and your other data. Other MySQL MCP servers query MySQL directly.

Option 1

Mammoth

Ask about MySQL and your other data. Mammoth calculates the answer, so the numbers are exact. Included on every plan.

You ask
“How many orders did we get each day last week?”
Option 2

Other MySQL MCP servers

Queries your database directly. You install and look after it yourself.

You ask
“Show the 10 newest rows in the orders table.”

Option 1 · Mammoth

What you can ask about your MySQL tables

Pick a question to see what your assistant gets back.

ClaudeChatGPTVS Code

orders (MySQL)Counted orders by dayCalculated by Mammoth
DayOrders
Mon1,284
Tue1,312
Wed1,198
Thu1,406

Shown on sample data. Your questions run on your own data.

More questions, by team

Pick your team, then copy a question into Claude or ChatGPT.

ClaudeChatGPTVS Code
  • How many users signed up each day this month?
  • How many accounts used each feature last week?
  • What's the average number of projects per account, by plan?
  • Which features grew the most this month?

Copy a question and paste it into your assistant once Mammoth is connected.

Option 1 · Mammoth

Ask about MySQL and your other data together

Connect MySQL and any of Mammoth’s 100+ other sources, like Stripe, Jira or Salesforce. Join them once in Mammoth, and your assistant can answer questions that cover all of them.

See all 100+ sources

Example: MySQL with Stripe

How much did the customers on each plan pay us last month?

MySQL holds the accounts and plans and Stripe holds the payments. Mammoth matches them on the customer's email.

Option 1 · Mammoth

Set up MySQL with Mammoth in three steps

  1. Step 1

    Connect MySQL to Mammoth

    Choose MySQL from Mammoth's connectors and sign in. Then pick the data you want.

  2. https://mcp.mammoth.io/mcp
    Step 2

    Add Mammoth to your assistant

    Paste this address into Claude, ChatGPT or VS Code, then sign in with your Mammoth account.

  3. Step 3

    Ask your question

    Ask in Claude or ChatGPT, in plain words. Mammoth works out the numbers and your assistant replies with the answer.

What Mammoth reads from MySQL

You give Mammoth a database login. It shows every table that login can see, and you pick the ones to bring in.

Start free and connect MySQL14-day Pro trial · No credit card

Step-by-step setup for each assistant is in our MCP docs.

Option 2 · Other servers

How other MySQL MCP servers are set up

There's no general MySQL MCP server from Oracle. Its own server is a proof of concept for MySQL HeatWave. Most people use community servers they install and run themselves, with a database login in their settings.

  1. Step 1

    Pick a server

    Choose a community MySQL MCP server and install it with its command.

  2. Step 2

    Add your database login

    Put your connection details in your assistant's MCP settings.

  3. Step 3

    Ask questions

    The server queries your database with that login.

Common questions about MySQL MCP

What other MySQL MCP servers are there?
There's no general MySQL MCP server from Oracle. Its own server is a proof of concept for MySQL HeatWave. Most people use community servers they install and run themselves, with a database login in their settings.
Does my AI assistant get my database password?
No. You connect MySQL inside Mammoth, and your assistant signs in to Mammoth with your Mammoth account. The database login never passes through the chat.
How does my assistant get to my MySQL data?
You connect MySQL to Mammoth once. Mammoth keeps a copy of the data and updates it on demand or on a schedule. Your assistant asks Mammoth, not MySQL.
Are the numbers right?
Yes. Mammoth calculates totals, counts and averages itself and gives your assistant the result. The AI model doesn't add up the rows.
Which AI assistants work with it?
Claude on the web, Claude Desktop and Claude Code, ChatGPT, and VS Code. Cursor can't sign in yet, so use the Mammoth CLI there.
What does it cost?
The MCP server is on every Mammoth plan, including Free. The Free plan reads MySQL, so you can do all of this without paying.
Do I paste a password or API key into the chat?
No. You connect MySQL inside Mammoth and sign in to Mammoth from your assistant. No password passes through the model.
Can my assistant change things by mistake?
Every tool is labelled as read-only, a change you can undo, or one that deletes or sends data out. You can set your assistant to ask you before it uses anything that isn't read-only.

Ask your AI assistant about your MySQL tables.

Start free, connect MySQL, and add Mammoth to Claude or ChatGPT.

  • ✓ 14-day Pro trial
  • ✓ No credit card
  • ✓ Viewers always free