Prototype · Preview: every server in the official registry, synced every 30 minutes. Reviews and accounts come in a later step.
PopNx MCPMCP servers for people who use AI · explained in plain words

Mysql

by marcelo-ochoaversion 1.0.7i★ –iRuns on your computer
Registry nameio.github.marcelo-ochoa/mysql

Install

Overview

Description from the maker (original English)

An MCP server for MySQL databases.

PopNx MCP’s three pillars

These three are never merged into one score: opinions, measurements and popularity are different things.

What you can do with it

We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.

  • Connection: Runs on your computer
  • Transport: stdio
  • Category: Databases & datasets
  • You need to fill in: MYSQL_PASSWORD

Install

Pick the AI app you use, then copy the settings.

Before you install

  • Basic checks: 1 of 1 passed
  • Runs on your computer with your user’s permissions (files, network, apps).
  • You fill in yourself: MYSQL_USER, MYSQL_PASSWORD

Values marked secret are keys to your account. Never share them or paste them into a chat.

You need

  • npmNode.js installed (for the npx command)

Which app do you use?

Pick your app above. We remember it, so next time the button says “Install in …”.

Open Claude Desktop → Settings → Developer → Edit Config, and paste this into claude_desktop_config.json

{
  "mcpServers": {
    "mysql": {
      "command": "npx",
      "args": [
        "-y",
        "@marcelo-ochoa/server-mysql"
      ],
      "env": {
        "MYSQL_USER": "your-value",
        "MYSQL_PASSWORD": "your-value"
      }
    }
  }
}

Run this in your terminal

claude mcp add mysql --env MYSQL_USER=your-value --env MYSQL_PASSWORD=your-value -- npx -y @marcelo-ochoa/server-mysql

Fill in the empty values before running it.

Open in Cursor

Or copy the settings yourself

Paste into .cursor/mcp.json in your project, or ~/.cursor/mcp.json

