Tokenlite Mysql MCP
io.github.andezdev/tokenlite-mysql-mcp
v5.0.0Updated Nov 20, 2026stdio · npm
A secure, efficient, and intelligent MySQL server for the Model Context Protocol
Install
Replace 1 placeholder with your own values.
Run in your terminal. Replace 1 placeholder.
claude mcp add tokenlite-mysql-mcp -e 'DB_NAME=<your-db-name>' -- npx -y @andezdev/[email protected]Configuration
27 settings.
DB_NAMEEnv var· requiredMySQL Database nameDB_PASSWORDEnv var· optional· secretMySQL Password (defaults to empty string)DB_HOSTEnv var· optionalMySQL Host address (defaults to localhost)DB_PORTEnv var· optionalMySQL Port (defaults to 3306)DB_USEREnv var· optionalMySQL Username (defaults to root)MCP_EXPLAIN_MAX_SCAN_ROWSEnv var· optionalEXPLAIN guardrail: max estimated rows for unindexed full table scans before blocking (defaults to 1000). MCP_SAFE_QUERY_MAX_ROWS is a deprecated alias.
Show 21 moreShow fewer
MCP_QUERY_ROW_LIMITEnv var· optionalMax rows returned per SELECT; injected as LIMIT at the AST level (defaults to 500)MCP_SAFE_QUERY_MAX_ROWSEnv var· optionalDeprecated alias for MCP_EXPLAIN_MAX_SCAN_ROWSMCP_SAFE_QUERY_ENABLE_BLOCKINGEnv var· optionalEnable or disable the EXPLAIN guardrail (defaults to true)MCP_METADATA_PATHEnv var· optionalAbsolute path to your custom metadata.json dictionaryMCP_TEMPLATES_PATHEnv var· optionalAbsolute path to your custom templates.json pre-approved queriesTOOL_PREFIXEnv var· optionalPrefix for tool names, e.g., to run multiple instances (defaults to DB_NAME, e.g. mydb_). Only set to override.MCP_RATE_LIMIT_RPMEnv var· optionalMax tool invocations per minute, sliding window (defaults to 60). Set to 0 to disable.MYSQL_QUERY_TIMEOUTEnv var· optionalMax execution time for a query in milliseconds to protect against DoS (defaults to 15000)MYSQL_CONNECTION_LIMITEnv var· optionalMax concurrent pool connections (defaults to 10)MYSQL_CONNECT_TIMEOUTEnv var· optionalMax time to wait for a connection socket to establish in milliseconds (defaults to 10000)MYSQL_RETRY_ATTEMPTSEnv var· optionalMax retries on transient connection errors (defaults to 3)MYSQL_RETRY_DELAY_MSEnv var· optionalBase delay in milliseconds for exponential backoff between retries (defaults to 1000)MYSQL_QUEUE_LIMITEnv var· optionalMax queued requests when all pool connections are busy to prevent memory leak (defaults to 50)MCP_DDL_CACHE_TTLEnv var· optionalTime-to-live in seconds for cached DDL statements (defaults to 60)MCP_LOG_LEVELEnv var· optionalMinimum severity level for MCP log notifications (defaults to info). Levels: debug, info, notice, warning, error, critical, alert, emergencyALLOW_INSERT_OPERATIONEnv var· optionalEnable INSERT and REPLACE queries (defaults to false)ALLOW_UPDATE_OPERATIONEnv var· optionalEnable UPDATE queries (defaults to false)ALLOW_DELETE_OPERATIONEnv var· optionalEnable DELETE and TRUNCATE queries (defaults to false)ALLOW_DDL_OPERATIONEnv var· optionalEnable Data Definition Language queries like CREATE, ALTER, DROP, RENAME (defaults to false)DB_SSLEnv var· optionalEnable TLS for the MySQL connection (defaults to false)DB_SSL_REJECT_UNAUTHORIZEDEnv var· optionalReject self-signed or untrusted TLS certificates when DB_SSL is true (defaults to true)
Links
Listed in the official MCP Registry since Nov 20, 2026. Mirrored daily; last checked Nov 26, 2026.