Enterprise Support MCP Service
Provides tools for natural-language SQL queries against the support PostgreSQL database, including tables for customers, support tickets, incident logs, and knowledge article usage. Also enables PostgreSQL-backed vector retrieval for semantic search over support documentation.
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 Support MCP ServiceWhat does the support doc say about handling 429 errors?"
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.
Enterprise Support MCP Service
An MCP server for enterprise SaaS support operations. It exposes retrieval-augmented answers from support documentation and natural-language queries against the support PostgreSQL database.
Features
semantic_search: searches indexed support documentation and returns an answer, retrieved context, and source references.get_sql_tool: converts a natural-language question into a SQL query over the support database and returns the query and result.PostgreSQL-backed vector retrieval through LlamaIndex PGVector, with an in-memory fallback when the vector store is unavailable.
Optional Langfuse tracing and evaluation support.
Related MCP server: PGAutoPilot
Requirements
Python 3.12 or newer
PostgreSQL with the support tables and, for RAG retrieval, a configured PGVector store
Azure OpenAI access for the chat and embedding deployments
Installation
From the repository root:
python -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
pip install -e .Configuration
Create a .env file in the repository root. Do not commit this file because it contains credentials.
# Azure OpenAI
AZURE_OPENAI_API_KEY=your-api-key
AZURE_OPENAI_ENDPOINT=https://your-resource.openai.azure.com/
AZURE_OPENAI_API_VERSION=2024-02-15-preview
AZURE_OPENAI_LLM_MODEL=gpt-4o-mini
AZURE_OPENAI_LLM_DEPLOYMENT=your-chat-deployment
AZURE_OPENAI_EMBEDDING_MODEL=text-embedding-3-small
AZURE_OPENAI_EMBEDDING_DEPLOYMENT=your-embedding-deployment
AZURE_OPENAI_TEMPERATURE=1
# PostgreSQL
DB_USER=postgres
DB_PASSWORD=your-password
DB_HOST=localhost
DB_PORT=5432
DB_NAME=enterprise_support_db
DB_TABLE_NAME=your-vector-table
# Optional Langfuse tracing
LANGFUSE_SECRET_KEY=your-secret-key
LANGFUSE_PUBLIC_KEY=your-public-key
LANGFUSE_BASE_URL=https://cloud.langfuse.comThe SQL tool reads these tables:
customerssupport_ticketsincident_logsknowledge_article_usage
The SQL connection uses the database name enterprise_support_db. The RAG vector store uses DB_NAME and DB_TABLE_NAME.
Run the MCP server
Start the HTTP server from the repository root:
python -m main.appThe MCP endpoint is available at:
http://localhost:8000/v1/mcpTo use another host or port, call the server entry point from Python:
from main.app import run_server
run_server(host="0.0.0.0", port=8000)The application name defaults to Employee Directory Service and can be changed with APP_NAME.
Test with the included client
With the server running in one terminal, run this from a second terminal:
python test.pyThe client discovers the MCP tools and calls semantic_search with a sample support question. To change the question, edit the default query argument in test.py or call create_mcp_tool_spec from your own Python client.
Project layout
main.py # Direct RAG smoke test
main/app.py # FastMCP HTTP application and tool definitions
main/service/rag_service.py # Azure OpenAI and vector index setup
main/service/retrieval.py # RAG query and response formatting
main/service/sql_database.py # PostgreSQL SQLAlchemy connection
main/tools/SQLQuerytools.py # Natural-language SQL query engine
main/tools/queryRetrivalTool.py # RAG tool adapter
main/evaluation/SLOs.py # Optional Langfuse evaluations
test.py # MCP client smoke testDirect RAG smoke test
main.py runs a direct retrieval query without using MCP:
python main.pyIt asks the RAG service when error 429 occurs and prints the response. Azure OpenAI and database configuration are still required for this path.
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 Connectors
Query PostgreSQL databases in plain English — LLM-generated, safety-validated SQL.
Ask data questions in natural language. Get SQL, insights, and charts from your databases.
Ask questions in plain language, get answers from your business database. No SQL required.
Ask business questions in plain English. Get instant answers from your database, no SQL needed.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables natural language querying of PostgreSQL databases with intelligent SQL generation using LLMs.1Apache 2.0
- AlicenseAqualityAmaintenanceEnables AI assistants to interact with PostgreSQL databases through natural language, with schema-aware query generation and enterprise safety controls.181612MIT
- FlicenseNot gradedqualityBmaintenanceEnables natural-language Q&A over customer support ticket data. Provides tools for schema inspection, SQL-based ticket counts and grouping, and full-text search for customer wording without requiring API keys.-
- AlicenseNot gradedqualityBmaintenanceEnables natural language queries to be converted into policy-verified SQL, vector search, and knowledge graph plans, with evidence-backed answers and an audit log.1Apache 2.0