A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
A Model Context Protocol (MCP) server for MySQL databases with support for AWS RDS. Enables AI assistants to execute que
A Model Context Protocol (MCP) server for MySQL databases, including support for AWS RDS and other cloud MySQL instances. This server provides comprehensive database management capabilities through a standardized MCP interface.
📋 Quick Start for VS Code Users: See VSCODE_SETUP.md for step-by-step VS Code and GitHub Copilot integration instructions.
npm install -g @sajithrw/mcp-mysql@1.0.0
Or run ad‑hoc without global install using npx (shown later in config).
git clone https://github.com/sajithrw/mcp-mysql.git
cd mcp-mysql
npm install
npm run build
Create (or update) .vscode/mcp.json in your project or in your global VS Code user settings folder. Use the published package via npx so you always invoke the correct version.
{
"servers": {
"mcp-mysql": {
"type": "stdio",
"command": "npx",
"args": [
"@sajithrw/mcp-mysql@1.0.0"
],
"env": {
"MYSQL_HOST": "localhost",
"MYSQL_PORT": "3306",
"MYSQL_USER": "your_username",
"MYSQL_PASSWORD": "your_password",
"MYSQL_DATABASE": "your_database"
}
}
}
}
Then:
mcp-mysql).Previous
settings.jsonbasedgithub.copilot.advanced.mcpconfiguration is deprecated in favor ofmcp.jsondiscovery.
If working from a local clone/build instead of the published package:
{
"servers": {
"mcp-mysql": {
"type": "stdio",
"command": "node",
"args": ["/absolute/path/to/mcp-mysql/build/index.js"],
"env": {
"MYSQL_HOST": "localhost",
"MYSQL_USER": "your_username",
"MYSQL_PASSWORD": "your_password"
}
}
}
}
Add the server to your Claude Desktop configuration:
{
"mcpServers": {
"mysql": {
"command": "npx",
"args": ["@sajithrw/mcp-mysql@1.0.0"],
"env": {
"MYSQL_HOST": "localhost",
"MYSQL_USER": "your_username",
"MYSQL_PASSWORD": "your_password"
}
}
}
}
For testing and development:
npx @modelcontextprotocol/inspector npx @sajithrw/mcp-mysql@1.0.0
Once configured, you can use the MySQL MCP server with GitHub Copilot in VS Code to interact with your databases using natural language.
Database Exploration:
Data Analysis:
Schema Management:
.vscode/mcp.json with config above.1.0.0) matches what you intend to use.npx @sajithrw/mcp-mysql@1.0.0 to see logs..env if your shell loads them before launching VS Code).mysql_connectConnect to a MySQL database.
Parameters:
host (required): MySQL server hostname or IP addressport (optional): MySQL server port (default: 3306)user (required): Database usernamepassword (required): Database passworddatabase (optional): Database name to connect tossl (optional): Use SSL connection (default: false)Example:
{
"host": "localhost",
"port": 3306,
"user": "myuser",
"password": "mypassword",
"database": "mydb",
"ssl": false
}
mysql_queryExecute a SQL query on the connected database.
Parameters:
query (required): SQL query to executeparameters (optional): Array of parameters for prepared statementsExamples:
Simple query:
{
"query": "SELECT * FROM users LIMIT 10"
}
Prepared statement:
{
"query": "SELECT * FROM users WHERE age > ? AND city = ?",
"parameters": ["25", "New York"]
}
mysql_list_databasesList all databases on the MySQL server.
Parameters: None
mysql_list_tablesList all tables in the current or specified database.
Parameters:
database (optional): Database name (uses current database if not specified)mysql_describe_tableGet the structure/schema of a specific table.
Parameters:
table (required): Table name to describedatabase (optional): Database name (uses current database if not specified)mysql_show_indexesShow indexes for a specific table.
Parameters:
table (required): Table name to show indexes fordatabase (optional): Database name (uses current database if not specified)mysql_get_table_statsGet statistics about a table (row count, size, etc.).
Parameters:
table (required): Table name to get statistics fordatabase (optional): Database name (uses current database if not specified)mysql_disconnectDisconnect from the MySQL database.
Parameters: None
{
"host": "mydb.abc123.us-west-2.rds.amazonaws.com",
"port": 3306,
"user": "admin",
"password": "mypassword",
"database": "production",
"ssl": true
}
mysql_connectmysql_list_databasesmysql_list_tablesmysql_describe_tablemysql_show_indexesmysql_querymysql_get_table_statsYou can set default connection parameters using environment variables:
export MYSQL_HOST=localhost
export MYSQL_PORT=3306
export MYSQL_USER=myuser
export MYSQL_PASSWORD=mypassword
export MYSQL_DATABASE=mydb
export MYSQL_SSL=true
npm run build
npm run test
npm run dev
"Not connected to MySQL": Use mysql_connect before executing other commands"Query execution failed": Check SQL syntax and table/column names"Connection failed": Verify connection parameters and network connectivityMIT License - see LICENSE file for details.
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
MCP server integration for DaVinci Resolve Studio
A Jetbrains IDE IntelliJ plugin aimed to provide coding agents the ability to leverage intelliJ's indexing of the codeba