Back to Home
Vanblerkh icon

mcp-test

Verified Safe

by Vanblerkh

Overview

Provides a RESTful API for basic user management and fetching context data, likely for an application's backend.

Installation

Run Command
npm install && npm run deploybuild && node dist/index.js

Environment Variables

  • PORT
  • DB_SECRETS_PATH
  • DB_HOST
  • DB_USER
  • DB_PASSWORD
  • DB_NAME
  • DB_CONNECTION_LIMIT

Security Notes

The server correctly uses parameterized queries via the `mysql2` library, which is crucial for preventing SQL injection vulnerabilities. However, the handling of `password_hash` in `addUser` and `modifyUser` is ambiguous; the server directly stores the received hash without explicitly demonstrating strong server-side hashing (e.g., bcrypt, scrypt) and salting. If plain text passwords or weakly hashed passwords are sent from the client, they would be stored as such, posing a significant risk. Additionally, the server uses open CORS (accepts requests from any origin), which can be a security risk in production environments if not restricted to specific trusted origins.

Similar Servers

Stats

Interest Score0
Security Score6
Cost ClassLow
Avg Tokens300
Stars0
Forks0
Last Update2025-12-02

Tags

APIRESTUser ManagementNode.jsExpress.jsMySQL