Database MCP Server
Rank #55,733io.github.arifulislamat/database-mcp-mysql
MCP server for MySQL. Read-only by default, row caps, statement timeouts, secrets never logged.
Database MCP Server is a Model Context Protocol (MCP) server published by arifulislamat. It ranks #55,733 of 132,113 servers tracked on MCP Toplist, and its repository has 5 GitHub stars. Database MCP Server is listed on Official MCP, with 2 tracked versions. It was first listed on Jul 12, 2026 and most recently updated on Jul 16, 2026.
Ranks ahead of 76,380 of 132,113 servers on MCP Toplist.
Use Database MCP Server
Requires user-supplied configuration before first use — typically an API key, token or connection string set via environment variables.
claude mcp add database-mcp-mysql -e "MYSQL_HOST=<your MYSQL_HOST>" -e "MYSQL_USER=<your MYSQL_USER>" -e "MYSQL_PASSWORD=<your MYSQL_PASSWORD>" -e "MYSQL_DATABASE=<your MYSQL_DATABASE>" -- npx -y @database-mcp/mysqlReplace each placeholder with your own value before saving.
claude mcp add database-mcp-mysql -e "MYSQL_HOST=<your MYSQL_HOST>" -e "MYSQL_USER=<your MYSQL_USER>" -e "MYSQL_PASSWORD=<your MYSQL_PASSWORD>" -e "MYSQL_DATABASE=<your MYSQL_DATABASE>" -- uvx database-mcp-mysqlReplace each placeholder with your own value before saving.
[mcp_servers.database-mcp-mysql]
command = "npx"
args = ["-y", "@database-mcp/mysql"]
[mcp_servers.database-mcp-mysql.env]
MYSQL_HOST = "<your MYSQL_HOST>"
MYSQL_USER = "<your MYSQL_USER>"
MYSQL_PASSWORD = "<your MYSQL_PASSWORD>"
MYSQL_DATABASE = "<your MYSQL_DATABASE>"Add to ~/.codex/config.toml. Replace each placeholder with your own value before saving.
[mcp_servers.database-mcp-mysql]
command = "uvx"
args = ["database-mcp-mysql"]
[mcp_servers.database-mcp-mysql.env]
MYSQL_HOST = "<your MYSQL_HOST>"
MYSQL_USER = "<your MYSQL_USER>"
MYSQL_PASSWORD = "<your MYSQL_PASSWORD>"
MYSQL_DATABASE = "<your MYSQL_DATABASE>"Add to ~/.codex/config.toml. Replace each placeholder with your own value before saving.
{
"mcpServers": {
"database-mcp-mysql": {
"command": "npx",
"args": [
"-y",
"@database-mcp/mysql"
],
"env": {
"MYSQL_HOST": "<your MYSQL_HOST>",
"MYSQL_USER": "<your MYSQL_USER>",
"MYSQL_PASSWORD": "<your MYSQL_PASSWORD>",
"MYSQL_DATABASE": "<your MYSQL_DATABASE>"
}
}
}
}Add to claude_desktop_config.json (Settings → Developer → Edit Config). Replace each placeholder with your own value before saving.
{
"mcpServers": {
"database-mcp-mysql": {
"command": "uvx",
"args": [
"database-mcp-mysql"
],
"env": {
"MYSQL_HOST": "<your MYSQL_HOST>",
"MYSQL_USER": "<your MYSQL_USER>",
"MYSQL_PASSWORD": "<your MYSQL_PASSWORD>",
"MYSQL_DATABASE": "<your MYSQL_DATABASE>"
}
}
}
}Add to claude_desktop_config.json (Settings → Developer → Edit Config). Replace each placeholder with your own value before saving.
{
"mcpServers": {
"database-mcp-mysql": {
"command": "npx",
"args": [
"-y",
"@database-mcp/mysql"
],
"env": {
"MYSQL_HOST": "<your MYSQL_HOST>",
"MYSQL_USER": "<your MYSQL_USER>",
"MYSQL_PASSWORD": "<your MYSQL_PASSWORD>",
"MYSQL_DATABASE": "<your MYSQL_DATABASE>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (per project). Replace each placeholder with your own value before saving.
{
"mcpServers": {
"database-mcp-mysql": {
"command": "uvx",
"args": [
"database-mcp-mysql"
],
"env": {
"MYSQL_HOST": "<your MYSQL_HOST>",
"MYSQL_USER": "<your MYSQL_USER>",
"MYSQL_PASSWORD": "<your MYSQL_PASSWORD>",
"MYSQL_DATABASE": "<your MYSQL_DATABASE>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (per project). Replace each placeholder with your own value before saving.
{
"servers": {
"database-mcp-mysql": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@database-mcp/mysql"
],
"env": {
"MYSQL_HOST": "<your MYSQL_HOST>",
"MYSQL_USER": "<your MYSQL_USER>",
"MYSQL_PASSWORD": "<your MYSQL_PASSWORD>",
"MYSQL_DATABASE": "<your MYSQL_DATABASE>"
}
}
}
}Save as .vscode/mcp.json in your workspace. Replace each placeholder with your own value before saving.
{
"servers": {
"database-mcp-mysql": {
"type": "stdio",
"command": "uvx",
"args": [
"database-mcp-mysql"
],
"env": {
"MYSQL_HOST": "<your MYSQL_HOST>",
"MYSQL_USER": "<your MYSQL_USER>",
"MYSQL_PASSWORD": "<your MYSQL_PASSWORD>",
"MYSQL_DATABASE": "<your MYSQL_DATABASE>"
}
}
}
}Save as .vscode/mcp.json in your workspace. Replace each placeholder with your own value before saving.
{
"mcpServers": {
"database-mcp-mysql": {
"command": "npx",
"args": [
"-y",
"@database-mcp/mysql"
],
"env": {
"MYSQL_HOST": "<your MYSQL_HOST>",
"MYSQL_USER": "<your MYSQL_USER>",
"MYSQL_PASSWORD": "<your MYSQL_PASSWORD>",
"MYSQL_DATABASE": "<your MYSQL_DATABASE>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json. Replace each placeholder with your own value before saving.
{
"mcpServers": {
"database-mcp-mysql": {
"command": "uvx",
"args": [
"database-mcp-mysql"
],
"env": {
"MYSQL_HOST": "<your MYSQL_HOST>",
"MYSQL_USER": "<your MYSQL_USER>",
"MYSQL_PASSWORD": "<your MYSQL_PASSWORD>",
"MYSQL_DATABASE": "<your MYSQL_DATABASE>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json. Replace each placeholder with your own value before saving.
{
"mcpServers": {
"database-mcp-mysql": {
"command": "npx",
"args": [
"-y",
"@database-mcp/mysql"
],
"env": {
"MYSQL_HOST": "<your MYSQL_HOST>",
"MYSQL_USER": "<your MYSQL_USER>",
"MYSQL_PASSWORD": "<your MYSQL_PASSWORD>",
"MYSQL_DATABASE": "<your MYSQL_DATABASE>"
}
}
}
}Replace each placeholder with your own value before saving.
{
"mcpServers": {
"database-mcp-mysql": {
"command": "uvx",
"args": [
"database-mcp-mysql"
],
"env": {
"MYSQL_HOST": "<your MYSQL_HOST>",
"MYSQL_USER": "<your MYSQL_USER>",
"MYSQL_PASSWORD": "<your MYSQL_PASSWORD>",
"MYSQL_DATABASE": "<your MYSQL_DATABASE>"
}
}
}
}Replace each placeholder with your own value before saving.
Show your rank
Maintain this server? Add the live rank badge to your README — it updates automatically as the leaderboard changes.
[](https://mcptoplist.com/server/io.github.arifulislamat%2Fdatabase-mcp-mysql)<a href="https://mcptoplist.com/server/io.github.arifulislamat%2Fdatabase-mcp-mysql"><img src="https://mcptoplist.com/badge/io.github.arifulislamat%2Fdatabase-mcp-mysql.svg" alt="MCP Toplist: Top 50% of 132,113" /></a>Variants: append ?metric=score or ?metric=stars to the image URL.
Listed on 1 registry
arifulislamat
Available versions (2)
| Version | Published |
|---|---|
| 0.4.2 | Jul 16, 2026 |
| 0.4.1 | Jul 12, 2026 |
Frequently asked questions
- Who maintains Database MCP Server?
- Database MCP Server is maintained by arifulislamat, which publishes 11 MCP servers (10 total versions) tracked on MCP Toplist.
- Is Database MCP Server listed on the Official MCP Registry?
- Yes — Database MCP Server is listed on the Official MCP Registry.
- How many versions does Database MCP Server have?
- MCP Toplist tracks 2 versions of Database MCP Server, most recently published on Jul 16, 2026.
- Where can I find the source code for Database MCP Server?
- The source code for Database MCP Server is hosted at github.com/arifulislamat/database-mcp.
Do you run this server?
Community projects list the MCP servers behind real agents and apps. Publish yours and this page will link to it.