
hr mcp
一个用 Python 编写的 HR 模块化控制程序,用于管理员工假期、考勤和远程工作。
Repository Info
About This Server
一个用 Python 编写的 HR 模块化控制程序,用于管理员工假期、考勤和远程工作。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
🧠 HR-MCP Server with Claude Desktop + UV
This project is an HR Modular Control Program (MCP) server built in Python. It provides tools to:
- Track employee leave, attendance, and WFH days
- Apply for leave or work from home
- View upcoming or recent public holidays
- Search employees by name or ID
🔧 Prerequisites
Make sure the following are installed on your system:
- Python (≥ 3.10)
pipuv– faster Python environment manager- Claude Desktop (installed and running)
🚀 Setup Instructions
- Clone the repository
git clone git@github.com:ashim0429/hr-mcp.git
cd hr-mcp
- Install MCP dependencies and server
uv run mcp install main.py
✅ This command will register the MCP server into Claude Desktop’s config so Claude can detect and use your tools.
- Start Claude Desktop
- Open Claude Desktop app
- You should see your MCP server listed with tools like
leave_summary,attendance_summary,apply_leave, etc.
🛠️ Included Tools
| Tool | Description |
|---|---|
leave_summary(emp_id) | Shows total and available leave info |
attendance_summary(emp_id, month) | Displays full, late, early, or incomplete attendance |
apply_leave(emp_id, leave_date) | Apply leave for a specific date |
apply_work_from_home(emp_id, days) | Apply for WFH |
upcoming_holidays() | View next public holidays |
recent_holidays() | View previous holidays |
find_employee(query) | Search employee by name or ID |
get_full_summary(emp_id) | Combined view of leave + attendance |
🧪 Example Usage in Claude
Tool: apply_leave
Input: emp_id=EMP001, leave_date=2025-04-05
Tool: get_full_summary
Input: EMP001
💬 Feedback / Improvements
Want to add more features like half-day leave, CSV reports, or email alerts? Open an issue or submit a PR!
Quick Start
Clone the repository
git clone https://github.com/ashim0429/hr-mcpInstall dependencies
cd hr-mcp
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.