File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change
1
+
1
2
# MCP Server for MySQL based on NodeJS
2
3
[ ![ smithery badge] ( https://smithery.ai/badge/@benborla29/mcp-server-mysql )] ( https://smithery.ai/server/@benborla29/mcp-server-mysql )
3
4
@@ -79,6 +80,13 @@ The easiest way to install and configure this MCP server is through [Smithery](h
79
80
``` bash
80
81
npx -y @smithery/cli@latest install @benborla29/mcp-server-mysql --client claude
81
82
```
83
+ -- or --
84
+ if you don't want to use smithery, use this
85
+ ```
86
+ npx mcprunner MYSQL_HOST=127.0.0.1 MYSQL_PORT=3306 MYSQL_USER=root MYSQL_PASS=root MYSQL_DB=demostore ALLOW_INSERT_OPERATION=true ALLOW_UPDATE_OPERATION=true ALLOW_DELETE_OPERATION=false -- npx -y @benborla29/mcp-server-mysql
87
+ ```
88
+ Don't forget to replace the ` env ` values on that command.
89
+
82
90
83
91
During configuration, you'll be prompted to enter your MySQL connection details. Smithery will automatically:
84
92
- Set up the correct environment variables
@@ -489,6 +497,14 @@ echo "$(which node)/../../lib/node_modules"
489
497
```sql
490
498
CREATE USER 'user'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
491
499
```
500
+ @lizhuangs
501
+
502
+ 7 . I am encountering `Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'dotenv' imported from` error
503
+ try this workaround:
504
+ ```bash
505
+ npx -y -p @benborla29/mcp-server-mysql -p dotenv mcp-server-mysql
506
+ ```
507
+ Thanks to @lizhuangs
492
508
493
509
## Contributing
494
510
You can’t perform that action at this time.
0 commit comments