Database-MCP
Provides tools for interacting with a SQLite database, enabling setup of database tables, adding records, and searching for 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., "@Database-MCPShow me all employees who make more than 50000."
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.
🏢 Company Database AI Manager
📖 Overview
The Company Database AI Manager is a natural language interface for a corporate database. Instead of writing complex SQL queries to insert, update, or retrieve data, users can simply type commands in plain English (e.g., "Add an IT department and assign 5 employees to it").
The system uses the Model Context Protocol (MCP) to securely connect a Groq-powered LangGraph agent to a local Python database server. The AI autonomously reasons through the user's prompt, selects the correct database tools, executes the SQL operations, and returns the result in a clean Streamlit web interface.
Related MCP server: PySqlitMCP
⚙️ Architecture & How It Works
This project separates the database logic from the AI logic using a true Server/Client architecture:
The Server (
server.py&models.py): Runs an independent FastMCP server that hosts SQLite database tools (setup_database,add_record,search_database).The Client (
client.py&app.py): Runs a LangGraph agent powered by Groq'sllama-3.3-70b-versatileoropenai/gpt-oss-120b.The Protocol (MCP): The client connects to the server securely via standard input/output (stdio). It asks the server for available tools, passes them to the LangGraph agent, and triggers the Python functions without directly importing them.
📂 Folder Structure
📦 llm-db-mcp
┣ 📜 .env # Stores secure API keys (Do NOT commit to GitHub)
┣ 📜 .gitignore # Prevents sensitive files from being pushed to Git
┣ 📜 app.py # The Streamlit web UI for interacting with the AI
┣ 📜 client.py # The terminal-based LangGraph agent script
┣ 📜 company.db # The automatically generated SQLite database file
┣ 📜 models.py # SQLAlchemy schemas (Departments, Roles, Employees, Projects)
┣ 📜 requirements.txt # Project dependencies and version numbers
┗ 📜 server.py # The FastMCP server hosting the database tools🚀 Setup & Installation
1. Prerequisites
Python 3.10 or higher.
A free Groq API Key.
2. Environment Setup
Create and activate a virtual environment (Conda is recommended):
conda create -n db_mcp python=3.11
conda activate db_mcp3. Install Dependencies
Install all required packages from the requirements.txt file:
pip install -r requirements.txt4. Configure API Keys
Create a .env file in the root directory and add your Groq API key:
GROQ_API_KEY=gsk_your_api_key_here🖥️ Usage
Option 1: Run the Web UI (Recommended)
To launch the interactive chat interface, run:
streamlit run app.pyOption 2: Run the Terminal Client
To run the agent strictly through the command line:
🛠️ Example Prompts to Try
Once the app is running, try typing these prompts into the chat:
"Set up the database tables." (Run this first!)
"Add an IT department."
"Add a new employee named John Doe with a salary of 75000 in the IT department."
"Show me all employees who make more than 50000."
🔒 Security Notes
Never commit your .env file or API keys to version control.
The .gitignore file is pre-configured to block .env and company.db from being uploaded to GitHub.
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
- FlicenseNot gradedqualityDmaintenanceEnables natural language database operations and semantic document search through SQLite and vector database integration. Converts plain English instructions into SQL queries and provides RAG capabilities for uploaded documents.
- -licenseNot gradedqualityNot gradedmaintenanceEnables comprehensive SQLite database management through natural language, including database creation, table operations, data CRUD operations, backup/restore functionality, and CSV import/export capabilities.
- AlicenseNot gradedqualityDmaintenanceEnables LLM agents to perform complete database operations on SQLite databases, including creating tables, executing queries, and managing data through CRUD operations with schema inspection capabilities.36MIT
- FlicenseNot gradedqualityDmaintenanceEnables interaction with SQLite databases through natural language, supporting SQL queries, CSV imports, and schema exploration.9
Related MCP Connectors
GibsonAI MCP server: manage your databases with natural language
Query PostgreSQL databases in plain English — LLM-generated, safety-validated SQL.
Analytical memory for AI agents: a real Postgres queried in plain English over MCP. One command.
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/deepan2003/Database-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server