1. Conduid
  2. Data
  3. Mysql MCP Server
MCP server Β· Data

Mysql MCP Server

πŸ”§ MySQL MCP Server for Model Context Protocol Features: β€’ Execute any MySQL query β€’ List all databases β€’ List tables in database β€’ Describe table structure β€’ Environment-based configuration β€’ Built with TypeScript & MCP SDK Ready to use with Claude Desktop, Cursor, and other MCP clients.

Unclaimed MIT last commit a year ago data
34Low

Scored 5 days ago Β· breakdown

About Mysql MCP Server

Mysql MCP Server is an MCP server published by myheisenberg in the Data category: πŸ”§ MySQL MCP Server for Model Context Protocol Features: β€’ Execute any MySQL query β€’ List all databases β€’ List tables in database β€’ Describe table structure β€’ Environment-based configuration β€’ Built with TypeScript & MCP SDK Ready to use with Claude Desktop, Cursor, and other MCP clients.

The repository has 5 stars and 0 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/myheisenberg/mysql-mcp-server

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Mysql MCP Server

Powered by Claude · Grounded in docs

I know everything about Mysql MCP Server. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository yesterday. Heuristics on the source, not an audit.

  • βœ“README presentThe repository ships documentation.
  • βœ“License declaredUsable under a stated license.
  • !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
  • βœ“Dependencies pinnedA lockfile pins dependency versions.
  • βœ“No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.

1 check has not been run yet.

README

πŸ”§ MySQL MCP Server

A Model Context Protocol (MCP) server for MySQL database operations. Provides 4 powerful tools for database interaction through any MCP-compatible client.

✨ Features

  • πŸ” Execute SQL Queries - Run any SELECT, INSERT, UPDATE, DELETE commands
  • πŸ“Š List Databases - View all available databases
  • πŸ“‹ List Tables - Show tables in any database
  • πŸ—οΈ Describe Tables - Get detailed table structure information
  • πŸ”’ Secure - Environment-based configuration, no hardcoded credentials
  • ⚑ Fast - Built with TypeScript and connection pooling

πŸš€ Quick Start

Installation

# Clone the repository
git clone https://github.com/myheisenberg/mysql-mcp-server.git
cd mysql-mcp-server

# Install dependencies
npm install

# Build the project
npm run build

Configuration

The server uses environment variables for database configuration:

DB_HOST=localhost        # MySQL host (default: localhost)
DB_USER=root            # MySQL username (default: root)
DB_PASSWORD=            # MySQL password (default: empty)
DB_PORT=3306           # MySQL port (default: 3306)

πŸ“– Usage

With Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "mysql": {
      "command": "node",
      "args": ["path/to/mysql-mcp-server/dist/index.js"],
      "env": {
        "DB_HOST": "localhost",
        "DB_USER": "your_username",
        "DB_PASSWORD": "your_password",
        "DB_PORT": "3306"
      }
    }
  }
}

With Cursor IDE

Add to your MCP configuration:

{
  "mcpServers": {
    "mysql": {
      "command": "node",
      "args": ["path/to/mysql-mcp-server/dist/index.js"],
      "env": {
        "DB_HOST": "localhost",
        "DB_USER": "your_username", 
        "DB_PASSWORD": "your_password",
        "DB_PORT": "3306"
      }
    }
  }
}

πŸ› οΈ Available Tools

1. mysql_query

Execute any MySQL query and get formatted results.

Example: "Run a SELECT query on the users table"

2. mysql_databases

List all available databases on the MySQL server.

Example: "Show me all databases"

3. mysql_tables

List all tables in a specific database.

Example: "What tables are in the blog database?"

4. mysql_describe

Get detailed information about a table's structure.

Example: "Describe the structure of the users table"

πŸ”§ Development

# Install dependencies
npm install

# Development mode (watch for changes)
npm run dev

# Build for production
npm run build

# Start the server
npm start

πŸ“¦ Project Structure

mysql-mcp-server/
β”œβ”€β”€ src/
β”‚   └── index.ts          # Main MCP server implementation
β”œβ”€β”€ dist/                 # Compiled JavaScript (auto-generated)
β”œβ”€β”€ package.json          # Project dependencies and scripts
β”œβ”€β”€ tsconfig.json         # TypeScript configuration
β”œβ”€β”€ .gitignore           # Git ignore rules
└── README.md            # This file

πŸ”’ Security

  • No hardcoded credentials - All database connection details come from environment variables
  • Connection pooling - Efficient and secure database connections
  • Error handling - Proper error messages without exposing sensitive information

🀝 Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

πŸ“ž Support

If you encounter any issues or have questions:

  1. Check the Issues page
  2. Create a new issue if your problem isn't already reported
  3. Provide as much detail as possible including error messages and configuration

Made with ❀️ for the MCP community

README fetched from the repository yesterday. The original is authoritative.

Questions

About Mysql MCP Server

How do I install Mysql MCP Server?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Mysql MCP Server safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 4 of the 5 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Mysql MCP Server still maintained?

The last commit was a year ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.