Skip to content
mcp/skillhub

MySQL MCP Server

by gistrecio.github.gistrec/mcp-mysql-clientv1.0.0

MCP server for one MySQL database: schema, read-only queries and guarded writes.

0Node.jsstdioofficial registry

context tax

queued

security

queued

cold start

queued

freshness

Maintained48d ago

Install MySQL MCP server

Install in Claude Code

claude mcp add mysql-client -e MYSQL_USER='<mysql-user>' -e MYSQL_PASS='<mysql-pass>' -e MYSQL_DB='<mysql-db>' -- npx -y mcp-mysql-client

Configuration

VariableRequiredSecretDescription
MYSQL_HOST——Database host.
MYSQL_PORT——Database port.
MYSQL_USERyes—MySQL user. Use one with the least privileges the task needs, never root.
MYSQL_PASS—yesPassword for that user. Treat it as a secret; MYSQL_PASS_FILE reads it from a file instead.
MYSQL_DByes—The one database this server is bound to. No tool can leave it.
MYSQL_SSL——Require a TLS connection to the server.
MYSQL_SSL_CA——Path to the CA bundle verifying the server certificate; implies MYSQL_SSL.
ALLOW_INSERT_OPERATION——Allow INSERT statements through the execute tool.
ALLOW_UPDATE_OPERATION——Allow UPDATE statements through the execute tool.
ALLOW_DELETE_OPERATION——Allow DELETE statements through the execute tool.
MYSQL_MAX_ROWS——Row cap for one read; the result is marked truncated when it is hit.
MYSQL_TIMEOUT_MS——Statement timeout in milliseconds; the connection is dropped on expiry.

Freshness

Maintained — last maintenance signal 48d ago. The newest of the signals below sets the band.

  1. Last commit (default branch)

    2026-08-22 · 48d ago · GitHub

  2. Latest release

    2026-08-23 · 48d ago · GitHub · v1.0.0

  3. Package published

    no data · npm/PyPI

  4. Registry entry updated

    2026-08-23 · 48d ago · official registry · v1.0.0

FAQ

›How do I install the MySQL MCP server in Claude Code?

Run: claude mcp add mysql-client -e MYSQL_USER='<mysql-user>' -e MYSQL_PASS='<mysql-pass>' -e MYSQL_DB='<mysql-db>' -- npx -y mcp-mysql-client. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.

›Does MySQL require an API key?

Yes. It expects MYSQL_USER, MYSQL_DB, MYSQL_PASS, of which 1 is a secret.

›Can I use MySQL as a remote (hosted) MCP server?

No hosted endpoint is published; it runs locally over stdio.

›Is MySQL in the official MCP registry?

Yes, as io.github.gistrec/mcp-mysql-client.

Alternatives to MySQL

Other database MCP servers.

View all