
agno_ai_agent_sql_tools
In this project, an Agentic AI Application has been built for running SQL Queries and interacting with Database in Python with Agno (previously known as Phidata), SQLTools and Llama4 LLM (with Groq cloud).
Repository Info
About This Server
In this project, an Agentic AI Application has been built for running SQL Queries and interacting with Database in Python with Agno (previously known as Phidata), SQLTools and Llama4 LLM (with Groq cloud).
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
In this project, an Agentic AI Application has been built for running SQL Queries and interacting with Database in Python with Agno (previously known as Phidata), SQLTools and Llama4 LLM (with Groq cloud). For building the app, Streamlit library is used in python. SQL Tools enables an AI Agent to run various SQL Queries and interact with the Database based on user's questions. In the App, user needs to enter the query/question based on what information he/she wants to extract from some Database table, then they just need to click on the "Run Query" button. Our AI Agent, with the help of SQL Tools will run corresponding SQL query and fetch the required data from the database table and display it there.
Installation of Agno: pip install agno pip install mcp This project requires us to install sqlalchemy library: pip install -U sqlalchemy
It also requires us to create a database. We will use a Postgres database running in a Docker container. Following steps are required:
- Install Docker Desktop, launch and keep it running
- Open command prompt on windows and run the following: docker run -d -e POSTGRES_DB=ai -e POSTGRES_USER=ai -e POSTGRES_PASSWORD=ai -e PGDATA=/var/lib/postgresql/data/pgdata -v pgvolume:/var/lib/postgresql/data -p 5532:5432 --name pgvector phidata/pgvector:16
Quick Start
Clone the repository
git clone https://github.com/dharsandip/agno_ai_agent_sql_toolsInstall dependencies
cd agno_ai_agent_sql_tools
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.