Titan AI Business Analytics Copilot

Titan AI Business Analytics Copilot

MCP server that routes natural language queries to backend analytics tools (Sales, Finance, Customer, Service) using Google Gemini's function calling.

Category
Visit Server

README

Titan AI Business Analytics Copilot - POC

This is a Proof of Concept (POC) demonstrating how the Model Context Protocol (MCP) can be used at Titan Watches to build an internal AI Business Analytics Copilot. The system routes natural language queries to backend analytics tools using Google Gemini's function calling.

Architecture

  • Frontend: Vanilla JS, HTML, CSS, Chart.js for visualization.
  • Backend: FastAPI (Python) serving as the MCP Gateway.
  • AI: Google Gemini API for intelligent tool selection (intent mapping without keyword matching).
  • Database: SQLite (data.db) acting as a Mock Enterprise Data Warehouse.

Files

  • database.py: Schema definition and deterministic mock data generation.
  • mcp_tools.py: Python implementations of the MCP tools (Sales, Finance, Customer, Service) that query the database.
  • main.py: FastAPI server bridging the frontend, Gemini AI, and MCP tools.
  • index.html, style.css, script.js: Modern enterprise dashboard.
  • requirements.txt: Python dependencies.

Setup & Run Instructions

  1. Install Dependencies

    pip install -r requirements.txt
    
  2. Initialize Database

    python database.py
    

    (This will create data.db and populate it with realistic mock data)

  3. Set API Key (Required for AI)

    export GOOGLE_API_KEY="your-gemini-api-key"
    

    (Note: If the key is not set, the app will run in fallback mock mode)

  4. Run the Server

    uvicorn main:app --reload
    
  5. Access Dashboard Open your browser and navigate to: http://localhost:8000

Demo Scenarios to Try

Try asking the AI Assistant these queries to see how it routes to different MCP tools:

  • "What are our top selling products?" -> Invokes sales_analytics
  • "Show me the sales revenue by region." -> Invokes sales_analytics
  • "What is our financial summary and net profit?" -> Invokes finance_analytics
  • "Give me a breakdown of our customer segments." -> Invokes customer_intelligence
  • "Show me the distribution of service request issues." -> Invokes service_analytics

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured