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"
}
}
}
}
📦 Traditional Installation (pip)
pip install kasra-mcp-server
Then 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.
Metadata
Release files for kasra-mcp-server 1.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kasra_mcp_server-1.0.7.tar.gz | 22.0 kB | Without provenance | Details for kasra_mcp_server-1.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kasra_mcp_server-1.0.7-py3-none-any.whl | Python 3 | none | any | Details for kasra_mcp_server-1.0.7-py3-none-any.whl |
Total release size: 43.3 kB
Release files / kasra_mcp_server-1.0.7.tar.gz
| Download URL | kasra_mcp_server-1.0.7.tar.gz |
|---|---|
| Size | 22.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cdb705cdedd88d784b4a3a3a1eb52097b5df42c0022ac005913054f1d02d3242
|
|
BLAKE2b-256 checksum How to use checksums |
ac1261294ca6628ea026ed75af1f0b4c9f794e9cc8137b7c779566701923f79d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / kasra_mcp_server-1.0.7-py3-none-any.whl
| Download URL | kasra_mcp_server-1.0.7-py3-none-any.whl |
|---|---|
| Size | 21.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5405db5ce42fed9aee153f83782fce9cce1b7711ad0f8361bf5642e228226eef
|
|
BLAKE2b-256 checksum How to use checksums |
d50f4ef938ffe937d0fc054b6037492d3bae4c901cfe8d48b7c5fd5d95ae680a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for kasra-mcp-server 1.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.