MCP IT Help Desk

MCP IT Help Desk

AI-powered IT support server that understands issues in Turkish and English, suggests fixes, and routes to the right experts via Django DB.

Category
Visit Server

README

<div align="center">

πŸ€– MCP IT Help Desk

Python MCP Protocol Fast Agent License: MIT

AI-powered IT support: understands issues (TR/EN), suggests fixes, and routes to the right experts. Experts are stored in Django DB.

</div>

<p align="center"> <img src="docs/images/image2.png" alt="MCP IT Help Desk architecture and Django API breakdown" width="100%" /> <!-- Place the diagram image at images/api_service_breakdown.png --> <!-- The image illustrates overall system flow and Django API key files/routes --> <!-- If rendering on GitHub Pages, ensure the relative path is correct for the site base URL. -->

</p>


✨ Features

  • AI-Powered Classification (100% LLM): Turkish + English via Gemini; no heuristics
  • Auto-Solutions: Common hardware/software/network fixes for non-critical cases
  • Smart Expert Assignment: Availability + expertise + load consideration
  • Modern Web UI: Real-time chat via Flask + Socket.IO + Tailwind
  • MCP Tools: Add/process issues, AI try-solve, assign experts

🧭 Table of Contents

  • πŸ”§ MCP Tools
  • πŸš€ Quick Start
  • 🧱 Architecture
  • πŸ—‚οΈ File Structure
  • πŸ“– Comprehensive Documentation
  • βš™οΈ Advanced Configuration
  • πŸ§ͺ Usage Examples
  • 🧠 Design Philosophy
  • 🀝 Contributing & Support

πŸ”§ MCP Tools

Tool Purpose Inputs Output
add_issue Create a new ticket with normalized fields and timestamps employee_id, description, category, subcategory, priority Issue created: ISSnnn
ai_try_solve Attempt auto-resolution for common issues (non-critical) description, category, subcategory, priority Solution text or suggestion to assign expert
assign_expert Classify description and pick best available expert description Assigned expert: T00x - Name (category/subcategory)
process_issues Batch normalize + auto-solve + assign/queue none Summary: closed_by_ai, assigned/queued, skipped

πŸ‘©β€πŸ’» Expert Data Format (Django DB)

Field Type Example Notes
id string (pk) T001 Human-friendly ID
name string Elif Hanım, Ağ Uzmanı Display name
expertise JSON/list ["network","vpn"] Tags matched by classifier
contact string elif@example.com Optional
availability boolean true Considered for assignment
current_load integer 0 Incremented on assignment

πŸš€ Quick Start

Prerequisites

  • Python 3.11+
  • uv (recommended)
  • Gemini API key (required): set GEMINI_API_KEY or GOOGLE_API_KEY

Install dependencies

uv sync

πŸ”₯ Most Important: Start Project (2 terminals)

Terminal 1 β€” start Django API (port 8000):

cd django_api_service
python3 manage.py runserver 8000

Terminal 2 β€” start Web UI (Flask + Socket.IO):

cd ..  # back to project root (mcp-it-helpdesk)
uv run python start_web_agent.py

Set up Django (migrations + import experts)

cd django_api_service
uv run python manage.py makemigrations
uv run python manage.py migrate
uv run python import_experts.py  # imports tech_experts.json into DB

Run services

# MCP (via Fast Agent)
uv run fast-agent go --stdio "uv run python main.py"

# Django API (serves at http://localhost:8000; root "/" returns 404 by design)
uv run python django_api_service/manage.py runserver
# health check: http://localhost:8000/api/health/

# Web UI (Flask, serves at http://localhost:5001)
uv run python web_agent.py
# open http://localhost:5001

Notes:

  • API routes live under /api/ (e.g., /api/health/, /api/issues/). The root / returns 404 by design.
  • The web frontend at http://localhost:5001 calls the API at http://localhost:8000 by default.

🧱 Architecture

Web UI (Flask/Socket.IO)         Django API (REST + ORM)         MCP Server (main.py)
         β”‚                                β”‚                               β”‚
         β”‚  create/assign issues (HTTP)   β”‚                               β”‚
         └──────────────► /api/issues/ ───┼──────────┐                    β”‚
                                          β”‚          β”‚                    β”‚
                                          β–Ό          β”‚                    β”‚
                                  SQLite (Issues, Experts)                β”‚
                                                     β–²                    β”‚
                                                     └── load experts β—„β”€β”€β”€β”˜

πŸ—‚οΈ File Structure

