MCP-Server-data
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., "@MCP-Server-dataShow me all products under $50"
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.
⨠Gemini + MCP Playground
An AI agent that uses Google Gemini and the Model Context Protocol (MCP) to securely interact with data and tools.
Built with Streamlit, Gemini, Agno, and a custom MCP server ā no Docker needed!
š Why This Project?
This showcases AI Engineering skills:
Skill | How It's Shown |
AI Agent Architecture | Google Gemini + Agno agent that decides which tools to call |
MCP Protocol | Custom MCP server with read-only SQL tools + security guardrails |
Security Engineering | Guards blocking dangerous queries (DELETE, DROP, etc.) |
Full-Stack AI | Streamlit UI + AI backend + local database |
Practical Features | One-click CSV/JSON/Markdown export |
Related MCP server: sqlite-mcp
⨠Features
Natural Language Queries ā Ask questions in plain English about a sample e-commerce database
Custom MCP Server ā A local server that translates AI requests into safe database queries
š Security Guardrails ā Only SELECT queries allowed; all modifications blocked
Multiple Export Formats ā Download results as CSV, JSON, or Markdown with one click
AI-Assisted Export ā Just say "export this as CSV" and the AI handles it
Tool Transparency ā See exactly which tools the AI calls and what SQL it writes
š§ How It Works
You: "Show me all products over $50"
ā
ā¼
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā Streamlit Web App (github_agent.py) ā
ā ā
ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā
ā ā Gemini (Google AI) ā ā
ā ā ⢠Understands your question ā ā
ā ā ⢠Decides which tool to call ā ā
ā ā ⢠Formats the answer ā ā
ā āāāāāāāāāāāā¬āāāāāāāāāāāāāāāāāāāāāāā ā
ā ā MCP Protocol ā
ā ā¼ ā
ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā
ā ā MCP Server (db_mcp_server.py) ā ā
ā ā ⢠Validates query (read-only?) ā ā
ā ā ⢠Runs SELECT on SQLite DB ā ā
ā ā ⢠Returns formatted results ā ā
ā āāāāāāāāāāāā¬āāāāāāāāāāāāāāāāāāāāāāā ā
ā ā ā
ā ā¼ ā
ā āāāāāāāāāāāāāāāā ā
ā ā store.db ā (SQLite file) ā
ā āāāāāāāāāāāāāāāā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāš Quick Start
Requirements
Python 3.8+
Gemini API Key ā Get one free at aistudio.google.com/apikey
No Docker. No GitHub token. No OpenAI key.
Installation
# 1. Install dependencies
pip install -r requirements.txt
# 2. Generate the sample database
python seed_db.py
# 3. Start the app
streamlit run github_agent.pyUsage
Enter your Gemini API key in the sidebar (get one free at aistudio.google.com/apikey)
Type a question about the store data ā e.g., "Show me all products under $50"
Click "Run Query" and watch the AI work!
Export results using the download buttons below the response
š¬ Example Queries
Try asking the AI:
š "Show me all products sorted by price"
š "Which customers have placed the most orders?"
š "What's the total revenue from last month?"
š "Show me orders that haven't shipped yet"
š "Export all products as CSV"
š "How many customers do we have from each city?"š Project Structure
File | Purpose |
| Main Streamlit app ā UI + AI agent connection |
| Custom MCP server ā read-only SQL tools + export |
| Script to generate the sample database |
| SQLite database with sample e-commerce data |
| Python dependencies |
| Folder where exported files are saved (created on first export) |
šļø Database Schema
The sample database (store.db) contains 5 tables with 30 orders, 25 products, and 10 customers:
Table | Description |
| Product categories (Electronics, Clothing, Books, etc.) |
| Items for sale with prices and stock |
| Customer information |
| Orders placed with status (delivered, shipped, etc.) |
| Individual products within each order |
š Security Guardrails
The MCP server has layers of protection:
Keyword blocking ā Queries starting with
DELETE,DROP,INSERT,UPDATE, etc. are rejectedMulti-statement detection ā Multiple SQL statements separated by
;are individually checkedResult limiting ā Maximum 100 rows returned per query
Read-only export ā Export tool also validates queries before writing files
š ļø Tech Stack
Technology | Role |
Web UI framework | |
AI model (via | |
AI agent framework | |
Model Context Protocol (tool communication standard) | |
Local database (built into Python) |
š License
This project is for educational purposes. Built as a demonstration of AI Agent + MCP architecture.
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.
Related MCP Servers
- Alicense-qualityDmaintenanceEnables AI assistants to interact with SQLite databases by executing read and write queries, listing tables, and inspecting schemas. It provides a secure, local interface for database management and data retrieval through the Model Context Protocol.2MIT
- Alicense-qualityCmaintenanceAn MCP server that enables AI agents to interact with SQLite databases by querying schemas, executing SQL, and inspecting table metadata. It supports safe database access through configurable read-only modes, query timeouts, and dry-run execution plans.MIT
- Flicense-qualityCmaintenanceEnables AI agents to query databases via natural language using the Model Context Protocol, with automatic schema discovery, SQL query execution, and read-only safety checks.
- Flicense-qualityCmaintenanceEnables AI agents to connect to and query an SQLite database through the Model Context Protocol, allowing natural language interaction with database tables and data.
Related MCP Connectors
Analytical memory for AI agents: a real Postgres queried in plain English over MCP. One command.
GibsonAI MCP server: manage your databases with natural language
Query PostgreSQL databases in plain English ā LLM-generated, safety-validated SQL.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/nishant264/MCP-Server-data-'
If you have feedback or need assistance with the MCP directory API, please join our Discord server