<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Dylan Ngo</title>
    <description>The latest articles on DEV Community by Dylan Ngo (@iamdylanngo).</description>
    <link>https://dev.to/iamdylanngo</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F323812%2F747c9c6d-0cf1-40cd-a4e0-91e01ff2d371.jpg</url>
      <title>DEV Community: Dylan Ngo</title>
      <link>https://dev.to/iamdylanngo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/iamdylanngo"/>
    <language>en</language>
    <item>
      <title>Talk to Your MySQL Database with Claude — No SQL Required</title>
      <dc:creator>Dylan Ngo</dc:creator>
      <pubDate>Sun, 28 Jun 2026 02:51:14 +0000</pubDate>
      <link>https://dev.to/iamdylanngo/talk-to-your-mysql-database-with-claude-no-sql-required-4jh3</link>
      <guid>https://dev.to/iamdylanngo/talk-to-your-mysql-database-with-claude-no-sql-required-4jh3</guid>
      <description>&lt;p&gt;If you use Claude daily, you already know it's great for writing, coding, and answering questions. But what if Claude could also query your live MySQL database — in plain English?&lt;/p&gt;

&lt;p&gt;That's exactly what the &lt;strong&gt;MySQL MCP Server&lt;/strong&gt; plugin makes possible. In this tutorial, I'll show you how to install it and start having real conversations with your database in under five minutes.&lt;/p&gt;




&lt;h2&gt;
  
  
  What is MCP?
&lt;/h2&gt;

&lt;p&gt;MCP (Model Context Protocol) is an open standard that lets AI assistants like Claude connect to external tools and data sources. Think of it as a plugin system: instead of copy-pasting data into Claude's chat window, you connect Claude directly to the source.&lt;/p&gt;

&lt;p&gt;With an MCP server running, Claude can read and write data in real time — no manual exports, no SQL gymnastics.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Can You Do With This Plugin?
&lt;/h2&gt;

&lt;p&gt;Once connected, you can ask Claude things like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;em&gt;"What tables are in my database?"&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;"Show me all orders placed in the last 7 days."&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;"How many users signed up this month compared to last month?"&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;"Update the status of order #1042 to 'shipped'."&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Claude translates your plain-English request into the right SQL query, runs it, and gives you a human-readable answer. You stay in the conversation — no switching to a SQL client.&lt;/p&gt;




&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Node.js 18+&lt;/strong&gt; installed on your machine&lt;/li&gt;
&lt;li&gt;A running &lt;strong&gt;MySQL instance&lt;/strong&gt; (local or remote)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Claude Desktop&lt;/strong&gt; or &lt;strong&gt;Claude Code&lt;/strong&gt; (CLI)&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Step 1: Download the Plugin
&lt;/h2&gt;

&lt;p&gt;Head to the &lt;a href="https://github.com/iamdylanngo/mysql-mcp-server/releases" rel="noopener noreferrer"&gt;Releases page&lt;/a&gt; and download the latest &lt;code&gt;.mcpb&lt;/code&gt; file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mysql-mcp-server-v1.0.1.mcpb
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;.mcpb&lt;/code&gt; is Claude's plugin bundle format — a single file that contains everything needed to run the server.&lt;/p&gt;




&lt;h2&gt;
  
  
  Step 2: Install the Plugin
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Option A — Claude Code (CLI):&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude plugin &lt;span class="nb"&gt;install &lt;/span&gt;mysql-mcp-server-v1.0.1.mcpb
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Option B — Claude Desktop:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Double-click the &lt;code&gt;.mcpb&lt;/code&gt; file. Claude Desktop will detect it and open an install prompt.&lt;/p&gt;




&lt;h2&gt;
  
  
  Step 3: Configure Your Database Connection
&lt;/h2&gt;

