Skip to main content

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 database
  • describe_table — show schema for a table (columns, types, keys)
  • run_query — execute read-only SELECT/SHOW queries
  • explain_query — run EXPLAIN on a SELECT to inspect execution plan
  • list_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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vikashruhil_mysql_mcp-1.0.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vikashruhil_mysql_mcp-1.0.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

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

Hashes for vikashruhil_mysql_mcp-1.0.0.tar.gz
Algorithm Hash digest
SHA256 bfe8b30ba4c07dbb5170f0251c70d36ccb057c387928da942b7c0df7d11c6ade
MD5 232f3d3c7ff0044fca0375f91f72c617
BLAKE2b-256 fb35ee178666d9d450a696b9b69669c15681fa2082654db84cd24fc8082d9b48

See more details on using hashes here.

File details

Details for the file vikashruhil_mysql_mcp-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for vikashruhil_mysql_mcp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fbe13a2d86ae708a03f7cd3b2f29189d068519046b23b3e85911be692f5e5275
MD5 7690a636f23733b2b916454951a250a8
BLAKE2b-256 ef0f0b12446c7452017c421d52c9b294f3652003798a8c00082fc181ac16aead

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page