{
  "mcpServers": {
    "mysql": {
      "command": "npx",
      "args": [
        "-y",
        "@marcelo-ochoa/server-mysql"
      ],
      "env": {
        "MYSQL_USER": "your-value",
        "MYSQL_PASSWORD": "your-value"
      }
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

Open in VS Code

Or copy the settings yourself

Paste into .vscode/mcp.json in your project

{
  "servers": {
    "mysql": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@marcelo-ochoa/server-mysql"
      ],
      "env": {
        "MYSQL_USER": "your-value",
        "MYSQL_PASSWORD": "your-value"
      }
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

This one runs on your computer, and ChatGPT can only connect to servers on the internet. Pick another app.

Your choice stays on this device in a cookie; no account needed.

Values you fill in

  • MYSQL_USER env
    MySQL username
  • MYSQL_PASSWORD secret env
    MySQL password

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 7, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account marcelo-ochoa, which owns the repo

  • … Not checked yet

    Still maintained

    We have not read this repo from GitHub yet

  • … Not checked yet

    Has a licence

    We have not read this repo from GitHub yet

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Compared with others in Databases & datasetsi

  • More stars than 0% of the other 954 servers in this category
  • Published to the registry more recently than 6% of the other 954 servers in this category
  • Basic checks equal to or better than 100% of the other 954 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Mysql safe?

It passed 1 of 1 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

You need to fill in: MYSQL_PASSWORD

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed –, and the latest version (1.0.7) reached the registry 8 months ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: Supabase, MongoDB MCP Server, Elasticsearch MCP Server

Alternatives

Servers in the same category from other makers, sorted by stars.

Reading a card:★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

Supabase

by supabase

Supabase’s official server lets AI create tables, query data and review project settings in your Supabase database.

Computer or cloud★ 2,993Apache-2.0Updated yesterday
Install

MongoDB MCP Server

by mongodb-js

MongoDB Model Context Protocol Server

Runs on your computer★ 1,157Apache-2.0Updated 3 days ago
Install

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

MySQL Database

A Model Context Protocol server that provides read-only access to MySQL databases. This server enables LLMs to inspect database schemas, execute and explain read-only queries, and analyze performance metrics.

Components

Tools
  • mysql-query
  • Execute read-only SQL queries against the connected MySQL database
  • Input: sql (string): The SQL query to execute
  • All queries are executed within a READ ONLY transaction
  • mysql-explain
  • Explain plan SQL queries against the connected MySQL database
  • Input: sql (string): The SQL query to explain
  • Returns execution plan in JSON format
  • mysql-stats
  • Get statistics for a given table in the current connected database
  • Input: name (string): The table name
  • Returns comprehensive table, index, and column statistics
  • mysql-connect
  • Reconnect using new credentials
  • Input: connectionString (string): MySQL connect string (e.g., host.docker.internal:3306/mydb)
  • Input: user (string): Username (e.g., root)
  • Input: password (string): Password

Example: mysql-connect host.docker.internal:3306/hr root my_2025

  • mysql-awr
  • Generate a MySQL performance report similar to Oracle AWR
  • Includes database statistics, InnoDB metrics, top queries (requires performance_schema), table/index statistics, connection info, and optimization recommendations
  • No input required
Resources

The server provides schema information for each table in the MySQL database:

  • Table Schemas (mysql:// / /schema)
  • JSON schema information for each table
  • Includes column names and data types
  • Automatically discovered from MySQL database metadata

Configuration

The MySQL server uses environment variables or the mysql-connect tool for secure credential management:

  • `MYSQL_USER`: MySQL username (optional if using mysql-connect)
  • `MYSQL_PASSWORD`: MySQL password (optional if using mysql-connect)
Connection String

The connection string should contain only the host, port, and database information (without embedded credentials). Providing it as a command-line argument is optional. If omitted at startup, you must use the mysql-connect tool to establish a connection before using other functionality.

Supported connection string formats:

  • mysql://host:port/dbname
  • host:port/dbname

Usage with Claude Desktop

To use this server with the Claude Desktop app, add the following configuration to the "mcpServers" section of your claude_desktop_config.json:

Docker
  • When running Docker on macOS, use host.docker.internal if the MySQL server is running on the host network (e.g., localhost)
  • Credentials are passed via environment variables MYSQL_USER and MYSQL_PASSWORD
{

"mcpServers": { "mysql": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "MYSQL_USER=myuser", "-e", "MYSQL_PASSWORD=mypassword", "mochoa/mcp-mysql" ] } } }

Note: You can still provide the connection string as a final argument if you want to connect automatically on startup: "args": [..., "mochoa/mcp-mysql", "host.docker.internal:3306/mydb"].

NPX
{

"mcpServers": { "mysql": { "command": "npx", "args": [ "-y", "@marcelo-ochoa/server-mysql" ], "env": { "MYSQL_USER": "myuser", "MYSQL_PASSWORD": "mypassword" } } } }

Replace /mydb with your database name.

Note: Replace the following placeholders with your actual values:

  • myuser and mypassword with your MySQL credentials
  • localhost:3306 with your MySQL server host and port
  • mydb with your database name

Usage with VS Code

For manual installation, add the following JSON block to your User Settings (JSON) file in VS Code. You can do this by pressing Ctrl + Shift + P and typing Preferences: Open User Settings (JSON).

Optionally, you can add it to a file called .vscode/mcp.json in your workspace. This will allow you to share the configuration with others.

Note that the mcp key is not needed in the .vscode/mcp.json file.

Docker

Note: When using Docker and connecting to a MySQL server on your host machine, use host.docker.internal instead of localhost in the connection URL.

{

"mcp": { "inputs": [ { "type": "promptString", "id": "mysql_user", "description": "MySQL username" }, { "type": "promptString", "id": "mysql_password", "description": "MySQL password", "password": true } ], "servers": { "mysql": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "MYSQL_USER=${input:mysql_user}", "-e", "MYSQL_PASSWORD=${input:mysql_password}", "mochoa/mcp-mysql" ] } } } }

Note: You can add an input for mysql_url and append it to args if you want to connect on startup.

NPX
{

"mcp": { "inputs": [ { "type": "promptString", "id": "mysql_user", "description": "MySQL username" }, { "type": "promptString", "id": "mysql_password", "description": "MySQL password", "password": true } ], "servers": { "mysql": { "command": "npx", "args": [ "-y", "@marcelo-ochoa/server-mysql" ], "env": { "MYSQL_USER": "${input:mysql_user}", "MYSQL_PASSWORD": "${input:mysql_password}" } } } } }

Usage with Antigravity Code Editor

Put this in ~/.gemini/antigravity/mcp_config.json

{

"mcpServers": { "mysql": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "MYSQL_USER=myuser", "-e", "MYSQL_PASSWORD=mypassword", "mochoa/mcp-mysql", "host.docker.internal:3306/mydb" ] } }, "inputs": [] }

Performance Schema

For optimal performance monitoring with the mysql-awr tool, ensure that the Performance Schema is enabled in your MySQL configuration:

[mysqld]

performance_schema = ON

The Performance Schema provides detailed query statistics and performance metrics. If it's not enabled, the AWR report will still generate but with limited query-level statistics.

Building

Docker:

docker build -t mochoa/mcp-mysql -f src/mysql/Dockerfile .

NPM:

cd src/mysql

npm install npm run build

Demo Prompts

Sample prompts to try with the MySQL MCP server:

  • Connect to host.docker.internal:3306/mydb using root as user and password123 as password using mysql mcp server
  • Query all tables in the current database
  • Get stats for the users table
  • Explain the execution plan for: SELECT * FROM users WHERE email = 'test@example.com'
  • Generate a performance report using mysql-awr
  • Based on the AWR report, what optimizations would you recommend?

Demos

See Demos for usage examples with Claude Desktop, Docker AI, Gemini CLI, and Antigravity Code Editor.

MySQL AWR in action

See MySQL AWR in action for an example of a performance report generated by the mysql-awr tool, highlighting specific optimization opportunities.

Change Log

See Change Log for the history of changes.

Sources

As usual, the code of this extension is at GitHub, feel free to suggest changes and make contributions.

📜 License

This project is licensed under the Apache License, Version 2.0 for new contributions, with existing code under MIT - see the LICENSE file for details.

Ask PopNx