MySQL query server based on the MCP sse.Multi-level SQL risk control & injection protection Docker support for quick deployment
MySQL查询服务器 / MySQL Query Server MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. MySQL query server based on the MCP sse.Multi-level SQL risk control & injection protection Docker support for quick deployment.
This project is a MySQL query server based on the MCP framework, supporting real-time database operations via SSE protocol. It features comprehensive security, logging, configuration, and sensitive information protection mechanisms, suitable for secure MySQL data access in development, testing, and production environments.
Once MySQL查询服务器 / MySQL Query Server is connected, these are the calls the assistant has available:
Multi — level SQL risk control & injection protectionCross — database Access Protection**: Blocks unauthorized database accessAuto — enable database isolation in production**HOST — 服务器监听地址 / Server listen addressPORT — 服务器监听端口 / Server listen portMYSQL_HOST — MySQL服务器地址 / MySQL server hostMYSQL_PORT — MySQL服务器端口 / MySQL server portMYSQL_USER — MySQL用户名 / MySQL usernameMYSQL_PASSWORD — MySQL密码 / MySQL passwordMYSQL_DATABASE — 要连接的数据库名 / Database nameDB_CONNECTION_TIMEOUT — 连接超时时间(秒) / Connection timeout (seconds)DB_AUTH_PLUGIN — 认证插件类型 / Auth plugin typecryptography on PyPI is all you need. Most clients run it directly, so configuration is a few lines and a restart.
You will need one environment variable: MYSQL_HOST. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
Among the database access options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. MySQL查询服务器 / MySQL Query Server's toolset — Multi, Cross, Auto and 11 more — is a fair guide to whether it matches your workflow. It is maintained by mangooer; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| Multi | level SQL risk control & injection protection |
| Cross | database Access Protection**: Blocks unauthorized database access |
| Auto | enable database isolation in production** |
| HOST | 服务器监听地址 / Server listen address |
| PORT | 服务器监听端口 / Server listen port |
| MYSQL_HOST | MySQL服务器地址 / MySQL server host |
| MYSQL_PORT | MySQL服务器端口 / MySQL server port |
| MYSQL_USER | MySQL用户名 / MySQL username |
| MYSQL_PASSWORD | MySQL密码 / MySQL password |
| MYSQL_DATABASE | 要连接的数据库名 / Database name |
| DB_CONNECTION_TIMEOUT | 连接超时时间(秒) / Connection timeout (seconds) |
| DB_AUTH_PLUGIN | 认证插件类型 / Auth plugin type |
| DB_POOL_ENABLED | 是否启用连接池 / Enable connection pool (true/false) |
| DB_POOL_MIN_SIZE | 连接池最小连接数 / Pool min size |
{
"mcpServers": {
"mysql-mcp-server-sse": {
"command": "uvx",
"args": ["cryptography"],
"env": {
"MYSQL_HOST": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
| Variable | Description | Required |
|---|---|---|
| MYSQL_HOST | Endpoint or connection string the server talks to. | Optional |
Read-only SQL access to Postgres — let your assistant inspect schemas and answer questions from real data.
Manage your whole Supabase project in conversation — database, auth, storage, Edge Functions and branches.
Query, modify and analyse local SQLite databases in conversation — the fastest way to chat with a data file.
Metabase ships its own MCP endpoint — search your BI content, build and run queries, and save questions and dashboards without leaving the chat.
Official MongoDB server covering data, schemas and Atlas management — from find queries to spinning up clusters.
Serverless Postgres with database branching — point your assistant at Neon and let it work on disposable copies.