Skip to main content
Glama

HR Assistant MCP Agent

An agentic HR automation system built on the Model Context Protocol (MCP), enabling Claude Desktop to autonomously handle HR workflows — employee onboarding, leave management, meeting scheduling, and IT/admin ticketing — through natural language.

Overview

This project exposes a set of HR operations as MCP tools that Claude Desktop can call directly. Instead of manually running each step of a process like onboarding, you can prompt Claude with something like "Onboard Priya as a Data Analyst under Manager E004", and the agent will orchestrate the full workflow: adding the employee to the HRMS, sending a welcome email, notifying the manager, raising equipment tickets, and scheduling an introductory meeting.

Related MCP server: HR-ASSIST

Features

  • Employee Management — add employees and fetch employee details by name

  • Leave Management — check leave balance, apply for leave, view leave history

  • Meeting Scheduling — schedule meetings between employees and managers

  • Ticketing — raise IT/admin tickets (laptop, ID card, equipment) for new hires

  • Email Notifications — send transactional emails via SMTP (Gmail)

  • Guided Onboarding Prompt — a built-in MCP prompt (onboard_new_employee) that chains all of the above into a single multi-step workflow

Architecture

Claude Desktop (MCP Client)
        │
        ▼
   MCP Server (src/server.py)
        │
 ┌──────┼───────┬──────────┬─────────────┐
 ▼      ▼       ▼          ▼             ▼
Employee  Leave  Ticket   Meeting    Email Sender
Manager   Manager Manager Manager    (SMTP)
 └──────────────┴──────────┴─────────────┘
              In-memory data store

Project Structure

├── hrms/
│   ├── employee_manager.py   # Employee CRUD and lookup
│   ├── leave_manager.py      # Leave balance, application, history
│   ├── meeting_manager.py    # Meeting scheduling
│   ├── ticket_manager.py     # IT/admin ticket creation
│   └── schemas.py            # Pydantic models for requests/responses
├── src/
│   ├── server.py             # MCP server + tool/prompt definitions
│   ├── email_sender.py       # SMTP email handler
│   └── utils.py              # Data seeding helpers
├── main.py
├── pyproject.toml
└── uv.lock

Available MCP Tools

Tool

Description

add_employee

Add a new employee to the system

get_employee_details

Look up an employee's details by name

send_email

Send an email notification

create_ticket

Raise a ticket for equipment/access needs

schedule_meeting

Schedule a meeting for an employee

get_leave_balance

Check an employee's remaining leave balance

apply_leave

Apply leave for an employee on given dates

get_leave_history

Retrieve an employee's leave history

MCP Prompt: onboard_new_employee(employee_name, manager_name) — chains the tools above into a complete onboarding workflow.

Tech Stack

  • Python 3.11+

  • MCP (mcp[cli]) with FastMCP

  • Pydantic for schema validation

  • SMTP (Gmail) for email delivery

  • uv for dependency management

Setup

1. Clone the repository

git clone https://github.com/sachink1712/HR-Assistant-MCP-Agent.git
cd HR-Assistant-MCP-Agent

2. Install dependencies

uv sync

3. Configure environment variables

Create a .env file in the project root:

CB_EMAIL=your_email@gmail.com
CB_EMAIL_PWD=your_app_password

Use a Gmail App Password, not your regular account password.

4. Connect to Claude Desktop

Add the server to your claude_desktop_config.json:

{
  "mcpServers": {
    "hr-assistant-agent": {
      "command": "uv",
      "args": ["--directory", "/absolute/path/to/HR-Assistant-MCP-Agent/src", "run", "server.py"]
    }
  }
}

Restart Claude Desktop. The HR tools will now be available to Claude in your conversations.

Example Usage

"Onboard Shabnam Kumari as a Data Analyst under Manager Tony Sharma"

Claude will:

  1. Add the employee to the HRMS

  2. Send a welcome email with login credentials

  3. Notify the manager

  4. Raise tickets for laptop, ID card, and equipment

  5. Schedule an introductory meeting

License

MIT

Author

Sachin Kumar — AI Engineer, building agentic AI and MCP-based automation systems.

Available Tools

8 tools
add_employeeB
Add a new employee to the system.
Args:
    name: str
    manager_id: str
    email: str
Returns:
    str

Inputs: name (required), email (required), manager_id (required). Returns: result

apply_leaveB
Apply leave for an employee.
Args:
    emp_id: str
    leave_dates: List[datetime]
Returns:
    str

Inputs: emp_id (required), leave_dates (required). Returns: result

create_ticketB
Create a ticket for an new employees to get a new laptop, id card, and other necessary equipment.
Args:
    emp_id: str
    item: str
    reason: str
Returns:
    str

Inputs: item (required), emp_id (required), reason (required). Returns: result

get_employee_detailsC
Get the details of an employee by name.
Args:
    name: str
Returns:
    Dict[str, Any]

Inputs: name (required). Returns: result

get_leave_balanceC
Get the leave balance of an employee.
Args:
    emp_id: str
Returns:
    str

Inputs: emp_id (required). Returns: result

get_leave_historyB
Get the leave history of an employee.
Args:
    emp_id: str
Returns:
    str

Inputs: emp_id (required). Returns: result

schedule_meetingC
Schedule a meeting for an employee.
Args:
    emp_id: str
    meeting_dt: datetime
    topic: str
Returns:
    str

Inputs: topic (required), emp_id (required), meeting_dt (required). Returns: result

send_emailC
Send an email to an employee.
Args:
    to_email: str
    subject: str
    body: str
Returns:
    str

Inputs: body (required), subject (required), to_email (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 8 tools

    Disambiguation5/5

    Each tool maps to a distinct HR function: employee creation/retrieval, email, IT ticket, meeting scheduling, and leave operations. The leave tools are clearly separated into balance, application, and history, so there is little risk of an agent selecting the wrong one.

    Naming Consistency4/5

    Tool names mostly follow a consistent verb_noun snake_case pattern such as add_employee, get_leave_balance, and schedule_meeting. Minor inconsistency exists between add_employee and create_ticket, but the overall convention is predictable and readable.

    Tool Count5/5

    Eight tools is a well-scoped size for an HR assistant covering employee records, leave, meetings, email, and onboarding tickets. Each tool represents a meaningful workflow area without unnecessary overlap or bloat.

    Completeness3/5

    The set covers core employee and leave operations, but obvious gaps remain: there is no update or delete employee, no list employees, and no leave cancellation or approval workflow. These gaps are workable for basic scenarios but could cause failures in fuller HR processes.

    Maintenance

    ActivitySlowing
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers