Secure read-only MySQL MCP server with query impact analysis
Project description
vikashruhil-mysql-mcp
Secure read-only MySQL MCP server with query impact analysis.
Features
list_tables— list all tables in the connected databasedescribe_table— show schema for a table (columns, types, keys)run_query— execute read-only SELECT/SHOW queriesexplain_query— run EXPLAIN on a SELECT to inspect execution planlist_indexes— list indexes for a table- Write operations blocked — INSERT/UPDATE/DELETE/DROP/etc. are rejected
Usage via uvx (zero install)
DB_HOST=localhost DB_USER=myuser DB_PASS=secret DB_NAME=mydb uvx vikashruhil-mysql-mcp
Environment Variables
| Variable | Default | Required |
|---|---|---|
| DB_HOST | localhost |
No |
| DB_USER | — | Yes |
| DB_PASS | — | Yes |
| DB_NAME | — | Yes |
| DB_PORT | 3306 |
No |
Claude Code Plugin Integration
Install the ai-agent-manager-plugin and set env vars in your shell profile:
export DB_USER=myuser
export DB_PASS=mypassword
export DB_NAME=mydb
The plugin's .mcp.json will auto-run uvx vikashruhil-mysql-mcp on first use.
Publishing
pip install hatch
cd mcps/mysql
hatch build
hatch publish # prompts for PyPI token
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vikashruhil_mysql_mcp-1.0.0.tar.gz.
File metadata
- Download URL: vikashruhil_mysql_mcp-1.0.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bfe8b30ba4c07dbb5170f0251c70d36ccb057c387928da942b7c0df7d11c6ade
|
|
| MD5 |
232f3d3c7ff0044fca0375f91f72c617
|
|
| BLAKE2b-256 |
fb35ee178666d9d450a696b9b69669c15681fa2082654db84cd24fc8082d9b48
|
File details
Details for the file vikashruhil_mysql_mcp-1.0.0-py3-none-any.whl.
File metadata
- Download URL: vikashruhil_mysql_mcp-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbe13a2d86ae708a03f7cd3b2f29189d068519046b23b3e85911be692f5e5275
|
|
| MD5 |
7690a636f23733b2b916454951a250a8
|
|
| BLAKE2b-256 |
ef0f0b12446c7452017c421d52c9b294f3652003798a8c00082fc181ac16aead
|