Back to Home
mnfst icon

mcp-server-generator

Verified Safe

by mnfst

Overview

Generate Model Context Protocol (MCP) servers from database datasources for integration with AI agents, using a visual canvas interface for tool creation and management.

Installation

Run Command
npm run dev

Environment Variables

  • DB_HOST
  • DB_PORT
  • DB_USERNAME
  • DB_PASSWORD
  • DB_DATABASE
  • CREDENTIALS_ENCRYPTION_KEY
  • OPENAI_API_KEY
  • MYSQL_ROOT_PASSWORD
  • BACKEND_PORT
  • FRONTEND_PORT
  • VITE_API_BASE_URL
  • NODE_ENV
  • FRONTEND_URL

Security Notes

This is a Proof-Of-Concept application explicitly labeled as 'Work In Progress' and 'Do not use in production'. **Identified Risks for Production Use:** - **No user authentication or authorization:** All API endpoints and generated MCP servers are publicly accessible without any form of access control. - **Broad CORS policy:** `app.enableCors({ origin: true, credentials: true })` is enabled for all origins in `backend/src/main.ts`. - **Limited Input Sanitization:** Explicitly stated in `CONTRIBUTING.md`. - **No Rate Limiting:** API endpoints lack rate limiting, making them vulnerable to abuse. - **Sensitive Data Exposure:** While datasource credentials are encrypted at rest using AES-256 (via `CREDENTIALS_ENCRYPTION_KEY`), they are accessible to any user of the application (due to lack of auth/auth). File resources uploaded to `public/storage` are directly served and exposed via the MCP protocol, potentially risking sensitive file exposure if not carefully managed. **Positive Security Aspects for POC:** - **Password Encryption:** Datasource passwords are encrypted at rest using a key from environment variables. - **SQL Injection Prevention:** The `QueryGenerationService` explicitly validates that generated SQL queries are `SELECT`-only. The `ToolsService` uses `mysql2/promise` with parameterized queries (`connection.execute(query, values)`) to prevent SQL injection during tool execution. - **Transparent Disclosure:** The project's documentation clearly outlines its security limitations for a POC.

Similar Servers

Stats

Interest Score58
Security Score4
Cost ClassMedium
Avg Tokens3000
Stars3
Forks0
Last Update2025-11-26

Tags

MCPAI AgentsDatabase IntegrationServer GenerationVisual WorkflowNode.jsReact