Enterprise-MCP-Data-Agent
Provides secure SQL query and schema management capabilities for PostgreSQL databases through an MCP interface.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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 8000Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Query PostgreSQL databases in plain English β LLM-generated, safety-validated SQL.
Query, explore, and manage your databases through natural conversation.
Text-to-SQL MCP server: read-only queries on PostgreSQL, MySQL and SQL Server with your real schema
Query Postgres, MySQL, SQL Server, Oracle, BigQuery, ClickHouse and Redshift from your AI client.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceEnables 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.MIT
- FlicenseBqualityDmaintenanceEnables natural language interaction with PostgreSQL databases, converting questions to safe SQL queries and executing them with result validation.1-
- FlicenseNot gradedqualityDmaintenanceProvides a secure, schema-aware PostgreSQL database agent for LLMs, enabling natural language queries and validated SQL execution with strong security guardrails.24 npm5-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with PostgreSQL databases through natural language queries, schema inspection, and safe SQL execution.4 npm1ISC