
This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

QueryAI is an AI-powered database intelligence platform that converts plain-English questions into SQL, backed by a FastMCP server with 17 tools for querying, exporting, scheduling, and analytics.
QueryAI - natural language to SQL database assistant with an MCP server is cataloged as an MCP server attributed to michdriod. QueryAI is an AI-powered database intelligence platform that converts plain-English questions into SQL, backed by a FastMCP server with 17 tools for querying, exporting, scheduling, and analytics. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for QueryAI - natural language to SQL database assistant with an MCP server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Yes. QueryAI includes a FastMCP server exposing 17 database-related tools, such as query, export, schedule, and analytics.
It targets PostgreSQL and uses Groq's Llama 3.3 70B model for query generation.
README.md · dff7468eaaf5 · 采集于 2026-11-13 12:52:11 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
🚀 Enterprise-grade AI-powered database query platform that transforms natural language into SQL queries with automated reporting and email delivery. Built with Pydantic AI, FastMCP, React, and PostgreSQL for production-ready database intelligence.
QueryAI is a complete AI-powered database intelligence platform that we've successfully developed from the ground up:
QueryAI implements a modern, scalable architecture designed for enterprise workloads:
🌐 React Frontend (Port 8081)
↓ REST API
🔄 FastAPI Server (Port 8000)
↓ MCP Protocol
🤖 AI Engine (Pydantic AI + Groq)
↓ FastMCP Server
📊 17 MCP Tools (Query, Export, Schedule, Analytics)
↓
🗄️ PostgreSQL Database + ⚡ Redis Cache
↓
📧 Email Service (Gmail SMTP) + 📅 Cron Scheduler
QueryAI follows a clean, modular architecture with clear separation of concerns:
QueryAI/
├── 🎨 frontend/ # React Frontend Application
│ ├── src/
│ │ ├── components/ # Reusable UI components
│ │ ├── pages/ # Main application pages
│ │ ├── services/ # API integration layer
│ │ ├── hooks/ # Custom React hooks
│ │ └── utils/ # Helper functions
│ ├── package.json # Frontend dependencies
│ └── vite.config.js # Vite build configuration
│
├── 🚀 server/ # Backend API & MCP Server
│ ├── db/ # Database layer (SQLAlchemy async)
│ │ ├── models.py # Database models with timezone fixes
│ │ └── connection.py # Async connection pooling
│ ├── cache/ # Redis caching system
│ ├── auth/ # RBAC & security layer
│ ├── query/ # AI query processing
│ │ ├── query_executor.py # SQL execution engine
│ │ └── validator.py # SQL validation & security
│ ├── tools/ # Data processing tools
│ │ ├── exporters.py # Multi-format export (CSV, Excel, PDF)
│ │ ├── chart_generator.py # Dynamic chart generation
│ │ └── history.py # Query history management
│ ├── scheduler/ # Email & scheduling system
│ │ ├── email_sender.py # Gmail SMTP integration
│ │ └── report_scheduler.py # Cron-based scheduling
│ ├── monitoring/ # Health checks & logging
│ │ ├── health.py # System health endpoints
│ │ └── logging.py # Structured logging
│ ├── api_server.py # FastAPI REST server
│ └── mcp_server.py # FastMCP server (17 tools)
│
├── 🔧 client/ # Client interfaces & examples
│ ├── mcp_client.py # Python API wrapper
│ ├── cli.py # Rich CLI interface
│ └── examples/ # Complete usage examples
│
├── 🔗 shared/ # Shared configuration
│ └── config.py # Environment & email config
│
├── 📋 Documentation
│ ├── CLIENT_GUIDE.md # Comprehensive API docs
│ └── README.md # This file
│
└── ⚙️ Configuration
├── .env # Environment variables
├── pyproject.toml # Python dependencies
├── package.json # Project metadata
└── start_api.sh # Server startup script
Get QueryAI up and running in minutes with our streamlined setup process:
Ensure you have the following installed on your system:
Clone and set up QueryAI in 3 simple commands:
# 📥 Clone the repository
git clone https://github.com/Michdriod/mcp-server-client.git
cd mcp-server-client
# 🐍 Set up Python environment
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -e .
# 📦 Install frontend dependencies
cd frontend
npm install
cd ..
Create your environment configuration file:
# 📝 Create .env file with your settings
cat > .env << EOF
# 🗄️ Database Configuration
DATABASE_URL=postgresql+asyncpg://postgres:michwaleh@localhost/Mcp
DATABASE_POOL_SIZE=20
DATABASE_MAX_OVERFLOW=40
# ⚡ Redis Configuration
REDIS_URL=redis://localhost:6379/0
REDIS_MAX_CONNECTIONS=50
# 🤖 AI Configuration
GROQ_API_KEY=your_groq_api_key_here
LLM_MODEL=groq:llama-3.3-70b-versatile
# 📧 Email Configuration (Optional - for scheduled reports)
EMAIL_FROM_NAME=Database Query Assistant
EMAIL_FROM_ADDRESS=your-email@gmail.com
EMAIL_HOST=smtp.gmail.com
EMAIL_PORT=587
EMAIL_USE_TLS=true
EMAIL_USERNAME=your-email@gmail.com
EMAIL_PASSWORD=your-gmail-app-password
EOF
⚠️ Important Notes:
your_groq_api_key_here with your actual Groq API key# Run the provided SQL script in pgAdmin or psql
# Creates 11 tables with sample data
Start all components in the correct order for optimal performance:
redis-server
Enables lightning-fast query caching and session management
chmod +x start_api.sh
./start_api.sh
✅ Success indicators:
🚀 Starting Database Query Assistant API Server...
✅ Environment variables loaded
✅ Redis is running - caching enabled
✅ MCP client connected and ready
INFO: Uvicorn running on http://0.0.0.0:8000
cd frontend
npm run dev
✅ Success indicators:
VITE v5.4.21 ready in 234 ms
➜ Local: http://localhost:8081/
➜ Network: use --host to expose
Open your browser and navigate to:
http://localhost:8081http://localhost:8000/docshttp://localhost:8000/healthQueryAI Dashboard Features:
CLI Interface:
# Quick query
python client/cli.py query "Show me the top 5 customers"
# Interactive mode
python client/cli.py interactive
Python API:
# Run example script
python client/examples/basic_query.py
QueryAI was built through a systematic, iterative development process over multiple phases:
Command-line interface for power users and automation.
# Query database
python client/cli.py query "Show top 5 customers"
# Interactive mode
python client/cli.py interactive
# Export data
python client/cli.py export "Show all customers" --format excel
# Manage schedules
python client/cli.py schedule list
python client/cli.py schedule create --name "Daily Report" --query "..." --cron "0 9 * * *" --email user@example.com
# View history
python client/cli.py history --days 30
# Get statistics
python client/cli.py stats
Programmatic access for custom applications.
import asyncio
from client.mcp_client import QueryAssistantClient
async def main():
async with QueryAssistantClient() as client:
# Execute query
result = await client.query_database(
"Show me the top 5 customers by order value",
user_id=1
)
# Export data
export = await client.export_query_results(
user_id=1,
query="Show all customers",
format="excel"
)
# Create schedule
schedule = await client.create_scheduled_report(
user_id=1,
name="Daily Report",
query="Show today's sales",
schedule="0 9 * * *",
email="user@example.com",
format="excel"
)
asyncio.run(main())
See: CLIENT_GUIDE.md for complete API documentation
Located in client/examples/:
basic_query.py - Simple query executionbatch_queries.py - Multiple queries efficientlyschedule_reports.py - Create and manage schedulesexport_data.py - Export in multiple formatsadvanced_usage.py - Complete workflow examplespython client/examples/basic_query.py
DATABASE_URL: PostgreSQL connection stringDATABASE_POOL_SIZE: Connection pool size (default: 20)DATABASE_MAX_OVERFLOW: Max overflow connections (default: 40)REDIS_URL: Redis connection stringQUERY_CACHE_TTL_SECONDS: Query cache TTL (default: 300)GROQ_API_KEY: Groq API key for LLM inferencellama-3.3-70b-versatile (complex queries)llama-3.1-8b-instant (simple queries, faster)QUERY_TIMEOUT_SECONDS: Query execution timeout (default: 30)MAX_QUERY_RESULTS: Maximum rows returned (default: 1000)RATE_LIMIT_PER_USER_PER_HOUR: Requests per user (default: 100)# Install dev dependencies
pip install -e ".[dev]"
# Run tests (coming soon)
pytest
# Format code
black .
# Lint
ruff check .
MIT License - see LICENSE
Contributions welcome! Please read our contributing guidelines first.
QueryAI represents a fully-featured, production-ready database intelligence platform that combines:
✨ AI-Powered Query Generation - Transform natural language into optimized SQL
🎨 Modern React Frontend - Beautiful, responsive user interface
📧 Automated Email Reports - Scheduled delivery with professional templates
🔐 Enterprise Security - Role-based access control and audit logging
⚡ High Performance - Multi-tier caching and connection pooling
🚀 Scalable Architecture - Container-ready with load balancing support
Built with ❤️ using cutting-edge technologies:
🤖 Pydantic AI • ⚡ FastMCP • 🧠 Groq • ⚛️ React • 🐘 PostgreSQL • 🔴 Redis
⭐ Star this repository if QueryAI helped you build better database solutions!
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for QueryAI - natural language to SQL database assistant with an MCP server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-server-client-michdriod)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A Model Context Protocol server that lets AI assistants run SQL queries against AWS Athena databases and retrieve results.

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.