Sakila MCP
v0.2.0Security-first MySQL MCP server: read-only by default, with a fail-closed SQL classifier.
Values you need
| Variable | What it is | |
|---|---|---|
SAKILA_MCP_USER | required | MySQL account name. Give it read-only grants. |
SAKILA_MCP_PASSWORD | optional secret | Password of the MySQL account. Empty if the account has none. |
SAKILA_MCP_HOST | optional | MySQL host. Default: 127.0.0.1 |
SAKILA_MCP_PORT | optional | MySQL port. Default: 3306 |
SAKILA_MCP_DATABASE_ALLOWLIST | optional | Comma-separated databases the agent may query. Empty means every non-system database. |
SAKILA_MCP_ALLOW | optional | Comma-separated capabilities beyond read-only queries. 'procedures' lets the agent call stored procedures that read. Empty by default. |
PyPI (uvx) discovery passed
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add sakila-mcp -e 'SAKILA_MCP_USER=<SAKILA_MCP_USER>' -- uvx sakila-mcp==0.2.0Add to
claude_desktop_config.json{
"mcpServers": {
"sakila-mcp": {
"args": [
"sakila-mcp==0.2.0"
],
"command": "uvx",
"env": {
"SAKILA_MCP_USER": "<SAKILA_MCP_USER>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"sakila-mcp": {
"args": [
"sakila-mcp==0.2.0"
],
"command": "uvx",
"env": {
"SAKILA_MCP_USER": "<SAKILA_MCP_USER>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "SAKILA_MCP_USER",
"id": "sakila-mcp-user",
"password": true,
"type": "promptString"
}
],
"servers": {
"sakila-mcp": {
"args": [
"sakila-mcp==0.2.0"
],
"command": "uvx",
"env": {
"SAKILA_MCP_USER": "${input:sakila-mcp-user}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.sakila-mcp]
command = "uvx"
args = ["sakila-mcp==0.2.0"]
env = { "SAKILA_MCP_USER" = "<SAKILA_MCP_USER>" }For AI agents
- Ask the user for: SAKILA_MCP_USER. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: server_info, list_databases, list_tables, describe_table, run_query, explain_query, list_procedures, call_procedure.
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json