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., "@LeaveManagerApply for leave for employee E001 on 2025-04-17 and 2025-05-01"
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.
LeaveManager β MCP Server with 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.
π Features
Check employee leave balance
Apply leave for specific dates
View leave history
In-memory state management
Claude Desktop integration via MCP
Automatic tool selection from natural language
π§ Tech Stack
Python 3.10+
FastMCP
MCP CLI
Claude Desktop (for tool invocation)
uv (Python package manager)
π Project Structure
my-first-mcp-server/ β βββ main.py βββ pyproject.toml βββ README.md βββ .gitignore βββ uv.lock βββ .venv/
π οΈ MCP Tools
1οΈβ£ get_leave_balance
Checks remaining leave days for an employee.
Input:
employee_id(string)
2οΈβ£ apply_leave
Applies leave for given dates and updates balance.
Input:
employee_id(string)leave_dates(list of YYYY-MM-DD)
3οΈβ£ get_leave_history
Returns all leave dates taken by an employee.
Input:
employee_id(string)
π‘ Example Claude Queries
βCheck leave balance for employee E001β
βApply leave for employee E001 on 2025-04-17 and 2025-05-01β
βShow leave history for employee E001β
Claude automatically selects and executes the correct MCP tool.
β οΈ Important Note on Data Storage
This project uses in-memory storage
Data resets when the MCP server restarts
This is intentional for simplicity
Can be extended with SQLite for persistence