local-only server
The server can only run on the client’s local machine because it depends on local resources.
HR MCP Server
A Model Context Protocol (MCP) server for HR operations built for use with Claude Desktop.
https://github.com/user-attachments/assets/4cb89115-daf2-4647-81d2-aadd9e0dd29e
Overview
This server implements the Model Context Protocol to provide Claude with structured access to employee data and HR operations.
The HR MCP Server enables Claude to:
- Look up detailed employee information
- Search for employees by various criteria
- Submit and manage global leave requests
- Translate text with HR/HCM context awareness
For a detailed architectural overview, see ARCHITECTURE.md.
Tools
The server provides the following tools to Claude:
1. get_employee_info
Retrieves detailed information about a specific employee by ID, including personal details, employment information, skills, benefits, and more.
2. search_employees
Search for employees by various criteria with flexible matching options. Supports searching by name, department, skills, location, and many other fields.
3. request_global_leave
Submit global leave requests for employees traveling to multiple countries, with approval chains and compliance reminders.
4. Translation Prompt: translate_text
Translates text from any language to a specified target language with automatic source language detection and special focus on HR/HCM terminology.
The translation system handles HR-specific terminology with contextual awareness, preserving the technical meaning of terms like "benefits," "period," "check," "position," etc., which have special meanings in Human Capital Management contexts.
Installation
Usage
- Start the server:
- Connect Claude Desktop to the server by selecting "Local Tool (via stdio)" as the tool type and using the path to the server's start script.
- Access employee data and HR tools through Claude's interface.
Development
- Source code is in
/src
directory - Employee data is stored in
/src/data/employees.ts
- The server uses TypeScript with strict typing
To run in development mode:
Tech Stack
- TypeScript
- Node.js
- @modelcontextprotocol/sdk - MCP SDK for JavaScript/TypeScript
- Zod - TypeScript-first schema validation
Code Structure
The server is organized with a focus on clean, maintainable code:
- Centralized logging - Consistent JSON-RPC formatted logging
- Tool-based architecture - Each tool has a clear responsibility
- Schema validation - Strong typing with Zod for all inputs
- Error handling - Comprehensive validation with clear error messages
- Documentation - Inline comments explaining complex logic
License
MIT
Copyright (c) 2024
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
This server cannot be installed
A Model Context Protocol server that enables Claude Desktop to access structured employee data and perform HR operations including employee lookups, searches, and global leave requests.