loading…
Search for a command to run...
loading…
A Model Context Protocol server that enables users to manage employee leave through natural language. It provides tools to check leave balances, apply for leave
A Model Context Protocol server that enables users to manage employee leave through natural language. It provides tools to check leave balances, apply for leave, and view leave history via Claude integration.
LeaveManager is a custom Model Context Protocol (MCP) server built using FastMCP.
It allows Claude to interact with a backend Leave Management System using natural language.
This project demonstrates how Claude can automatically select and execute backend tools based on user queries.
my-first-mcp-server/ │ ├── main.py ├── pyproject.toml ├── README.md ├── .gitignore ├── uv.lock └── .venv/
get_leave_balanceChecks remaining leave days for an employee.
Input:
employee_id (string)apply_leaveApplies leave for given dates and updates balance.
Input:
employee_id (string)leave_dates (list of YYYY-MM-DD)get_leave_historyReturns all leave dates taken by an employee.
Input:
employee_id (string)Claude automatically selects and executes the correct MCP tool.
uv run main.py
🎯 Learning Outcomes
Built a real MCP server
Exposed backend tools to Claude
Understood stateful MCP behavior
Integrated Python backend with LLM tool calling
📌 Future Improvements
SQLite persistence
Date validation & duplicate checks
Employee creation & reset tools
FastAPI + MCP hybrid architecture
🧑💻 Author
Uma Maheswara Rao
Aspiring AI Engineer / Data Analyst
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"leavemanager": {
"command": "npx",
"args": []
}
}
}