Enterprise-MCP-Data-Agent
Provides secure SQL query and schema management capabilities for PostgreSQL databases through an MCP interface.
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., "@Enterprise-MCP-Data-Agentlist all tables in the database"
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.
P4: Enterprise MCP Data Agent (Local LLM + Secure PostgreSQL Integration)
An enterprise-grade, secure, and privacy-first Autonomous Data Agent built using the Model Context Protocol (MCP), FastMCP, LlamaIndex Workflows, and a localized LLaMA 3.2 model via Ollama. This agent acts as an automated SQL assistant that interacts securely with an on-premise PostgreSQL database using dynamic tool-calling capability, ensuring no database schemas are exposed raw to the external world.
🚀 Key Features
Model Context Protocol (MCP): Implements modern 2026 standardized client-server architecture (FastMCP) over Server-Sent Events (SSE).
Privacy-First Architecture: Utilizes local
llama3.2:1bfor zero-data leak enterprise compliances.Dynamic Tool Calling: Built-in SQL execution layer protecting database context via strict system prompting (
list_tables,read_data,add_data).Streamlit User Interface: A production-style, dynamic chat interface supporting streaming statuses of agent thoughts and backend tool invocations.
Related MCP server: PostgreSQL MCP Server
🛠️ Tech Stack
AI Framework: LlamaIndex (FunctionAgent Workflows)
MCP Server Framework: FastMCP (Python)
Database Driver: Psycopg3 (Modern PostgreSQL)
Local LLM Engine: Ollama (LLaMA 3.2 1B)
Frontend UI: Streamlit
📁 Project Structure
server.py- The standalone FastMCP server exposing database query and schema capabilities securely.agent_notebook.ipynb- Core testing and modular workflow pipeline using LlamaIndex client specs.app.py- Production-ready UI frontend wrapping the async agent loop.
🏃 How to Run
Step 1: Start the FastMCP Server
Ensure your local PostgreSQL database is up and matching the config, then run:
python server.py --server_type sse --port 8000This 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 natural language interaction with PostgreSQL databases, supporting query execution, schema management, data operations, user management, and database maintenance with secure remote access via HTTP/SSE transport.Last updatedMIT
- Alicense-qualityDmaintenanceEnables AI assistants to query and manage local PostgreSQL databases through SQL execution and schema exploration tools. It supports both read-only queries and write operations including table creation and data modification via natural language.Last updated37ISC
- FlicenseBqualityDmaintenanceEnables natural language interaction with PostgreSQL databases, converting questions to safe SQL queries and executing them with result validation.Last updated1
- Alicense-qualityFmaintenanceProvides a secure, schema-aware PostgreSQL database agent for LLMs, enabling natural language queries and validated SQL execution with strong security guardrails.Last updated1915MIT
Related MCP Connectors
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.
The grounded data layer for any LLM: governed SQL, metrics, lineage and catalog over your data.
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/lokeshkundi15/Enterprise-MCP-Data-Agent'
If you have feedback or need assistance with the MCP directory API, please join our Discord server