Back to Home
useweeknight icon

mcp-server

Verified Safe

by useweeknight

Overview

A Node.js Express backend API server for a dinner planning application, integrating with Supabase for data persistence and OpenAI for advanced features like intent normalization and Realtime API access.

Installation

Run Command
node server.js

Environment Variables

  • SUPABASE_URL
  • SUPABASE_SERVICE_ROLE_KEY
  • OPENAI_API_KEY
  • CORS_ORIGINS
  • OPENAI_MODEL
  • OPENAI_REALTIME_MODEL
  • OPENAI_VISION_MODEL
  • PORT

Security Notes

The server demonstrates good security practices including strict CORS policies, the use of Bearer tokens without 'Allow-Credentials', role-based access control for all admin APIs, and fetching sensitive keys from environment variables. Database interactions leverage Supabase client, mitigating direct SQL injection risks. Input validation is present for key routes. A minor point is the use of `JSON.parse` on data from external services (OpenAI responses, Supabase DB feature flags), which relies on the external service's guarantee of valid JSON output. No 'eval' or malicious patterns were found.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassHigh
Avg Tokens750
Stars0
Forks0
Last Update2025-12-02

Tags

Node.jsExpressSupabaseAIAPI