Customer Support Ticket Automation MCP Server

Customer Support Ticket Automation MCP Server

Enables AI-driven customer support ticket processing, including classification, response generation, and automated email sending and Google Sheets logging.

Category
Visit Server

README

๐Ÿค– AI Customer Support Ticket Resolver Using Agents and MCP (Model Context Protocol)

This Project uses large language models to automate customer support. It classifies tickets, analyzes content, generate and send responses automatically to the given customer email address. Built with Streamlit and MCP Inspector Tool.

๐Ÿ“ฆ What It Does

  • ๐Ÿ“ฌ Accepts customer support messages or Queries
  • ๐Ÿค– Uses AI to understand the issue and generate a helpful reply
  • ๐Ÿง  Detects urgency and classifies the type of request
  • ๐Ÿ“ค Automatically Sends responses via email
  • ๐Ÿ“Š Automatically Logs tickets into a Google Sheet
  • ๐Ÿ–ฅ๏ธ Has a simple Streamlit web interface and MCP Inspector Tool

Demo

videoUrl: https://drive.google.com/file/d/12AznYzfWe23n0x6ZmxI7E7--NwtcBGVO/view?usp=sharing

๐Ÿ›  Installation

1. Clone the project

git clone https://github.com/ManideepMuddagowni/AI-Customer-Support-Ticket-Resolver-Using-MCP.git

2. Set up Python environment

conda create -p venv/ python==3.10 -y

3. Install dependencies

pip install -r requirements.txt

๐Ÿ” API Keys and Config

  1. Create a .env file with:
GROQ_API_KEY=your_groq_key_here
GMAIL_USER=your_email@gmail.com
GMAIL_APP_PASSWORD=your_gmail_app_password
  1. Add your google_cred.json (Google Sheets API key file) to the project folder.

๐Ÿงพ FrontEnd - Customer Support Registration UI (register_ticket.py)

To view the customer support ticket registration form:

1749075472921 1749076576655

โ–ถ๏ธ Run the UI

streamlit run register.py

This will launch the app in your default browser at:

http://localhost:8501

The form allows you to:

  • Submit a new support query
  • Log responses into Google Sheets

๐Ÿค– AI Ticket Manager Backend (main.py)

The AI Ticket Manager script handles all incoming tickets from the registration UI or external sources.

1749075499860 1749076633849 1749076675691 1749076690656 1749076707917

๐Ÿ›  What It Does

  • โœ… Monitors and processes new or pending tickets
  • ๐Ÿ” Uses AI to classify the ticket by intent and urgency
  • โœ‰๏ธ Generates an intelligent response using LLM
  • ๐Ÿ“ฌ Sends the reply to the customer's registered email
  • ๐Ÿ“ Logs the full interaction in a Google Sheet
  • ๐Ÿค– All these are Fully Automated by using Agents

โš™๏ธ Commands Youโ€™ll Use

โ–ถ๏ธ Run the web app

streamlit run main.py

This opens the UI in your browser at: http://localhost:8501


๐Ÿง  Set up and run the MCP Server

Option A: Simple MCP setup with pip

pip install fastmcp

Option B: With UV (optional tool for MCP projects)

uv init .
uv add "mcp[cli]"

๐Ÿ” Install your MCP server

mcp install mcp_server:mcp

๐Ÿงฐ Use MCP Inspector

Option 1: Dev mode with Claude's tools

mcp dev mcp_server.py
mcp install mcp_server.py

Option 2: With Node.js inspector

run - npx @modelcontextprotocol/inspector python mcp_server.py

1747946708892---

๐Ÿ“Œ Troubleshooting

โŒ JSON parse error from MCP

If you see:

Unexpected token โœ…, "โœ… Email se"... is not valid JSON

Remove emojis like โœ… from your print() statements. The MCP CLI expects only plain JSON-safe text.



๐ŸŒ Deploy Options

  • Streamlit Cloud
  • Heroku, EC2, or GCP

๐Ÿง‘โ€๐Ÿ’ป Contributing

Pull requests are welcome. Feel free to open issues for feature ideas or bugs.


๐Ÿš€ Future Improvements & Collaboration

This project is designed with flexibility and growth in mind. Here are a few directions weโ€™re excited to explore next:

๐Ÿ”ฎ Possible Extensions

  • RAG Integration:

    Enhance responses by using a Retrieval-Augmented Generation (RAG) system. This will let the AI pull relevant info from past tickets, FAQs, or internal documents before generating a reply โ€” making answers more accurate and context-aware.

  • Analytics Dashboard:

    Track ticket volume, resolution accuracy, response time, and user satisfaction.

  • User Feedback Loop:

    Let customers rate the AI-generated response to continuously improve performance using reinforcement learning.


๐Ÿค Open for Collaboration

I am always happy to collaborate with others who are passionate about Machine Learning, NLP, and Gen AI. Whether you're interested in:

  • Contributing code
  • Integrating new data sources
  • Connecting to new platforms

I Would love to connect!

๐Ÿ“ฌ Reach out via GitHub Issues or start a discussion to get involved.

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