
Company News
AWS Security Hub Adds Socket for Supply Chain Security
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.
database-mcp-mysql
Advanced tools
MCP server for MySQL with read-only guardrails, row caps, and statement timeouts
MCP server giving AI clients safe, structured access to a MySQL database. Two tools, guardrails on by default.
{
"mcpServers": {
"mysql": {
"command": "uvx",
"args": ["database-mcp-mysql"],
"env": {
"MYSQL_HOST": "127.0.0.1",
"MYSQL_USER": "youruser",
"MYSQL_PASSWORD": "yourpassword",
"MYSQL_DATABASE": "yourdb"
}
}
}
}
Sources, highest precedence first: flags, --config YAML, environment
variables, defaults.
MYSQL_HOST, MYSQL_PORT, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DATABASE,
or a full MYSQL_DSN (mysql://user:pass@host:3306/db, inline credentials
discouraged).
MYSQL_PASSWORD_FILE=/run/secrets/mysql_password (Docker/Kubernetes
secrets convention)connection.password: ${MYSQL_PASSWORD} (env expansion, never a
literal)The password is held in a non-printable type and redacted from all output.
--config /absolute/path/to/database-mcp.yaml:
connection:
host: 127.0.0.1
port: 3306
user: mcpuser
password: ${MYSQL_PASSWORD}
database: yourdb
guardrails:
readOnly: true
maxRows: 1000
queryTimeoutMs: 30000
execute_sql: run a single SQL statement. Returns a summary line and
compact JSON {columns, rows}.search_objects: list tables with estimated row counts, or describe one
table (columns, indexes, foreign keys).SET SESSION TRANSACTION READ ONLY at the server. Pass --allow-write
to enable writes.maxRows (default 1000, MAX_ROWS).queryTimeoutMs (default 30000, QUERY_TIMEOUT_MS)
are aborted.Full contract: docs/tool-contract.md
mcp-name: io.github.arifulislamat/database-mcp-mysql
FAQs
MCP server for MySQL with read-only guardrails, row caps, and statement timeouts
We found that database-mcp-mysql demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.

Research
/Security News
Popular npm packages keyv and cacheable compromised.

Security News
A misconfiguration gave three Anthropic models internet access, and one, believing it was in a simulation, shipped a credential-stealing package to PyPI.