kasra-mcp-server
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., "@kasra-mcp-server show my attendance for this week"
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.
Kasra Lite Attendance & Personnel MCP Server
A Model Context Protocol (MCP) server for the Kasra Lite Attendance, Personnel, Cartable, and Leave Management System (app.kasralite.com).
Connect your AI agents (Claude Desktop, OpenCode, Cursor, Windsurf, etc.) directly to Kasra Lite to view attendance, punches, leaves, cardex, cartable requests, work periods, and submit leave/mission requests autonomously.
🚀 Published on PyPI & 100% Pure HTTP / Async API — No Headless Browser Required!
Runs via standard HTTP/2 APIs and AES-128-CBC encryption without downloading Chromium or running Playwright/Puppeteer. Automatically detects and routes Iranian enterprise traffic even when a foreign VPN (like Surfshark/v2ray) is active. Works on Linux, Docker, macOS, and Windows.
⚡ Quick Start (Zero-Install with uvx)
You don't need to clone this repository or install Python dependencies manually. Just configure your agent:
Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"kasra": {
"command": "uvx",
"args": ["kasra-mcp-server@latest"],
"env": {
"KASRA_BASE_URL": "https://app.kasralite.com",
"KASRA_USERNAME": "your_username",
"KASRA_PASSWORD": "your_password"
}
}
}
}OpenCode (~/.config/opencode/opencode.jsonc or opencode.json)
{
"mcp": {
"kasra": {
"type": "local",
"command": [
"uvx",
"kasra-mcp-server@latest"
],
"environment": {
"KASRA_BASE_URL": "https://app.kasralite.com",
"KASRA_USERNAME": "your_username",
"KASRA_PASSWORD": "your_password"
},
"enabled": true
}
}
}Cursor (.cursor/mcp.json)
{
"mcpServers": {
"kasra": {
"command": "uvx kasra-mcp-server@latest",
"env": {
"KASRA_BASE_URL": "https://app.kasralite.com",
"KASRA_USERNAME": "your_username",
"KASRA_PASSWORD": "your_password"
}
}
}
}Related MCP server: xrxs MCP Server
📦 Traditional Installation (pip)
pip install kasra-mcp-serverThen configure your agent using kasra-mcp-server:
{
"mcpServers": {
"kasra": {
"command": "kasra-mcp-server",
"env": {
"KASRA_BASE_URL": "https://app.kasralite.com",
"KASRA_USERNAME": "your_username",
"KASRA_PASSWORD": "your_password"
}
}
}
}Option C: From Local Source
git clone https://github.com/razavioo/kasra-mcp-server.git
cd kasra-mcp-server
pip install -r requirements.txt{
"mcpServers": {
"kasra": {
"command": "python3",
"args": [
"/path/to/kasra-mcp-server/main.py"
],
"env": {
"KASRA_BASE_URL": "https://app.kasralite.com",
"KASRA_USERNAME": "your_username",
"KASRA_PASSWORD": "your_password"
}
}
}
}🧪 Testing
Test all tools directly in python:
python3 test_tools.py📄 License
This project is licensed under the MIT License.
Available Tools
18 toolskasra_delete_credit_requestKasra Delete Credit RequestB
حذف یا لغو درخواست مجوز یا مرخصی ثبتشده در سیستم. Cancel or delete a submitted permission, leave, mission, or remote work request.
Inputs: doc_id (required), reason, description, doc_type_id. Returns: object
kasra_export_daily_report_excelKasra Export Daily Report ExcelA
صدور گزارش تفصیلی کارکرد روزانه تردد به صورت فایل اکسل (Excel / .xls) و دریافت لینک مستقیم دانلود آن. Export daily attendance report to an Excel spreadsheet file (.xls) with direct download link.
Inputs: reason, end_date, start_date. Returns: object
kasra_get_cartable_itemsKasra Get Cartable ItemsA
مشاهده اسناد و درخواستهای کارتابل گردش کار (اسناد دریافتی برای بررسی، تأیید یا ارجاع).
Inputs: tab, reason. Returns: object
kasra_get_credit_typesKasra Get Credit TypesA
دریافت لیست کامل انواع مجوزها، مرخصیها، مأموریتها و اضافهکارها با کدهای سیستمی آنها. دستهها شامل:
کسر حضور ساعتی (استحقاقی ساعتی: 11001، استعلاجی ساعتی: 11011، مأموریت ساعتی: 11021، دورکاری ساعتی: 14087، تاخیر سرویس: 11067، ...)
کسر حضور روزانه (استحقاقی روزانه: 11002، استعلاجی روزانه: 11012، مأموریت روزانه: 11022، مأموریت برونشهری: 11032، دورکاری روزانه: 14084، مرخصی بدون حقوق: 11042، ...)
مازاد حضور (اضافهکار عادی: 11101، اضافهکار دورکاری: 14088، اضافهکار جمعه: 60023، اضافهکار تعطیل: 60025)
Inputs: reason. Returns: object
kasra_get_daily_reportKasra Get Daily ReportA
دریافت گزارش تفصیلی کارکرد روزانه تردد (حضور، غیبت، ترددها و مرخصیها). برای هر روز شامل:
تاریخ و روز هفته
کلیه ترددهای ثبتشده (ثبت ساعتهای ورود و خروج)
میزان حضور، حضور در شیفت، مازاد حضور و کسر حضور
مرخصی ساعتی و روزانه (استحقاقی، استعلاجی)
مأموریت ساعتی و روزانه
دورکاری ساعتی و روزانه
نام شیفت و ساختار همچنین سطر جمع کل دوره در خروجی قرار دارد.
Inputs: reason, end_date, start_date. Returns: object
kasra_get_dashboard_summaryKasra Get Dashboard SummaryA
دریافت خلاصه داشبورد و وضعیت کلی تردد شامل:
آخرین تردد ثبتشده (ورود/خروج امروز و ساعت آن)
مانده کاردکس مرخصی (به ساعت)
کل کارکرد دوره (ساعت)
کل حضور دوره (ساعت)
اضافهکار و استحقاقی
موارد نیازمند مجوز (تردد ناقص، مازاد حضور، کسر حضور)
خلاصه وضعیت مجوزها (در جریان، تأییدشده، ردشده)
تعداد درخواستهای در انتظار کارتابل
Get dashboard summary including last punch, cardex balance, total presence, worked hours, needed permissions, and requests status.
Inputs: reason. Returns: object
kasra_get_desktop_shortcutsKasra Get Desktop ShortcutsC
دریافت میانبرهای میز کار و صفحات برگزیده کاربر. Get user desktop shortcuts and bookmarked pages.
Inputs: reason. Returns: object
kasra_get_holidaysKasra Get HolidaysB
دریافت تقویم تعطیلات رسمی ثبتشده در سیستم برای سال جاری. Get official calendar holidays defined in Kasra for the year.
Inputs: reason. Returns: object
kasra_get_messagesKasra Get MessagesC
دریافت پیامها، اعلانات و اطلاعیههای ارسالی سیستم برای کاربر جاری. Get user notifications, broadcast messages, and announcements.
Inputs: reason. Returns: object
kasra_get_monthly_reportKasra Get Monthly ReportA
دریافت گزارش سرجمع کارکرد ماهانه پرسنل. شامل کل حضور، کارکرد خالص، مازاد حضور، کسرحضور، اضافهکار، مرخصیها و مأموریتهای کل ماه.
Inputs: reason, period_id. Returns: object
kasra_get_personnel_groupsKasra Get Personnel GroupsB
دریافت لیست کلیه گروههای پرسنلی تردد (مجوزهای اضافهکار، تقلیل، دورکاری، شیفتها و ...). Get all personnel groups and attendance policy groups.
Inputs: reason. Returns: object
kasra_get_profileKasra Get ProfileB
دریافت اطلاعات پروفایل کاربر جاری شامل نام، کد پرسنلی، شناسه شخص، واحد سازمانی، سمت و تاریخچه ورودهای اخیر. Get current user profile, personnel ID, department, role, and recent login history.
Inputs: reason. Returns: object
kasra_get_punch_gapsKasra Get Punch GapsA
تحلیل ترددها و شناسایی بازههایی که کارمند در ساعات کاری بیرون بوده (خلأ بین خروج و ورود بعدی در شیفت). مناسب برای شناسایی ساعاتی که نیاز به ثبت مرخصی ساعتی دارند.
Analyze daily punches to find gaps where the employee was out during their shift. Returns structured gap data (date, gapStart, gapEnd, duration) suitable for submitting hourly leave.
Inputs: reason, end_date, shift_end, start_date, +1 more. Returns: object
kasra_get_submitted_requestsKasra Get Submitted RequestsB
دریافت لیست درخواستهای ثبتشده (مجوزها، مرخصیها، مأموریتها) و وضعیت تأیید/رد آنها در بازه زمانی.
Inputs: reason, end_date, start_date. Returns: object
kasra_get_system_shiftsKasra Get System ShiftsB
دریافت لیست کلیه شیفتهای کاری تعریفشده در سامانه کسرا (شیفت اداری، شیفت بدون پنجشنبه، شیفت دورکاری و ...). Get all work shifts defined in Kasra system.
Inputs: reason. Returns: object
kasra_get_work_periodsKasra Get Work PeriodsC
دریافت لیست تمام دورههای کاری مالی و تردد موجود در سامانه (مانند شهریور 1405، مرداد 1405، ...). Get all available attendance and financial work periods with their IDs and titles.
Inputs: reason. Returns: result
kasra_submit_credit_requestKasra Submit Credit RequestB
ثبت درخواست مجوز جدید (مرخصی ساعتی/روزانه، مأموریت ساعتی/روزانه، اضافهکار، دورکاری و ...).
Inputs: end_date (required), start_date (required), credit_type_id (required), reason, +4 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 18 tools
Each tool targets a distinct resource or action: reporting tools separate daily, monthly, and dashboard views; request tools distinguish types, submitted requests, and submission/deletion; system data tools cover shifts, groups, holidays, and menus without overlap. Even related tools like punch gaps and daily report are clearly differentiated by output purpose.
All tools follow a consistent 'kasra_' prefix with snake_case verb_noun structure, e.g., kasra_get_profile, kasra_submit_credit_request, kasra_delete_credit_request. The few non-get verbs (submit, delete, export) are still in the same style, making the naming pattern predictable and reliable.
At 18 tools, the set is slightly above the typical 3-15 sweet spot but still reasonable for a broad attendance/HR system covering reports, requests, workflow, and configuration data. Some peripheral tools like get_desktop_shortcuts and get_user_menu could be considered expendable, which prevents a perfect score.
The core employee workflow is well covered: profile, dashboard, daily/monthly reports, punch gap analysis, submitting and deleting credit requests, and viewing submitted requests and cartable items. However, there is no update or approval action for cartable items, no request detail tool, and only daily report export is available, leaving minor workflow gaps.
Maintenance
Related MCP Connectors
Connect AI assistants to Talentflake for time, attendance, leave, and expenses.
Connect your AI agent to 300+ methods and 100+ live tools
Run your TalentoHQ company from an AI agent: people, time, absences, hiring, and more.
1Connect AI agents to 580+ APIs with OAuth or API-key auth. Hosted gateway; API pricing varies.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI to interact with internal company systems through API integration, supporting data search, information updates, report generation, and system connectivity.MIT

xrxs MCP Serverofficial
AlicenseNot gradedqualityBmaintenanceExposes HR business tools — attendance, payroll, organization, and recruiting — as native tools that AI models can call. Connections are secured via MCP OAuth 2.0 (discovery, dynamic client registration, authorization code with PKCE, refresh token rotation), static bearer tokens, or anonymous access.1MIT
Anima MCP Serverofficial
AlicenseNot gradedqualityBmaintenanceEnables AI assistants to connect over streamable HTTP with bearer authentication to tools for agent lifecycle, email, phone, platform, vault, and browser extension management.2MIT- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI assistants to connect securely over Streamable HTTP/SSE or a local stdio bridge to specialized digital administrative colleagues for tasks such as business-card scanning, prospecting, encrypted file management, approval queues, learning memory, and agent status, while preserving human-in-the-loop control and EU data sovereignty.MIT