{"versions":{"1.0.0":{"name":"@nilsir/mcp-server-mysql","version":"1.0.0","description":"MCP server for MySQL database operations","main":"dist/index.js","type":"module","bin":{"mcp-server-mysql":"dist/index.js"},"scripts":{"build":"tsc","dev":"tsc --watch","start":"node dist/index.js","prepublishOnly":"npm run build"},"keywords":["mcp","mysql","database","claude","ai"],"author":"","license":"MIT","repository":{"type":"git","url":""},"dependencies":{"@modelcontextprotocol/sdk":"^1.24.3","mysql2":"^3.15.3","zod":"^4.1.13"},"devDependencies":{"@types/node":"^24.10.1","typescript":"^5.9.3"},"gitHead":"f0c521d3a31648d0bb9cdd944f05be603563ea83","types":"./dist/index.d.ts","_id":"@nilsir/mcp-server-mysql@1.0.0","_nodeVersion":"22.21.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-QDfrf1QiFObWK6pxWAp3+5FR1KTEHQcDMZc36R2Ofcu1VbOhhSA2C1b///AweoTuIGZ6A9U0eLPJNJEkLonBTQ==","shasum":"449d0b41464eaeb50655ed7902ded9a35f677b18","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@nilsir/mcp-server-mysql/-/mcp-server-mysql-1.0.0.tgz","fileCount":4,"unpackedSize":29156,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHGzgPVG/m+UmSRhydThUe1scd/SRT1bV9fYDCCTbkVXAiBP1OuQ6TZvL7icAzx0eH2pevNWdT1C8WpXOc8Lqr2Ofw=="}],"size":5101},"_npmUser":{"name":"anonymous","email":"nilsir@qq.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"nilsir@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp-server-mysql_1.0.0_1764901606621_0.5981287402754965"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-05T02:26:46.752Z","publish_time":1764901606752,"_source_registry_name":"default","contributors":[]},"1.0.1":{"name":"@nilsir/mcp-server-mysql","version":"1.0.1","description":"MCP server for MySQL database operations","main":"dist/index.js","type":"module","bin":{"mcp-server-mysql":"dist/index.js"},"scripts":{"build":"tsc","dev":"tsc --watch","start":"node dist/index.js","prepublishOnly":"npm run build"},"keywords":["mcp","mysql","database","claude","ai"],"author":"","license":"MIT","repository":{"type":"git","url":""},"dependencies":{"@modelcontextprotocol/sdk":"^1.24.3","mysql2":"^3.15.3","zod":"^4.1.13"},"devDependencies":{"@types/node":"^24.10.1","typescript":"^5.9.3"},"gitHead":"5bac725083b445303e494f78d321bc36ea23fa9c","types":"./dist/index.d.ts","_id":"@nilsir/mcp-server-mysql@1.0.1","_nodeVersion":"22.21.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-egzliQDJ+rfSJw+H1yxX8TF28VzTkHrIsLhUgx47Mwd4GMohPsvGS7nszc2F5xTSlRcPJGSIPNv2Al89gL2+yA==","shasum":"a94255a8ba68df7ca904150231f89dd3913185be","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@nilsir/mcp-server-mysql/-/mcp-server-mysql-1.0.1.tgz","fileCount":4,"unpackedSize":29154,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDPS48V05Eya2/7yCKn3VGmUQcW5Z8dtADLCccg4jLdaAIgca+JY3TSXJHxniHkh7tsG6R7bFJh+W+kwoAqK3XHFQw="}],"size":5095},"_npmUser":{"name":"anonymous","email":"nilsir@qq.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"nilsir@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp-server-mysql_1.0.1_1764901827116_0.7980816069212469"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-05T02:30:27.269Z","publish_time":1764901827269,"_source_registry_name":"default","contributors":[]},"1.0.2":{"name":"@nilsir/mcp-server-mysql","version":"1.0.2","description":"MCP server for MySQL database operations","main":"dist/index.js","type":"module","bin":{"mcp-server-mysql":"dist/index.js"},"scripts":{"build":"tsc","dev":"tsc --watch","start":"node dist/index.js","prepublishOnly":"npm run build"},"keywords":["mcp","mysql","database","claude","ai"],"author":"","license":"MIT","repository":{"type":"git","url":"git+https://github.com/nilsir/mcp-server-mysql.git"},"homepage":"https://github.com/nilsir/mcp-server-mysql#readme","bugs":{"url":"https://github.com/nilsir/mcp-server-mysql/issues"},"dependencies":{"@modelcontextprotocol/sdk":"^1.24.3","mysql2":"^3.15.3","zod":"^4.1.13"},"devDependencies":{"@types/node":"^24.10.1","typescript":"^5.9.3"},"gitHead":"d661eaf907787ef92324813218d343001d44752d","types":"./dist/index.d.ts","_id":"@nilsir/mcp-server-mysql@1.0.2","_nodeVersion":"22.21.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-BZ4g7e1+WFaNb3oIzkTX8OhOQwTXGpgjJKhjX96ISzkphD6yU7tD4o8TBXy2S1EFeSK0ZXVWaI6Z3Lo+ZvOZBA==","shasum":"6e3be1195c3eeeb6694d8c818567551dfc20657d","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@nilsir/mcp-server-mysql/-/mcp-server-mysql-1.0.2.tgz","fileCount":4,"unpackedSize":29351,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDC+1URF2Xr4ZyWSCLaPUGVYISVTj/PUySdZa8JLGhonAIgUxTFK6Sovy9exI7B9MaQRyso81ur96f+VeQxMvkG1LQ="}],"size":5144},"_npmUser":{"name":"anonymous","email":"nilsir@qq.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"nilsir@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp-server-mysql_1.0.2_1764902411719_0.7282752375995296"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-05T02:40:11.864Z","publish_time":1764902411864,"_source_registry_name":"default","contributors":[]},"1.0.3":{"name":"@nilsir/mcp-server-mysql","version":"1.0.3","description":"MCP server for MySQL database operations","main":"dist/index.js","type":"module","bin":{"mcp-server-mysql":"dist/index.js"},"scripts":{"build":"tsc","dev":"tsc --watch","start":"node dist/index.js","prepublishOnly":"npm run build"},"keywords":["mcp","mysql","database","claude","ai"],"author":"","license":"MIT","repository":{"type":"git","url":"git+https://github.com/nilsir/mcp-server-mysql.git"},"homepage":"https://github.com/nilsir/mcp-server-mysql#readme","bugs":{"url":"https://github.com/nilsir/mcp-server-mysql/issues"},"dependencies":{"@modelcontextprotocol/sdk":"^1.24.3","mysql2":"^3.15.3","zod":"^4.1.13"},"devDependencies":{"@types/node":"^24.10.1","typescript":"^5.9.3"},"gitHead":"86764ca14038d177056aa97d9c0069ec9d4eeace","types":"./dist/index.d.ts","_id":"@nilsir/mcp-server-mysql@1.0.3","_nodeVersion":"22.21.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-JBR5S+QSGG4v+eADyoHFJzUE2r6PZYymG+ge817yb3/erg4WZlAzbwu+IwJrp2jJpy7h0VfVvtstO51IYqG1Gw==","shasum":"4c5d16fa5a07258ceb7e12e58702e7377a917fbd","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@nilsir/mcp-server-mysql/-/mcp-server-mysql-1.0.3.tgz","fileCount":4,"unpackedSize":29351,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCnRbYMqXTcbNE9RVxVfm3D2CWOMGzGUjqdVSJNckHiIQIhAM17/JDxKYygv0ik5zWs4qGRBmxlTUpWkQgR6k4Zb4ue"}],"size":5144},"_npmUser":{"name":"anonymous","email":"nilsir@qq.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"nilsir@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp-server-mysql_1.0.3_1764902809770_0.055464912177415115"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-05T02:46:49.900Z","publish_time":1764902809900,"_source_registry_name":"default","contributors":[]},"1.1.0":{"name":"@nilsir/mcp-server-mysql","version":"1.1.0","description":"MCP server for MySQL database operations","main":"dist/index.js","type":"module","bin":{"mcp-server-mysql":"dist/index.js"},"scripts":{"build":"tsc","dev":"tsc --watch","start":"node dist/index.js","prepublishOnly":"npm run build"},"keywords":["mcp","mysql","database","claude","ai"],"author":"","license":"MIT","repository":{"type":"git","url":"git+https://github.com/nilsir/mcp-server-mysql.git"},"homepage":"https://github.com/nilsir/mcp-server-mysql#readme","bugs":{"url":"https://github.com/nilsir/mcp-server-mysql/issues"},"dependencies":{"@modelcontextprotocol/sdk":"^1.24.3","mysql2":"^3.15.3","zod":"^4.1.13"},"devDependencies":{"@types/node":"^24.10.1","typescript":"^5.9.3"},"gitHead":"7b1d8ea5120e703c83e48486b8163c2db5bca9b6","types":"./dist/index.d.ts","_id":"@nilsir/mcp-server-mysql@1.1.0","_nodeVersion":"22.21.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-nI+rG34FOTJzTb2ce4J/bAWR2QM4cMoBafRZhRYDHH4DpuVqMSJmk4eAV+AKL/k4szlDTyhuDcmyT2nywj2Q0w==","shasum":"434bc409c8d7decb85441f4850e0fef75d1b8dca","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@nilsir/mcp-server-mysql/-/mcp-server-mysql-1.1.0.tgz","fileCount":4,"unpackedSize":21977,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCJ1kUeSOtYVyrfhP7MWpkZNXelRC988mhsthOfIKGNvwIhAJbmtqmXB42QJHqgbYXjDjKemR1RFELvilF68Q6YoyaW"}],"size":5358},"_npmUser":{"name":"anonymous","email":"nilsir@qq.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"nilsir@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp-server-mysql_1.1.0_1764904796844_0.0015724888804722337"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-05T03:19:57.023Z","publish_time":1764904797023,"_source_registry_name":"default","contributors":[]},"1.1.1":{"name":"@nilsir/mcp-server-mysql","version":"1.1.1","description":"MCP server for MySQL database operations","main":"dist/index.js","type":"module","bin":{"mcp-server-mysql":"dist/index.js"},"scripts":{"build":"tsc","dev":"tsc --watch","start":"node dist/index.js","prepublishOnly":"npm run build"},"keywords":["mcp","mysql","database","claude","ai"],"author":"","license":"MIT","repository":{"type":"git","url":"git+https://github.com/nilsir/mcp-server-mysql.git"},"homepage":"https://github.com/nilsir/mcp-server-mysql#readme","bugs":{"url":"https://github.com/nilsir/mcp-server-mysql/issues"},"dependencies":{"@modelcontextprotocol/sdk":"^1.24.3","mysql2":"^3.15.3","zod":"^4.1.13"},"devDependencies":{"@types/node":"^24.10.1","typescript":"^5.9.3"},"gitHead":"01f1c46d9a54fc35152c498400e5d2e20a40f0d5","types":"./dist/index.d.ts","_id":"@nilsir/mcp-server-mysql@1.1.1","_nodeVersion":"22.21.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-CcLStODOyWCN2mK5Muv1LqVEClTQ+ssl1t8zDnC1iphfcknmcrCwV1DfAub8QRaVyu7VNKJotrfgomqXqNzZ8Q==","shasum":"dc5a64660c4d0d1955c9a15bb22a089f4b59e33c","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@nilsir/mcp-server-mysql/-/mcp-server-mysql-1.1.1.tgz","fileCount":4,"unpackedSize":22560,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHeamvooMV4y3W1WzkJ/mAG0+vURH/o/N45vjVLEpyK/AiEA/Gh3yVxHbZyhTI3dAXBJNKHBhH+942WqC/v/d1UgFtM="}],"size":5595},"_npmUser":{"name":"anonymous","email":"nilsir@qq.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"nilsir@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp-server-mysql_1.1.1_1765184520791_0.3782734321816732"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-08T09:02:00.925Z","publish_time":1765184520925,"_source_registry_name":"default","contributors":[]},"2.0.0":{"name":"@nilsir/mcp-server-mysql","version":"2.0.0","description":"MCP server for MySQL database operations","main":"dist/index.js","type":"module","bin":{"mcp-server-mysql":"dist/index.js"},"scripts":{"build":"tsc","dev":"tsc --watch","test":"npm run build && node --test tests/*.test.js","start":"node dist/index.js","prepublishOnly":"npm run build"},"keywords":["mcp","mysql","database","claude","ai"],"author":"","license":"MIT","repository":{"type":"git","url":"git+https://github.com/nilsir/mcp-server-mysql.git"},"homepage":"https://github.com/nilsir/mcp-server-mysql#readme","bugs":{"url":"https://github.com/nilsir/mcp-server-mysql/issues"},"dependencies":{"@modelcontextprotocol/sdk":"^1.24.3","mysql2":"^3.15.3","zod":"^4.1.13"},"devDependencies":{"@types/node":"^24.10.1","typescript":"^5.9.3"},"gitHead":"b6f6df46445754b1e8ce89d2166ab88a91e7f05d","types":"./dist/index.d.ts","_id":"@nilsir/mcp-server-mysql@2.0.0","_nodeVersion":"24.13.0","_npmVersion":"11.7.0","dist":{"integrity":"sha512-NSEj1njEt3aGlFyQdqlBVk/8aApufgq7SjiPrSO72WADYLxlJM0T1WFI2WAsixd5cRMJALlap5X12Z4mZSX+vg==","shasum":"c25ea45ffbe64db079461829f38d1861f37d7fea","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@nilsir/mcp-server-mysql/-/mcp-server-mysql-2.0.0.tgz","fileCount":14,"unpackedSize":53096,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCl19rtGXtGcqDEGNuO63XZ0Wb5FG3jnG71XXFIvaFPagIhAJanBQnwpUeZShKjeDjdZ0WPLMnPswkSXHQ42pit9Z2I"}],"size":12978},"_npmUser":{"name":"anonymous","email":"nilsir@qq.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"nilsir@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp-server-mysql_2.0.0_1779954274948_0.446012050321424"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-05-28T07:44:35.152Z","publish_time":1779954275152,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"2.0.0"},"name":"@nilsir/mcp-server-mysql","time":{"created":"2025-12-05T02:26:59.095Z","modified":"2026-05-28T07:44:50.940Z","1.0.0":"2025-12-05T02:26:46.752Z","1.0.1":"2025-12-05T02:30:27.269Z","1.0.2":"2025-12-05T02:40:11.864Z","1.0.3":"2025-12-05T02:46:49.900Z","1.1.0":"2025-12-05T03:19:57.023Z","1.1.1":"2025-12-08T09:02:00.925Z","2.0.0":"2026-05-28T07:44:35.152Z"},"readme":"# MCP Server MySQL\n\nA Model Context Protocol (MCP) server that provides MySQL database operations. This server enables LLMs to interact with MySQL databases through a standardized protocol.\n\n## Features\n\n- **Database Management**: Create, drop, list, and switch databases\n- **Table Operations**: Create, alter, drop, describe, and list tables\n- **Data Queries**: Execute SELECT queries and retrieve results\n- **Data Modification**: Execute INSERT, UPDATE, DELETE statements\n- **Index Management**: Create and drop indexes\n\n## Installation\n\n```bash\nnpm install\nnpm run build\n```\n\n## Configuration\n\nSet environment variables for database connection:\n\n```bash\nexport MYSQL_HOST=localhost\nexport MYSQL_PORT=3306\nexport MYSQL_USER=root\nexport MYSQL_PASSWORD=your-password\nexport MYSQL_DATABASE=your-database  # optional\n```\n\n### Safety and Permission Controls\n\nThe server defaults to read-only mode. Enable write or schema operations explicitly:\n\n```bash\nexport MYSQL_MODE=readonly       # readonly | data-write | schema-write | admin\nexport MYSQL_ALLOW_DDL=false     # Set to \"true\" to enable schema/admin tools\nexport MYSQL_MAX_ROWS=100        # Optional cap for query result rows\n```\n\nLegacy data-write controls are still supported and are enforced when `MYSQL_MODE`\nallows data writes:\n\n```bash\nexport MYSQL_ALLOW_INSERT=true   # Set to \"false\" to disable INSERT\nexport MYSQL_ALLOW_UPDATE=true   # Set to \"false\" to disable UPDATE\nexport MYSQL_ALLOW_DELETE=false  # Set to \"false\" to disable DELETE\n```\n\nOr use the `connect` tool at runtime to specify connection parameters.\n\nHigh-risk DDL tools require a `confirm` parameter that matches the target name:\n\n- `alter_table`: `confirm` must match the table name\n- `drop_table`: `confirm` must match the table name\n- `drop_database`: `confirm` must match the database name\n- `drop_index`: `confirm` must match the index name\n\nFor AI-assisted development, prefer least-privilege MySQL users. Use a read-only\ndatabase account for exploration and enable `MYSQL_MODE=data-write`,\n`MYSQL_MODE=schema-write`, or `MYSQL_MODE=admin` only for trusted workflows.\n\n## Supported AI Applications\n\nThis MCP server can be used with any application that supports the Model Context Protocol (MCP):\n\n- **[Claude Desktop](https://claude.ai/download)** - Anthropic's official desktop application\n- **[Claude Code](https://github.com/anthropics/claude-code)** - Anthropic's official CLI tool for developers\n- **[Cline](https://github.com/cline/cline)** - AI coding assistant VS Code extension\n- **[Zed](https://zed.dev/)** - High-performance code editor with built-in AI\n- **Any MCP-compatible application** - MCP is an open protocol developed by Anthropic\n\n## Usage with Claude Desktop\n\n### Using npx (Recommended)\n\nAdd to your `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"mysql\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@nilsir/mcp-server-mysql\"],\n      \"env\": {\n        \"MYSQL_HOST\": \"localhost\",\n        \"MYSQL_PORT\": \"3306\",\n        \"MYSQL_USER\": \"root\",\n        \"MYSQL_PASSWORD\": \"your-password\",\n        \"MYSQL_DATABASE\": \"your-database\",\n        \"MYSQL_MODE\": \"readonly\",\n        \"MYSQL_ALLOW_DDL\": \"false\",\n        \"MYSQL_ALLOW_INSERT\": \"true\",\n        \"MYSQL_ALLOW_UPDATE\": \"true\",\n        \"MYSQL_ALLOW_DELETE\": \"false\",\n        \"MYSQL_MAX_ROWS\": \"100\"\n      }\n    }\n  }\n}\n```\n\n### Using Local Installation\n\n```json\n{\n  \"mcpServers\": {\n    \"mysql\": {\n      \"command\": \"node\",\n      \"args\": [\"/absolute/path/to/mcp-server-mysql/dist/index.js\"],\n      \"env\": {\n        \"MYSQL_HOST\": \"localhost\",\n        \"MYSQL_PORT\": \"3306\",\n        \"MYSQL_USER\": \"root\",\n        \"MYSQL_PASSWORD\": \"your-password\",\n        \"MYSQL_DATABASE\": \"your-database\",\n        \"MYSQL_MODE\": \"readonly\",\n        \"MYSQL_ALLOW_DDL\": \"false\",\n        \"MYSQL_ALLOW_INSERT\": \"true\",\n        \"MYSQL_ALLOW_UPDATE\": \"true\",\n        \"MYSQL_ALLOW_DELETE\": \"false\",\n        \"MYSQL_MAX_ROWS\": \"100\"\n      }\n    }\n  }\n}\n```\n\n## Available Tools\n\n| Tool | Description |\n|------|-------------|\n| `connect` | Connect to a MySQL database |\n| `query` | Execute SELECT queries |\n| `explain_query` | Run EXPLAIN for a single SELECT query |\n| `execute` | Execute INSERT/UPDATE/DELETE queries when policy allows |\n| `dry_run_execute` | Execute INSERT/UPDATE/DELETE in a transaction and roll it back |\n| `list_databases` | List all databases |\n| `list_tables` | List tables in a database |\n| `describe_table` | Get table structure |\n| `inspect_schema` | Inspect tables, columns, and indexes for AI context |\n| `find_tables` | Find tables by table or column name |\n| `sample_rows` | Read a capped sample of rows from a table |\n| `create_table` | Create a new table |\n| `alter_table` | Modify table structure |\n| `drop_table` | Drop a table |\n| `create_database` | Create a new database |\n| `drop_database` | Drop a database |\n| `use_database` | Switch to a database |\n| `create_index` | Create an index |\n| `drop_index` | Drop an index |\n\n## Examples\n\n### Query data\n```\nUse the query tool with sql: \"SELECT * FROM users WHERE active = ?\"\nand params: [true]\n```\n\n### Analyze a SELECT query plan\n```\nUse the explain_query tool with:\n- sql: \"SELECT * FROM users WHERE email = ?\"\n- params: [\"user@example.com\"]\n- format: \"traditional\"\n```\n\n`explain_query` only accepts one SELECT statement. Use `format: \"json\"` when an\nAI-readable JSON plan is more useful.\n\n### Create a table\n```\nUse the create_table tool with:\n- table: \"users\"\n- columns: [\n    {\"name\": \"id\", \"type\": \"INT\", \"primaryKey\": true, \"autoIncrement\": true},\n    {\"name\": \"email\", \"type\": \"VARCHAR(255)\", \"nullable\": false},\n    {\"name\": \"created_at\", \"type\": \"TIMESTAMP\", \"default\": \"CURRENT_TIMESTAMP\"}\n  ]\n```\n\n### Inspect schema for AI context\n```\nUse the inspect_schema tool with:\n- database: \"nilsir\"\n- includeColumns: true\n- includeIndexes: true\n```\n\n### Find likely tables or columns\n```\nUse the find_tables tool with:\n- database: \"nilsir\"\n- term: \"user\"\n```\n\n### Sample rows safely\n```\nUse the sample_rows tool with:\n- database: \"nilsir\"\n- table: \"users\"\n- limit: 5\n```\n\nSampling is read-only and capped at 50 rows.\n\n### Insert data\n```\nUse the execute tool with sql: \"INSERT INTO users (email) VALUES (?)\"\nand params: [\"user@example.com\"]\n```\n\nRequires `MYSQL_MODE=data-write` or higher.\n\n### Dry-run a data change\n```\nUse the dry_run_execute tool with sql: \"UPDATE users SET active = ? WHERE id = ?\"\nand params: [false, 123]\n```\n\nThe statement runs inside a transaction and is rolled back before returning.\n\n### Drop a table\n```\nUse the drop_table tool with:\n- table: \"users\"\n- confirm: \"users\"\n```\n\nRequires `MYSQL_MODE=schema-write` or `MYSQL_MODE=admin` and\n`MYSQL_ALLOW_DDL=true`.\n\n## Development\n\n```bash\nnpm install\nnpm run build\nnpm test\n```\n\nIntegration coverage for dry-run rollback is opt-in because it needs a real test\ndatabase:\n\n```bash\nMYSQL_INTEGRATION_TEST=true npm test\n```\n\n## License\n\nMIT","users":{}}