HR Assistant MCP Agent
Allows sending transactional email notifications through Gmail's SMTP service, such as welcome emails and manager notifications during HR workflows.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@HR Assistant MCP Agent Onboard Priya as a Data Analyst under Manager E004"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 storeProject 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.lockAvailable MCP Tools
Tool | Description |
| Add a new employee to the system |
| Look up an employee's details by name |
| Send an email notification |
| Raise a ticket for equipment/access needs |
| Schedule a meeting for an employee |
| Check an employee's remaining leave balance |
| Apply leave for an employee on given dates |
| 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]) withFastMCPPydantic 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-Agent2. Install dependencies
uv sync3. Configure environment variables
Create a .env file in the project root:
CB_EMAIL=your_email@gmail.com
CB_EMAIL_PWD=your_app_passwordUse 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:
Add the employee to the HRMS
Send a welcome email with login credentials
Notify the manager
Raise tickets for laptop, ID card, and equipment
Schedule an introductory meeting
License
MIT
Author
Sachin Kumar — AI Engineer, building agentic AI and MCP-based automation systems.
Available Tools
8 toolsadd_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
Scored across 8 tools
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.
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.
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.
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
Related MCP Connectors
Give AI agents 30,000+ safe, token-optimized actions across Workday, SAP, Oracle + hundreds more.
AI-powered corporate learning platform — manage courses, users, and insights via Claude.
Describe your business to Claude and it builds your cockpit: a custom work tool with its assistant.
Build and run agents and automations across hundreds of apps using natural language.
Related MCP Servers
- AlicenseCqualityDmaintenanceAutomates HR workflows such as employee onboarding, leave management, and ticket tracking through natural language prompts in Claude Desktop.12MIT
- FlicenseBqualityDmaintenanceAgentic AI system that automates HR workflows like employee onboarding, enabling HR teams to streamline tasks through natural language interactions with Claude Desktop.12-
- FlicenseNot gradedqualityDmaintenanceEnables HR teams to automate employee onboarding workflows through an Agentic AI system integrated with Claude Desktop.1-
- AlicenseCqualityDmaintenanceEnables Claude Desktop to autonomously perform HR operations such as employee onboarding, leave management, meeting scheduling, ticket creation, and email notifications through MCP tool calling.12MIT