Smart MCP Server
Enables natural language querying of MariaDB databases, allowing users to ask questions in plain English and receive results from the database.
Enables natural language querying of MySQL databases, allowing users to ask questions in plain English and receive results from the database.
Provides natural language to SQL conversion using OpenAI's API, enabling the server to interpret user questions and generate SQL queries.
Enables natural language querying of PostgreSQL databases, allowing users to ask questions in plain English and receive results from the database.
Enables natural language querying of SQLite databases, allowing users to ask questions in plain English and receive results from the database.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Smart MCP ServerShow me the top 10 products by sales"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Smart MCP Server 🚀
Intelligent SQL Database Interface with Natural Language Support
A production-ready FastMCP 2 server that connects to any SQL database (MySQL, PostgreSQL, SQLite, SQL Server, Oracle, etc.) and converts natural language questions into SQL queries using AI.
✨ Features
🔌 Universal Database Support: MySQL, PostgreSQL, SQLite, SQL Server, Oracle, MariaDB
🧠 Natural Language to SQL: Ask questions in plain English, get SQL results
🔍 Auto-Schema Detection: Automatically scans and understands your database structure
🛡️ Safety First: Read-only by default, blocks dangerous operations
⚡ FastMCP 2 Powered: Modern, efficient MCP server implementation
🎯 Zero Configuration: Works with any schema without prior setup
🔧 Extensible: Clean, documented code for easy customization
Related MCP server: PostgreSQL MCP Server
📚 Documentation
All documentation is organized in the docs/ folder with priority numbers for easy reading order.
Quick Links:
docs/00_READ_ME_FIRST.md - 📖 Start here!
docs/01_QUICKSTART.md - 🚀 Get running in 5 minutes
docs/02_DATABASE_DOCUMENTATION_GUIDE.md - Document your DB for better queries
docs/03_PRODUCTION_SECURITY.md - 🔒 Security guide (CRITICAL)
→ See docs/00_READ_ME_FIRST.md for complete reading order
🚀 Quick Start
1. Crate Environment
python3 -m venv .venvOn Linux/Mac:
source .venv/bin/activateOn Windows:
.venv\Scripts\activate2. Install Dependencies
pip install -r requirements.txt3. Edit config.yaml with LLM connector and Database Connector
you can also setup the key from .env file
4. Run the automatic database Schema generator
python generate_schema.py5. Run the Server
python main.pyyou might need to edit the main.py in the main function to change the MCP starting protocol
🎯 Example Queries
Try these natural language questions:
"Show me all customers"
"What are the top 5 most expensive products?"
"Show me orders with customer names"
"What is the total revenue by category?"
"List customers who placed orders in the last 30 days"🛠️ Tech Stack
FastMCP 2 - MCP server framework
SQLAlchemy 2.x - Universal database adapter
OpenAI API - Natural language processing
Python 3.8+ - Core language
📦 Project Structure
SmartMCP/
├── main.py # Server entry point
├── config.yaml # Configuration
├── requirements.txt # Dependencies
├── example_database.py # Sample data generator
├── test_setup.py # Setup verification
├── db/adapter.py # Database connector
├── nlp/query_parser.py # NL to SQL parser
├── mcp/tools.py # MCP tool definitions
└── utils/schema.py # Schema utilities🎓 Learn More
QUICKSTART.md - Step-by-step setup guide
ARCHITECTURE.md - System design deep dive
PROJECT_SUMMARY.md - Complete feature list
README.md - Full documentation with examples
🔒 Safety Features
✅ Read-only by default
✅ Keyword blacklist (DROP, DELETE, etc.)
✅ SQL injection prevention
✅ Row limits (max 1000 per query)
✅ Environment variable for secrets
📝 License
MIT License - Free to use, modify, and distribute!
Built with ❤️ and AI :P for the MCP community
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/UAEpro/Dynamic-Smart-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server