Back to Home
UAEpro icon

Dynamic-Smart-MCP

Verified Safe

by UAEpro

Overview

An intelligent FastMCP 2 server that converts natural language questions into SQL queries or API requests for any SQL database or OpenAPI-defined API using AI.

Installation

Run Command
python main.py

Environment Variables

  • LLM_API_KEY
  • DATABASE_URL
  • API_SPEC_URL
  • API_BEARER_TOKEN
  • API_KEY
  • LLM_MODEL
  • LLM_API_BASE
  • LLM_TEMPERATURE
  • LLM_MAX_TOKENS
  • DATABASE_MAX_ROWS
  • SAFETY_READ_ONLY
  • SECURITY_HIDE_DATABASE_DETAILS
  • SECURITY_EXPOSE_SQL
  • SECURITY_EXPOSE_COLUMN_NAMES
  • SECURITY_EXPOSE_TABLE_NAMES
  • SECURITY_LOG_DETAILED_ERRORS

Security Notes

The system implements robust multi-layered security: read-only by default, a comprehensive keyword blacklist (e.g., DROP, DELETE, INSERT), explicit SELECT-only enforcement for SQL, checks for multiple statements to prevent SQL injection, and a ResponseSanitizer that hides database internals (SQL queries, table/column names, detailed errors) from end-users in production mode. API mode includes an `unsafe_mode` flag for allowing non-GET requests, making it a conscious configuration choice rather than an oversight. Secrets are managed via environment variables.

Similar Servers

Stats

Interest Score35
Security Score9
Cost ClassHigh
Avg Tokens4000
Stars3
Forks0
Last Update2025-12-05

Tags

NL2SQLFastMCPAI-poweredSQL-interfaceOpenAPI