by yooztech
Secure read-only MySQL access with automatic DB inference, parameterized queries, whitelisting and rate limiting — a saf
Provides secure read-only access to MySQL databases with automatic database inference from your project context. Uses parameterized queries, whitelisting, and rate limiting for safe querying.
yooztech_mcp_mysql is an official MCP server published by yooztech that provides AI assistants with tools and capabilities via the Model Context Protocol. Secure read-only MySQL access with automatic DB inference, parameterized queries, whitelisting and rate limiting — a saf It is categorized under databases.
You can install yooztech_mcp_mysql in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
MIT
yooztech_mcp_mysql is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
Enable Claude to query your database directly using natural language
Example
Ask 'Show me top 10 customers by revenue this month' and get SQL results instantly
Eliminate manual SQL writing for ad-hoc queries, get insights 10x faster
Generate complex reports and analytics without leaving conversation
Example
Analyze sales trends, cohort retention, user behavior patterns conversationally
Democratize data access—non-technical team members can query databases
Understand database structure, relationships, and data models
Example
'Explain the user_orders table schema and its relationships'
Onboard engineers faster, explore unfamiliar databases efficiently
Share your MCP server with the developer community
We wired yooztech_mcp_mysql into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
Strong directory entry: yooztech_mcp_mysql surfaces stars and publisher context so we could sanity-check maintenance before adopting.
I recommend yooztech_mcp_mysql for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
yooztech_mcp_mysql has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
yooztech_mcp_mysql is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
Useful MCP listing: yooztech_mcp_mysql is the kind of server we cite when onboarding engineers to host + tool permissions.
According to our notes, yooztech_mcp_mysql benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
yooztech_mcp_mysql is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
I recommend yooztech_mcp_mysql for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
yooztech_mcp_mysql reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
showing 1-10 of 69
该 MCP 服务器在 MCP 客户端中提供安全的 MySQL 读取能力:
list_databases():列出当前账号可访问的非系统库infer_database(project_root=None, include_evidence=false):根据项目内容推断库名(默认仅返回 { db },可选返回最小化证据统计,不含文件路径/内容)list_tables(db=None):列出库内表(未传 db 时使用已推断库或自动选择)get_table_schema(table, db=None):获取表结构(列定义、主键、索引、表注释)select_rows(table, db=None, columns=None, where=None, order_by=None, limit=100):从库表安全查询information_schema 动态获取并校验LIMIT 100,最大 LIMIT 1000在 Cursor 的设置中添加 MCP Server,示例(仅示意,不包含本地路径):
{
"mcpServers": {
"yooztech_mcp_mysql": {
"command": "yooztech_mcp_mysql",
"args": [],
"env": {
"DB_HOST": "127.0.0.1",
"DB_PORT": "3306",
"DB_USER": "mcp_tool",
"DB_PASS": "<your-strong-pass>"
}
}
}
}
说明:
pip install yooztech_mcp_mysql),从而可直接使用控制台脚本 yooztech_mcp_mysql。command 与 args 改为相应启动方式即可,但不要在 README 中暴露你的本地路径。如希望在不全局安装包的情况下运行,可在 Cursor 中使用 uvx:
{
"mcpServers": {
"yooztech_mcp_mysql": {
"command": "uvx",
"args": ["yooztech_mcp_mysql"],
"env": {
"DB_HOST": "127.0.0.1",
"DB_PORT": "3306",
"DB_USER": "mcp_tool",
"DB_PASS": "<your-strong-pass>"
}
}
}
}
提示:确保系统已安装 uv/uvx。企业私有镜像可通过 UV_INDEX/--index-url 进行加速配置。
DB_HOST:数据库地址DB_PORT:数据库端口DB_USER:数据库只读账号(最小权限)DB_PASS:数据库密码推荐在数据库中为该工具创建最小权限账号(示例):
CREATE USER 'mcp_tool'@'10.0.%' IDENTIFIED BY '<your-strong-pass>';
GRANT SELECT ON *.* TO 'mcp_tool'@'10.0.%';
FLUSH PRIVILEGES;
如需进一步收紧权限,可按库或表粒度授予 SELECT。
list_databases 查看可访问库infer_database 自动推断当前项目使用的库(默认仅返回 { db })list_tables / select_rows(不传 db 时将使用推断库;如有歧义请显式传入 db)Run data quality queries to catch anomalies and inconsistencies
Example
Find duplicate records, missing values, orphaned foreign keys automatically
Maintain data integrity with less manual SQL work
Prerequisites
Time Estimate
15-30 minutes including configuration and testing
Steps
Troubleshooting
✓ Do
✗ Don't
💡 Pro Tips
Architecture
MCP server acts as bridge between Claude and database, translating natural language to SQL queries and returning results in structured format.
Protocols
Compatibility
✓ Use when
Use for ad-hoc data queries, exploratory analysis, report generation, schema exploration, and democratizing data access. Best for read-heavy analytics workloads.
✗ Avoid when
Avoid for production write operations, mission-critical transactions, real-time OLTP workloads, or when database contains sensitive PII without proper access controls. Use read replicas, not primary.