Cver AI Analytics: Natural Language Analytics by Custom Built MCP

An internal AI analytics assistant for Cver AI. Ask plain-English questions about your platform — users, jobs, applications, and WhatsApp activity — and get instant, data-backed answers powered by DeepSeek V3 and the Model Context Protocol (MCP).
Year
2026
Client
Tools
Python, FastAPI, DeepSeek V3, MCP, FastMCP, PostgreSQL, asyncpg, Docker

Ask questions about your Cver AI platform in plain English. Get instant, data-backed answers — powered by DeepSeek V3, the Model Context Protocol (MCP), and an autonomous agentic reasoning loop.

Demo

Job category growth analysis — DeepSeek autonomously calls get_schema, execute_query, and get_analytics to produce a ranked table with growth percentages
User registration statistics — A single question triggers multiple SQL queries; the model cross-references users, checks soft-deletes, and breaks down registration status and email verification rates
User account lookup — The model joins users, user_profiles, resumes, work_experiences, and user_skills in one response with no manual SQL required
WhatsApp bot activity analysis — search_whatsapp finds the relevant conversation thread and the model summarises who interacted, when, and what they discussed

What This Project Does

Cver AI helps job seekers apply faster by auto-filling applications from WhatsApp and other platforms. This internal tool takes that a step further — it replaces manual dashboards with a natural language analytics assistant that:

  • Receives a plain-English question through a chat interface
  • Autonomously decides which database tools to call and in what order
  • Writes and executes its own SQL queries against the live PostgreSQL database
  • Synthesises a human-readable answer complete with tables and numbers

No hardcoded queries. No dashboards to build. Just ask.

MCP Tools

The system exposes four tools that DeepSeek V3 can autonomously call:

  • get_schema — Introspects all tables or one specific table, returning column names, types, and live row counts
  • execute_query — Runs any read-only SELECT query. SQL injection guards and a row-limit cap are enforced server-side
  • search_whatsapp — Searches chat history by keyword, phone number, user ID, date range, or message role
  • get_analytics — Eight pre-built metrics: job growth, user registrations, application funnel, top job functions, top skills, new users without CVs, WhatsApp volume, and daily job vs. user series

Sample Questions You Can Ask

Job Intelligence

  • Which job categories have seen the highest growth in postings over the last 30 days?
  • What is the average salary offered for Backend Engineer roles?
  • Give me a daily breakdown of new job postings vs. new user registrations for the past 14 days.

User Analytics

  • List all users who registered in the last 48 hours but haven’t uploaded a CV yet.
  • What is the conversion rate from registered user to job applicant this month?
  • Find users who applied for a job today — what was their most recent job title?

WhatsApp Insights

  • Summarise the main reasons users reached out via WhatsApp over the weekend.
  • Are there recurring keywords in today’s WhatsApp messages that suggest a bug?
  • Cross-reference users who messaged on WhatsApp today with their last job application.

Tech Stack

  • Chat UI: Open WebUI
  • API Bridge: FastAPI + Uvicorn
  • AI Model: DeepSeek V3 via DeepSeek API
  • Tool Protocol: Model Context Protocol (MCP) — streamable-http transport
  • MCP Framework: FastMCP
  • Database: PostgreSQL via asyncpg (async)
  • Containerisation: Docker Compose

Security & Design

  • Read-only database access — only SELECT and WITH queries are permitted; DROP, DELETE, INSERT, and other write operations are rejected server-side
  • No credentials in code — all secrets are passed via environment variables
  • Row cap — execute_query enforces a configurable row limit (default 500, max 2000) to prevent runaway queries
  • MCP boundary — the AI model can only interact with the database through the four defined tools; no direct database access

View on GitHub

The full source code, architecture diagrams, setup instructions, and Docker Compose stack are available on GitHub. Clone it, point it at your own PostgreSQL database, and start asking questions instantly.

Testimonials
Feedback from the Client
Emily Carter
Creative Director at Pixel Studio
Stephen’s insights are a game-changer for anyone in the digital space. His creativity and expertise never fail to inspire.
Get in Touch
Feel Free to Contact Me
Want to say hello? Fill out the form below, and I’ll get back to you as soon as I can. Looking forward to hearing from you!