I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

Sql_mcp_server
SQLGenius es un asistente de SQL con AI que convierte el lenguaje natural en consultas SQL utilizando Vertex AI's Gemini Pro. Construido con MCP y Streamlit, proporciona una interfaz intuitiva para la exploración de datos BigQuery con la visualización en tiempo real y la gestión de esquemas.
3 years
Works with Finder
1
Github Watches
2
Github Forks
4
Github Stars
SQLGenius - AI-Powered SQL Assistant
SQLGenius is an intelligent SQL assistant that helps you query your BigQuery database using natural language. Built with MCP (Model Context Protocol), Vertex AI's Gemini Pro, and Streamlit.
🌟 Features
- Natural language to SQL conversion using Gemini Pro
- Interactive Streamlit UI with multiple tabs
- Real-time query execution and visualization
- Database schema explorer
- Query history tracking
- Safe query validation
- BigQuery integration
- MCP-based architecture
🎥 Demo
Watch SQLGenius in action! Here's a quick demo of how to use the application:
In this demo, you can see:
- Natural language query conversion to SQL
- Interactive data visualization
- Schema exploration
- Query history tracking
🚀 Installation
- Clone the repository and navigate to the project directory:
cd sql_mcp_server
- Install dependencies:
pip install -r requirements.txt
- Copy the
.env.example
file to.env
and fill in your configuration:
cp .env.example .env
- Set up your environment variables in
.env
:
PROJECT_ID=your-project-id
DATASET_ID=your-dataset-id
GOOGLE_APPLICATION_CREDENTIALS=path/to/your/service-account.json
VERTEX_AI_LOCATION=us-central1
🎮 Usage
- Start the application:
streamlit run streamlit_app.py
-
The MCP server will start automatically when the Streamlit app launches
-
Use the tabs to:
- Ask natural language questions about your data
- Write SQL queries directly
- Explore your database schema
📊 Interface Tabs
💬 Natural Language Query
Ask questions in plain English and get SQL results:
- "Show me the top 5 customers by revenue"
- "What products have the highest sales in January?"
- "How many orders were placed last month?"
📊 SQL Query
Write and execute SQL queries directly:
SELECT * FROM orders
WHERE order_date > '2023-01-01'
ORDER BY total_amount DESC
LIMIT 10
📋 Database Explorer
- Browse available tables
- View table schemas
- See sample data from any table
🔒 Security Features
- Only SELECT queries are permitted
- Query validation to prevent dangerous operations
- Secure credential management
- Error handling and input validation
🛠️ Architecture
SQLGenius uses the Model Context Protocol (MCP) to expose tools that enable:
- Natural Language Processing: Convert English questions to SQL
- Data Exploration: Fetch schema information and sample data
- SQL Execution: Run validated queries against your database
The architecture consists of:
- MCP Server: Handles DB connection and provides tools
- Streamlit Frontend: User interface for interacting with the system
- Vertex AI (Gemini Pro): Powers natural language understanding
- BigQuery: Executes SQL queries on your data
📝 MCP Tools
The following MCP tools are available:
-
execute_nl_query
: Execute a natural language query -
execute_sql_query
: Execute a raw SQL query -
list_tables
: List all available tables -
get_table_schema
: Get schema for a specific table
📚 Advanced Usage
To add custom tools to the MCP server:
- Edit the
register_tools()
method insql_mcp_server.py
- Add your custom tool using the
@self.tool()
decorator - Restart the server
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
相关推荐
Confidential guide on numerology and astrology, based of GG33 Public information
Converts Figma frames into front-end code for various mobile frameworks.
Advanced software engineer GPT that excels through nailing the basics.
Take an adjectivised noun, and create images making it progressively more adjective!
Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.
Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx
Una puerta de enlace de API unificada para integrar múltiples API de explorador de blockchain similar a Esterscan con soporte de protocolo de contexto modelo (MCP) para asistentes de IA.
Servidor MCP para obtener contenido de la página web con el navegador sin cabeza de dramaturgo.
Espejo de https: //github.com/suhail-ak-s/mcp-typesense-server
Un bot de chat de IA para equipos pequeños y medianos, que apoyan modelos como Deepseek, Open AI, Claude y Gemini. 专为中小团队设计的 ai 聊天应用 , 支持 Deepseek 、 Open ai 、 Claude 、 Géminis 等模型。
本项目是一个钉钉 MCP (Protocolo del conector de mensajes )服务 , 提供了与钉钉企业应用交互的 API 接口。项目基于 Go 语言开发 支持员工信息查询和消息发送等功能。 支持员工信息查询和消息发送等功能。
Reviews

user_Oer0FUDC
SQL_MCP_Server is a fantastic tool for managing SQL databases with ease. The robust features provided by pawankumar94 make it an indispensable resource for any developer. Highly recommend for those seeking efficiency and seamless database management solutions. Check it out here: https://github.com/pawankumar94/SQL_MCP_Server