Leave Management MCP Server
Click on "Install 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., "@Leave Management MCP ServerShow leave balance for E001"
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.
Leave Management MCP Server
An AI-powered Leave Management System built using the Model Context Protocol (MCP).
This project demonstrates how a Large Language Model (LLM) can discover and invoke MCP tools to perform business operations such as checking leave balances, applying for leave, and retrieving leave history through natural language.
Features
Built using the FastMCP framework
Streamlit-based AI client
Gemini API for intelligent tool selection
SQLite database for persistent data storage
Dynamic MCP tool discovery using
list_tools()Natural language interface
Related MCP server: leave-manager-mcp
Project Structure
.
├── app.py # Streamlit AI Client
├── main.py # MCP Server
├── llm.py # Gemini Integration
├── database.py # SQLite Helper Functions
├── init_db.py # Database Initialization
├── pyproject.toml
├── uv.lock
├── .python-version
├── .env.example
├── README.md
└── .gitignoreAvailable MCP Tools
get_leave_balanceapply_leaveget_leave_history
Tech Stack
Python
Model Context Protocol (MCP)
FastMCP
Streamlit
Gemini API
SQLite
uv
Installation
1. Clone the repository
git clone https://github.com/ratankumarthakur/leave-management-mcp
cd leave-management-mcp2. Install dependencies
uv sync3. Configure the environment
Create a .env file in the project root.
GEMINI_API_KEY=YOUR_API_KEY4. Initialize the database
python init_db.py5. Run the application
streamlit run app.pyExample Queries
Try asking:
Show leave balance for E001
Apply leave for E002 on 2026-08-10
Show leave history for E001
Apply leave for E001 on 15 September 2026
Architecture
User
│
▼
Streamlit Client
│
▼
Gemini LLM
│
▼
MCP Client
│
▼
MCP Server
│
▼
SQLite DatabaseHow It Works
The user enters a natural language query.
The Gemini model selects the appropriate MCP tool.
The Streamlit client invokes the selected MCP tool.
The MCP server executes the requested operation.
Data is read from or written to the SQLite database.
The result is returned to the client and displayed to the user.
Learning Objective
This project was built to understand the fundamentals of the Model Context Protocol (MCP), including:
Building an MCP server
Creating an MCP client
Dynamic tool discovery
LLM-driven tool invocation
Database-backed tool execution
Developing an AI-powered application using Streamlit
Screenshot
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityCmaintenanceEnables employees to check leave balance, apply for leave, and view leave history through natural language using Claude Desktop.Last updated
- Flicense-qualityDmaintenanceEnables AI assistants to manage employee leave by checking balances, applying for leave, and viewing history via MCP tools.Last updated
- AlicenseAqualityCmaintenanceManages employee leave with Claude Desktop via natural language. Enables checking balances, applying, approving, and reviewing leave requests through a Supabase-backed MCP server.Last updated10MIT
- Flicense-qualityCmaintenanceEnables natural-language-based employee leave management including leave balance checks, leave applications, approvals, and history retrieval through an MCP-compatible client.Last updated
Related MCP Connectors
AI-native scheduling: check availability, book meetings, cancel and reschedule via MCP
An AI concierge that turns static forms into adaptive AI conversations. From any MCP client.
Manage projects, tasks, time tracking, and team collaboration through natural language.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ratankumarthakur/leave-management-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server