@benborla29/mcp-server-mysql

database MCP Server

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

Install Ready
databasedatabasemysql
13 views1,823 stars230 forksv2.0.8MIT

Why This Matters

Discovered via unknown and last synced 3mo ago.

Install Ready
Source
unknown
Stars
1,823
Last synced
3mo ago
Install
Instructions detected

Install

1. Install the package

npx @benborla29/mcp-server-mysql

2. Add to claude_desktop_config.json

{
  "mcpServers": {
    "benborla29-mcp-server-mysql": {
      "command": "npx",
      "args": [
        "@benborla29/mcp-server-mysql"
      ]
    }
  }
}

Config file location: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) / %APPDATA%\Claude\claude_desktop_config.json (Windows)

11
Tools
0
Resources
0
Prompts
Standard I/O
Transport

Available Tools (11)

By

default, limited to READ ONLY operations

INSERT

Add new data to tables (requires `ALLOW_INSERT_OPERATION=true`)

Supports

prepared statements for secure parameter handling

mysql_query

Execute SQL queries against the connected database

Configurable

query timeouts and result pagination

Optional

write operations (when enabled via configuration):

Input

`sql` (string): The SQL query to execute

Built-in

query execution statistics

DELETE

Remove data (requires `ALLOW_DELETE_OPERATION=true`)

All

operations are executed within a transaction with proper commit/rollback handling

UPDATE

Modify existing data (requires `ALLOW_UPDATE_OPERATION=true`)

Works Well With - Skills