yiqiao-yin
MCP Serveryiqiao-yinpublic

chainlit mcp sql demo

This repo demo a chainlit UI with mcp invoking SQL agent.

Repository Info

1
Stars
0
Forks
1
Watchers
0
Issues
TypeScript
Language
MIT License
License

About This Server

This repo demo a chainlit UI with mcp invoking SQL agent.

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

chainlit-mcp-sql-demo

This repository demonstrates a minimal Chainlit UI integrated with an agentic MCP (Model-Centric Programming) framework that invokes a SQL agent powered by an Anthropic LLM. The system supports natural language queries that are translated into SQL and executed, with results displayed through the Chainlit frontend.


🚀 Project Goal

To build a working prototype that combines:

  • Chainlit UI: An open-source framework for building LLM-powered user interfaces.
  • MCP agentic flow: Agentic infrastructure to orchestrate tool invocation and memory handling.
  • Anthropic LLM: Claude model for natural language understanding.
  • Text2SQL agent: Converts natural queries to SQL statements for query execution.
FrameworkKey FeaturesStrengthsIdeal Use CasesReferences
Anthropic Claude and MCP Agentic Framework​Natural language to SQL, agent orchestration, Chainlit UI, LLM integration, API-ready, conversational, modular, Pythonic, dotenv config, SQLAlchemy support, interactive chatSeamless natural language processing, modular architecture, multi-agent flow, easy UI setup, scalable logic, developer-friendly, portable, and well-documentedLLM UI demos, SQL automation, teaching assistantschainlit-mcp-sql-demo
YouTube

📦 Installation Instructions

Note:

  • On macOS, use Terminal directly.
  • On Windows, open WSL by pressing the Windows key and launching a Linux shell.

Step-by-step setup

# 1. Install uv if you haven't
pip install uv

# 2. Initialize a new project environment
uv init proj
cd proj

# 3. Add required packages
uv add anthropic chainlit mcp pandas python-dotenv sqlalchemy tabulate

# 4. Activate virtual environment
source .venv/bin/activate

# 5. Launch the Chainlit app
chainlit run app.py

👤 Author

Yiqiao Yin Developer and investor with a focus on generative AI, large language models, and intelligent applications.


🧠 Notes

  • Ensure you have a .env file configured with your API keys (e.g., for Anthropic).
  • This demo uses a basic SQLite backend for executing SQL queries. You can extend it to work with other databases.
  • Contributions and improvements welcome!

📄 License

MIT License — feel free to use, modify, and share.

Quick Start

1

Clone the repository

git clone https://github.com/yiqiao-yin/chainlit-mcp-sql-demo
2

Install dependencies

cd chainlit-mcp-sql-demo
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Owneryiqiao-yin
Repochainlit-mcp-sql-demo
LanguageTypeScript
LicenseMIT License
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation