Manage your time off with AI. Connect Claude, Gemini, or GitHub Copilot to Factorial HR and handle vacation requests, approvals, and leave management through natural language.
An open-source Model Context Protocol (MCP) server for Factorial HR that enables AI agents to manage time-off operations. Instead of clicking through HR dashboards, ask your AI assistant: “Request 3 vacation days starting next Monday” or “How many vacation days do I have left?”
Compatible with: Claude Code, Claude Desktop, Gemini CLI, GitHub Copilot, and any MCP-compliant AI client.
All through natural conversation with your AI assistant.
1. Get OAuth credentials from your company administrator (see README)
2. Create .env file:
OAUTH2_APPLICATION_ID=your-app-id
OAUTH2_APPLICATION_SECRET=your-app-secret
3. Add to your AI client:
Claude Code/Desktop:
claude mcp add --transport stdio mcp-factorial -- \
docker run -i --rm -p 7000:7000 \
-v factorial-mcp-server_cache:/app/data \
-e EXIT_ON_EOF=true \
--env-file /path/to/.env \
ghcr.io/ratek-20/factorial-mcp-server:latest \
--transport stdio
Gemini CLI / GitHub Copilot: See full setup instructions
AI Client → STDIO → MCP Server (Docker) → OAuth2 → Factorial API
Technology: Java 25, Spring Boot 3.5.9, Spring AI 1.1.2, Docker
| Tool | Description |
|---|---|
authorize |
OAuth2 authorization flow |
get_current_employee |
Your employee info |
get_employee |
Look up any employee |
get_available_vacation_days |
Check vacation balance |
get_leave_types |
List leave categories |
request_time_off |
Submit new requests |
read_time_offs |
View all requests |
approve_time_off |
Approve requests (managers) |
update_time_off |
Modify existing requests |
delete_time_off |
Cancel requests |
Once configured, use natural language with your AI:
On first use, authorize via browser with your Factorial credentials (one-time setup).
Contributions welcome! See the development guide for setup instructions. Built with Java, Spring Boot, and Spring AI.
MIT License - See LICENSE file.
Built for the MCP community. Star on GitHub ⭐