Sakila MCP

v0.2.0
io.github.pantoniades/sakila-mcp Checked 2 days ago Published 8 days ago

Security-first MySQL MCP server: read-only by default, with a fail-closed SQL classifier.

Values you need

VariableWhat it is
SAKILA_MCP_USERrequired MySQL account name. Give it read-only grants.
SAKILA_MCP_PASSWORDoptional secret Password of the MySQL account. Empty if the account has none.
SAKILA_MCP_HOSToptional MySQL host. Default: 127.0.0.1
SAKILA_MCP_PORToptional MySQL port. Default: 3306
SAKILA_MCP_DATABASE_ALLOWLISToptional Comma-separated databases the agent may query. Empty means every non-system database.
SAKILA_MCP_ALLOWoptional 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.0
Add 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

  1. Ask the user for: SAKILA_MCP_USER. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: server_info, list_databases, list_tables, describe_table, run_query, explain_query, list_procedures, call_procedure.
  5. 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