Mysql Mcp Tool — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Mysql Mcp Tool (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
针对MySQL数据库操作的MCP(Model Context Protocol)工具实现,为AI模型提供数据库操作能力。
npm install将以下配置添加到你的MCP客户端配置文件中:
{
"mcpServers": {
"mysql-mcp-tool": {
"command": "npx",
"args": ["mysql-mcp-tool", "server"],
"env": {
"MYSQL_HOST": "localhost",
"MYSQL_USER": "root",
"MYSQL_PASSWORD": "",
"MYSQL_DATABASE": "test"
}
}
}
}# 查询表
mysql-mcp-tool tables
# 查看表结构
mysql-mcp-tool schema users
# 执行SQL
mysql-mcp-tool query "SELECT * FROM users WHERE id = ?" -p '["1"]'
# 启动MCP服务器
mysql-mcp-tool server -h localhost -u root -p password -d mydbimport MySQLMCPTool from './index.js';
const tool = new MySQLMCPTool({
host: 'localhost',
user: 'root',
password: '',
database: 'test'
});
await tool.connect();
const result = await tool.select('users', { id: 1 });
await tool.disconnect();connect() - 连接数据库disconnect() - 断开连接executeQuery(sql, params) - 执行SQL查询getTables() - 获取所有表getTableSchema(tableName) - 获取表结构select(tableName, where, limit) - 查询数据insert(tableName, data) - 插入数据update(tableName, data, where) - 更新数据delete(tableName, where) - 删除数据该工具提供以下MCP工具:
# 安装依赖
npm install
# 运行测试
npm test
# 启动开发模式
npm startMIT
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.