CyberGod45/MCP_Server_Trial
If you are the rightful owner of MCP_Server_Trial and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
This document provides a structured overview of setting up a Model Context Protocol (MCP) server using Claude Desktop and related tools.
To build MCP Server .
-
Download Claude Desktop from Anthropic portal and install it .
-
Set enviromental path of Claude Desktop , you will find it here . -->C:\Users\mihir\AppData\Roaming\Claude
-
Install uv.exe from pip install uv or the best run cmd/powershell command --> powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
-
After successfull installation of uv.exe set it vatiable path so you can use it in cmd .
-
Run uv init my-mcp-server to create a project directory
-
after creating directory go to that directory ...via terminal/cmd and make command -----> uv sync ( this will install all dependencies for your mcp server)
-
Run uv add "mcp[cli]" to add mcp cli in your project
-
Few folks may get type errors for which you can run pip install --upgrade typer to upgrade typer library to its latest version.
-
Create Your Server file[filename.py] , Write code in filename which will include the tools and functions etc .. for instance in this project the server file is Main.py for leave management server
-
Run command in terminal ---> uv run mcp install main.py After running Above command you will get Response like Below --->
-
Now you will see claude_desktop_config.json file in [C:\Users\mihir\AppData\Roaming\Claude] directory.
-
Make sure you have claude_desktop_config.json file in above directory. if not set your tool will not be visible in claude desktop application .
-
Edit the file if its not proper configuration or you encounter the problem .
-----------------> HOW TO CHECK IF YOUR MCP SERVER WORKS OR NOT<----------------------------------------------
-
Kill any running instance of Claude from Task Manager. Restart Claude Desktop.
-
Go to Claude Desktop Application and in New Chat ask Query Like " Give me Employee Name/ID Who is On Leave " it will ask you Employee ID or EMployee Name ?
-
Give The Employee Name /ID and it will return the response like below from MCP server it implies Your Server is Working .
-
In Claude desktop, now you will see tools from this server
Also ,
This AI tool helps an HR with leave management related tasks. The codebase here is for MCP server that interacts with mock leave database and responds to MCP client queries
Thank you ! Bhavik Vasava