PrathameshLohar/demo-mcp-v1
If you are the rightful owner of demo-mcp-v1 and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
This repository provides a blueprint for creating a Model Context Protocol (MCP) server to manage HR leave-related queries using AI.
🛠️ Launch Your Leave Management AI Sidekick! 🚀
Unleash the power of AI to streamline HR leave management. This repository provides the blueprint for your very own "Model Context Protocol" (MCP) server, designed to intelligently handle leave-related queries. Think of it as giving your HR team a smart assistant that speaks the language of leave policies!
Under the Hood: This server acts as the brain, communicating with a simulated leave database and responding to requests sent by an MCP client (which Claude Desktop conveniently provides!).
Ready to Get Started? Here's Your Launch Sequence:
- Get Claude Ready: Ensure you have Claude Desktop installed and running. This is your AI interface!
- Meet Your Package Manager: uv: We'll be using
uv, a fast and modern Python package installer. If you haven't already, open your terminal and run:pip install uv - Initialize Your Project Space: Create a dedicated directory for your MCP server:
uv init my-first-mcp-server cd my-first-mcp-server - Fuel Up with MCP CLI: Equip your project with the necessary MCP command-line interface tools:
uv add "mcp[cli]" - Bypass Potential Glitches (Type Error Fix): A few users might encounter type-related issues. If you do, a quick upgrade of the
typerlibrary usually resolves it:pip install --upgrade typer - Craft Your Server's Logic (main.py): This is where the magic happens! Write the Python code in the
main.pyfile to define how your leave management server interacts with the mock database and responds to queries. (Hint: You'll be leveraging themcplibrary here!) - Integrate with Claude Desktop: Install your newly created server into Claude Desktop so it can access its capabilities. Navigate to your project directory in the terminal and run:
uv run mcp install main.py - The Grand Restart: To ensure Claude recognizes the new tools, completely close any running instances of Claude Desktop via your Task Manager (or Activity Monitor). Then, restart Claude Desktop.
- Witness the Transformation! In Claude Desktop, you should now see the custom tools provided by your leave management server, ready to assist with HR tasks!
Let's build smarter HR solutions together! 🚀 #AI #HRTech #LeaveManagement #Claude #MCP #Python #Automation