staff-absence-mgmt-service
A Model Context Protocol (MCP) backend designed to orchestrate employee time-off administration, encompassing capabilities for querying prior leave records, submitting novel absence requests, and computing accrued entitlement balances, all persistently backed by an SQLite data store.
Author

azalin
Quick Info
Actions
Tags
Personnel Leave Oversight MCP Endpoint
This repository hosts the source code for an MCP (Model Context Protocol) server application engineered specifically for managing staff leave tracking operations.
Key Features
- Retrieval of the complete roster of personnel leave records.
- Functionality to formally lodge a new leave application.
- Computation engine for determining remaining authorized leave days.
- Native integration with an SQLite database system.
- Adherence to the Model Context Protocol (MCP) specification.
Implementation Guide
- Install required dependencies:
bash pip install -r requirements.txt
- Initialize and populate the persistence layer:
bash python create_db.py
Deployment via Docker
Execute the following command to launch the service within a containerized environment:
bash docker-compose up --build
Accessing the MCP Server
The endpoint can be connected to using two distinct methods:
- Local Execution (Development Mode):
bash python izin-mcp.py
-
Via Smithery.ai Gateway (Production Environment):
-
Endpoint URI: https://smithery.ai/server/@azalin/mcp-test/api
- Communication Medium: Standard Input/Output (STDIO)
n8n Workflow Integration
To establish an MCP Client connection within an n8n workflow:
- Set Connection Type to: Command Line (STDIO)
- Specify Command: python
- Supply Arguments: -m mcp.client.stdio https://smithery.ai/server/@azalin/mcp-test/api
Software License
Licensed under the MIT License.