&lt;p&gt;After installation, Claude will ask for your connection details. Fill in the fields:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;Example&lt;/th&gt;
&lt;th&gt;Notes&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Database Host&lt;/td&gt;
&lt;td&gt;&lt;code&gt;127.0.0.1&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Use your server IP for remote databases&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Database Port&lt;/td&gt;
&lt;td&gt;&lt;code&gt;3306&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Default MySQL port&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Database User&lt;/td&gt;
&lt;td&gt;&lt;code&gt;root&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Use a least-privilege user in production&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Database Password&lt;/td&gt;
&lt;td&gt;&lt;code&gt;••••••&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Stored securely&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Database Name&lt;/td&gt;
&lt;td&gt;&lt;code&gt;mydb&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The specific database to connect to&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Connection Pool Limit&lt;/td&gt;
&lt;td&gt;&lt;code&gt;10&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Max concurrent connections&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; For production use, create a dedicated read-only MySQL user for Claude. This prevents accidental writes if you only need to query data.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;You can update these settings at any time from Claude's plugin settings under &lt;strong&gt;MySQL MCP Server&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  Step 4: Try It Out
&lt;/h2&gt;

&lt;p&gt;Once connected, start a new conversation in Claude and try these prompts:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Explore your schema:&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"What tables do I have? Give me a quick summary of what each one stores."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Query data in plain English:&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Show me the 10 most recent signups with their email and created date."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Get aggregations without writing SQL:&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"How many orders are in each status? Show me a breakdown."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Write data when you need to:&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Set the &lt;code&gt;is_active&lt;/code&gt; flag to false for all users who haven't logged in since January."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Claude will show you the SQL it's about to run before executing write operations, so you're always in control.&lt;/p&gt;




&lt;h2&gt;
  
  
  Available Tools
&lt;/h2&gt;

&lt;p&gt;The plugin exposes five tools that Claude uses behind the scenes:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;select_mysql_version&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Returns the MySQL server version&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;list_tables&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Lists all tables in the connected database&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;describe_table&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Shows columns, types, and constraints for a table&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;query&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Runs a read-only &lt;code&gt;SELECT&lt;/code&gt; query&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;mutate&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Runs &lt;code&gt;INSERT&lt;/code&gt;, &lt;code&gt;UPDATE&lt;/code&gt;, or &lt;code&gt;DELETE&lt;/code&gt; statements&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;code&gt;mutate&lt;/code&gt; rejects &lt;code&gt;SELECT&lt;/code&gt; statements — reads and writes are intentionally separated.&lt;/p&gt;




&lt;h2&gt;
  
  
  Want to Build on It?
&lt;/h2&gt;

&lt;p&gt;The source is on GitHub: &lt;a href="https://github.com/iamdylanngo/mysql-mcp-server" rel="noopener noreferrer"&gt;iamdylanngo/mysql-mcp-server&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It's built with TypeScript, the &lt;a href="https://github.com/modelcontextprotocol/typescript-sdk" rel="noopener noreferrer"&gt;MCP SDK&lt;/a&gt;, &lt;a href="https://github.com/sidorares/node-mysql2" rel="noopener noreferrer"&gt;mysql2&lt;/a&gt;, and Zod for input validation. PRs and issues are welcome.&lt;/p&gt;




&lt;h2&gt;
  
  
  Wrapping Up
&lt;/h2&gt;

&lt;p&gt;The MySQL MCP Server bridges the gap between Claude's language understanding and your real data. If you've ever wanted to ask questions about your database the same way you'd ask a colleague, this is the plugin to try.&lt;/p&gt;

&lt;p&gt;Download it from the &lt;a href="https://github.com/iamdylanngo/mysql-mcp-server/releases" rel="noopener noreferrer"&gt;Releases page&lt;/a&gt; and let me know what you build with it in the comments.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Tags: &lt;code&gt;claude&lt;/code&gt; &lt;code&gt;mcp&lt;/code&gt; &lt;code&gt;mysql&lt;/code&gt; &lt;code&gt;ai&lt;/code&gt; &lt;code&gt;database&lt;/code&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>mysql</category>
      <category>mcp</category>
      <category>claude</category>
    </item>
  </channel>
</rss>
