@yuuzu/sql Mcp

by nakiriyuuzu

183 downloads
Not rated
GitHub

About

Set the SQLMCPMODE environment variable to control query permissions. Available modes are safe (default), write, and full. safe mode: allows SELECT, WITH, EXPLAIN (read-only). write mode: adds INSERT, UPDATE, DELETE. full mode: adds CREATE, DROP, ALTER, TRUNCATE. Default mode is…

Details

Author
nakiriyuuzu
Downloads
183
Categories
Database

- safe mode: allows SELECT, WITH, EXPLAIN (read-only).
- write mode: adds INSERT, UPDATE, DELETE.
- full mode: adds CREATE, DROP, ALTER, TRUNCATE.
- Default mode is safe if no variable is set.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name @yuuzu/sql Mcp
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Set the SQL_MCP_MODE environment variable to control query permissions. Available modes are safe (default), write, and full.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "@yuuzu/sql mcp": {
            "sql-mcp": {
                "command": "bunx",
                "args": [
                    "@yuuzu/sql-mcp"
                ],
                "env": {
                    "SQL_MCP_MODE": "safe"
                }
            }
        }
    }
}

McpServers

{
    "sql-mcp": {
        "command": "bunx",
        "args": [
            "@yuuzu/sql-mcp"
        ],
        "env": {
            "SQL_MCP_MODE": "safe"
        }
    }
}

Query Modes

Control query permissions via SQL_MCP_MODE environment variable: | Mode | Allowed Operations | Description | |------|-------------------|-------------| | safe (default) | SELECT, WITH, EXPLAIN | Read-only, safest | | write | + INSERT, UPDATE, DELETE | Allows data modification | | full | + CREATE, DROP, ALTER, TRUNCATE | Full access, use with caution |
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.