mcp-it-helpdesk/
β”œβ”€ main.py                     # MCP server with tools
β”œβ”€ problems.txt                # Legacy issue store (MCP-only)
β”œβ”€ tech_experts.json           # Legacy sample; data is stored in Django DB
β”œβ”€ web_agent.py                # Flask web chat
β”œβ”€ templates/index.html        # Web UI
β”œβ”€ django_api_service/
β”‚  β”œβ”€ api/settings.py          # Django settings
β”‚  β”œβ”€ manage.py
β”‚  └─ issues/
β”‚     β”œβ”€ models.py             # Issue, Expert models
β”‚     β”œβ”€ serializers.py        # Validation + Gemini integration
β”‚     β”œβ”€ views.py              # REST endpoints and actions
β”‚     └─ migrations/           # Django migrations
└─ docs/images/                # (add your screenshots/diagrams here)

πŸ“– Comprehensive Documentation

Detailed Features and Benefits

  • Bilingual understanding (TR/EN): Reduces back-and-forth with users
  • AI-first classification: Requires Gemini key; ensures consistent, accurate categorization
  • Human-in-the-loop: Assign experts for high/critical cases or when AI can’t resolve

Installation Guide (Step-by-Step)

  1. Install dependencies with uv sync
  2. Run Django migrations and import experts (see Quick Start)
  3. Launch MCP, Django API, and the Web UI
  4. Test with the usage examples below

Practical Usage Examples

Inside Fast Agent:

/tools
/call main-add_issue {"employee_id":"E001","description":"VPN bağlantı sorunu","category":"network","subcategory":"vpn","priority":"medium"}
/call main-ai_try_solve {"description":"VPN bağlantı sorunu","category":"network","subcategory":"vpn","priority":"medium"}
/call main-process_issues

βš™οΈ Advanced Configuration

  • Gemini model: Set GEMINI_MODEL env (default: gemini-1.5-flash)
  • API Keys (required): Provide GEMINI_API_KEY or GOOGLE_API_KEY. The app maps GEMINI_API_KEY to GOOGLE_API_KEY automatically.
  • CORS: settings.py allows http://localhost:5001 for the web UI; adjust for production
  • Secrets & DB: .gitignore excludes local DBs and secrets; use .env files locally (don’t commit)

🧠 Design Philosophy

  • LLM-first: Classification and validation are fully AI-driven
  • Single Source of Truth for Experts: Experts live in Django DB (no runtime JSON fallback)

πŸ§ͺ Testing Ideas

  • Unit test serializers and classification (LLM prompts and outputs)
  • Integration test Django actions that shell into MCP (assign_expert, ai_solve)
  • E2E test via Web UI: create issue β†’ assign expert β†’ verify DB state

🐳 Docker

Official Image

  • Pull and run:
docker pull minasenel/mcp-it-helpdesk:latest
docker run --rm --name mcp_api -p 8000:8000 \
  -e GEMINI_API_KEY="<your_key>" \
  minasenel/mcp-it-helpdesk:latest
# open http://localhost:8000/api/health/
  • If port 8000 is busy on your host, map another host port:
docker run --rm --name mcp_api -p 8001:8000 \
  -e GEMINI_API_KEY="<your_key>" \
  minasenel/mcp-it-helpdesk:latest
# then use http://localhost:8001

Notes:

  • API routes live under /api/. The root / returns 404 by design.
  • The frontend typically runs at http://localhost:5001 and talks to the API at http://localhost:8000.

Environment Variables

  • GEMINI_API_KEY or GOOGLE_API_KEY (required)
  • SECRET_KEY (recommended for production; generated if missing in dev)
  • DJANGO_ALLOWED_HOSTS (set domains for production)

Examples:

docker run --rm -p 8000:8000 \
  -e GEMINI_API_KEY="<your_key>" \
  -e DJANGO_ALLOWED_HOSTS="localhost,127.0.0.1" \
  -e SECRET_KEY="change-me" \
  minasenel/mcp-it-helpdesk:latest

Data Persistence

  • The image uses SQLite by default inside the container. Data will be ephemeral unless you mount a volume:
# Persist the Django project folder (including db.sqlite3)
docker run --rm -p 8000:8000 \
  -e GEMINI_API_KEY="<your_key>" \
  -v "$PWD/django_data":/app/django_api_service \
  minasenel/mcp-it-helpdesk:latest

Build locally (optional)

If you prefer to build from source:

# from repo root
docker build -t YOUR_USERNAME/mcp-it-helpdesk:latest .
docker run --rm -p 8000:8000 \
  -e GEMINI_API_KEY="<your_key>" \
  YOUR_USERNAME/mcp-it-helpdesk:latest

Licensed under MIT.

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