Mysql2 MCP Server
MySQL MCP server that enables AI assistants to interact with MySQL databases. Supports direct connection, SSH tunnel, connection pool, transactions, and security enforcement.
context tax
pending
security
97/100
cold start
pending
freshness
Active1d ago
Our reading of Mysql2, from the data
Mysql2 is a database MCP server from jcxy.
We haven't measured its tool list yet, so its token cost is unknown.
Maintenance is active: the last public signal was in the last day (2026-10-17). For comparison, 64% of database servers are active or maintained.
With 2 GitHub stars it ranks #467 of 1,397 database servers we index.
It runs locally on your machine over stdio.
Install Mysql2 MCP server
Install in Claude Code
claude mcp add mysql2 -- npx -y mysql2-mcp-serverInstall in Cursor
{
"mcpServers": {
"mysql2": {
"command": "npx",
"args": [
"-y",
"mysql2-mcp-server"
]
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"mysql2": {
"command": "npx",
"args": [
"-y",
"mysql2-mcp-server"
]
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"mysql2": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mysql2-mcp-server"
]
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"mysql2": {
"command": "npx",
"args": [
"-y",
"mysql2-mcp-server"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Security signals
97/100 — no known issues found as of 2026-10-19, from the checks below. This is not a guarantee of safety; review what a server can do before connecting it.
Deductions
- No security policy (SECURITY.md)-3
Checks
- ✓Repository hygiene (archived, activity, license, security policy)
- ○Package metadata (install scripts, provenance) — pending
- ○Tool descriptions (prompt-injection and hidden-text heuristics) — pending
- ○Source scan (secrets, CVEs, risky code) by vectra-guard — pending
Scan it yourself before installing with vectra-guard, the open-source agent security CLI. Scoring rules
Freshness
Active — last maintenance signal 1d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-17 · 1d ago · GitHub
Latest release
no data · GitHub
Package published
no data · npm/PyPI
Registry entry updated
no data · official registry
How it compares in Database
Against the most-starred database servers we index. Token cost is per model turn, measured from each server's live tool list.
| Server | Stars | Tools | Tokens / turn | Freshness | Runs |
|---|---|---|---|---|---|
| Mysql2 (this) | 2 | — | not measured | Active | local |
| Screenpipe | 21,982 | — | not measured | Active | — |
| Genai Toolbox | 16,679 | — | not measured | Active | hosted |
| Convex Backend | 12,716 | — | not measured | Active | — |
| Kubeshark | 12,100 | — | not measured | Active | local |
| Baserow | 6,174 | — | not measured | Active | — |
FAQ
›How do I install the Mysql2 MCP server in Claude Code?
Run: claude mcp add mysql2 -- npx -y mysql2-mcp-server. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Mysql2 require an API key?
No required environment variables are declared in its published metadata.
›Can I use Mysql2 as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Mysql2 in the official MCP registry?
No. It was indexed from npm.
Sources and method
- GitHub repository
- fetched 2026-10-19
- Package registry (npm / PyPI)
- listed
- Security signals, computed by us
- 2026-10-19
- Last checked against all sources
- 2026-10-19
The description, packages and links come from the maintainer's own published metadata. Token cost, security signals, freshness and the reading above are MCPSkillHub's own measurements; see the methodology. Spot an error? Request a correction or claim the listing.
Alternatives to Mysql2
Other database MCP servers.