Skip to content
tokenlite-mysql-mcp
Install guide · Cursor

Install tokenlite-mysql-mcp for Cursor

Cursor reads ~/.cursor/mcp.json. A project can also commit .cursor/mcp.json.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

  1. Open ~/.cursor/mcp.json on macOS, %USERPROFILE%\.cursor\mcp.json on Windows, or ~/.cursor/mcp.json on Linux.

  2. Paste the JSON config below.

  3. Replace placeholder secrets, then restart the client if it does not reload on its own.

~/.cursor/mcp.json
{  "mcpServers": {    "andezdev-tokenlite-mysql-mcp": {      "command": "npx",      "args": [        "-y",        "@andezdev/tokenlite-mysql-mcp@5.0.0"      ],      "env": {        "DB_HOST": "",        "DB_PORT": "",        "DB_USER": "",        "DB_PASSWORD": "YOUR_DB_PASSWORD",        "DB_NAME": "",        "MCP_EXPLAIN_MAX_SCAN_ROWS": "",        "MCP_QUERY_ROW_LIMIT": "",        "MCP_SAFE_QUERY_MAX_ROWS": "",        "MCP_SAFE_QUERY_ENABLE_BLOCKING": "",        "MCP_METADATA_PATH": "",        "MCP_TEMPLATES_PATH": "",        "TOOL_PREFIX": "",        "MCP_RATE_LIMIT_RPM": "",        "MYSQL_QUERY_TIMEOUT": "",        "MYSQL_CONNECTION_LIMIT": "",        "MYSQL_CONNECT_TIMEOUT": "",        "MYSQL_RETRY_ATTEMPTS": "",        "MYSQL_RETRY_DELAY_MS": "",        "MYSQL_QUEUE_LIMIT": "",        "MCP_DDL_CACHE_TTL": "",        "MCP_LOG_LEVEL": "",        "ALLOW_INSERT_OPERATION": "",        "ALLOW_UPDATE_OPERATION": "",        "ALLOW_DELETE_OPERATION": "",        "ALLOW_DDL_OPERATION": "",        "DB_SSL": "",        "DB_SSL_REJECT_UNAUTHORIZED": ""      }    }  }}

Where the config lives

SystemPath
macOS~/.cursor/mcp.json
Windows%USERPROFILE%\.cursor\mcp.json
Linux~/.cursor/mcp.json