Mysql Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Mysql Mcp (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.
A Model Context Protocol (MCP) server that provides MySQL database query capabilities. This server allows AI assistants to interact with MySQL databases through a standardized interface.
npm install cp .env.example .env.env: MYSQL_HOST=localhost
MYSQL_PORT=3306
MYSQL_USER=your_username
MYSQL_PASSWORD=your_password
MYSQL_DATABASE=your_database# Start the server
npm start
# Development mode with auto-restart
npm run dev#### 1. mysql_query Execute SQL queries with optional prepared statement parameters.
Parameters:
query (required): The SQL query to executeparameters (optional): Array of parameters for prepared statementsExamples:
-- Simple SELECT
SELECT * FROM users LIMIT 10
-- Prepared statement with parameters
SELECT * FROM users WHERE age > ? AND city = ?
-- Parameters: ["25", "New York"]
-- INSERT with prepared statement
INSERT INTO users (name, email, age) VALUES (?, ?, ?)
-- Parameters: ["John Doe", "[email protected]", "30"]#### 2. mysql_describe_table Get the structure of a specific table.
Parameters:
table_name (required): Name of the table to describe#### 3. mysql_list_tables List all tables in the current database.
Parameters: None
#### 4. mysql_list_databases List all databases accessible to the current user.
Parameters: None
Add this server to your Claude Desktop configuration file:
Windows: %APPDATA%\Claude\claude_desktop_config.json macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"mysql": {
"command": "node",
"args": ["path/to/mysql-mcp/server.js"],
"env": {
"MYSQL_HOST": "localhost",
"MYSQL_PORT": "3306",
"MYSQL_USER": "your_username",
"MYSQL_PASSWORD": "your_password",
"MYSQL_DATABASE": "your_database"
}
}
}
}This server follows the standard MCP protocol and should work with any compatible client. Refer to your client's documentation for configuration details.
.env file with actual credentialsFor security, create a dedicated MySQL user for the MCP server:
-- Create a dedicated user
CREATE USER 'mcp_user'@'localhost' IDENTIFIED BY 'secure_password';
-- Grant necessary permissions (adjust as needed)
GRANT SELECT, INSERT, UPDATE, DELETE ON your_database.* TO 'mcp_user'@'localhost';
-- For read-only access, use only:
-- GRANT SELECT ON your_database.* TO 'mcp_user'@'localhost';
-- Apply changes
FLUSH PRIVILEGES; # Linux/macOS
sudo systemctl status mysql
# Windows (if using MySQL service)
net start mysql SHOW GRANTS FOR 'your_username'@'localhost';.envmysql-mcp/
├── server.js # Main MCP server implementation
├── package.json # Node.js dependencies and scripts
├── .env.example # Environment configuration template
├── .env # Your local configuration (not in git)
├── README.md # This file
└── .gitignore # Git ignore rulesTo add new database tools, extend the setupToolHandlers() method in server.js:
ListToolsRequestSchema handlerCallToolRequestSchema handlerISC License
For issues and questions:
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.