Skip to main content
Glama
HR MCP Server

HR MCP Server

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.

System Design

Related MCP server: LeaveManager

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.

// Example usage:
get_employee_info({ employee_id: "E001" })

// With sensitive information:
get_employee_info({ employee_id: "E001", include_sensitive: true })

2. search_employees

Search for employees by various criteria with flexible matching options. Supports searching by name, department, skills, location, and many other fields.

// Basic search:
search_employees({ 
  query: { department: "Engineering" } 
})

// Advanced search:
search_employees({ 
  query: { 
    location: "Seattle", 
    performance_rating: 5 
  }, 
  options: { 
    sort_by: "hireDate", 
    output_format: "detailed" 
  } 
})

// Search with sensitive information:
search_employees({ 
  query: { salary_min: 100000 }, 
  options: { include_sensitive: true } 
})

3. request_global_leave

Submit global leave requests for employees traveling to multiple countries, with approval chains and compliance reminders.

// Basic request:
request_global_leave({ 
  employee_id: "E002", 
  start_date: "2025-05-01", 
  end_date: "2025-05-15", 
  reason: "Family vacation", 
  countries: ["USA", "UK"] 
})

// With custom contact info:
request_global_leave({ 
  employee_id: "E002", 
  start_date: "2025-05-01", 
  end_date: "2025-05-15", 
  reason: "Family vacation", 
  countries: ["USA", "UK"], 
  contact_info: { 
    email: "bob.vacation@example.com", 
    phone: "+1-555-123-4567" 
  } 
})

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.

// Basic translation:
translate_text({ 
  text: "Les employés doivent soumettre leurs feuilles de temps avant la fin de la période.", 
  target_language: "English" 
})

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

# Clone the repository
git clone https://github.com/yourusername/hr-mcp-server.git
cd hr-mcp-server

# Install dependencies
npm install

# Build the project
npm run build

Usage

  1. Start the server:

npm start
  1. 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.

  2. 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:

npx ts-node-esm src/index.ts

Tech Stack

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.

Available Tools

3 tools
get_employee_infoD

Inputs: employee_id (required), include_sensitive.

request_global_leaveD

Inputs: countries (required), employee_id (required), end_date (required), reason (required), +2 more.

search_employeesD

Inputs: query (required), options.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    D1.8/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: get_employee_info retrieves specific employee details, request_global_leave handles leave requests, and search_employees finds employees based on criteria. There is no overlap in functionality, making tool selection straightforward.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern (get_employee_info, request_global_leave, search_employees). The naming is uniform and predictable, with no deviations in style or convention.

    Tool Count2/5

    With only 3 tools, the server feels thin for an HR domain, which typically requires more operations like updating employee info, managing leave approvals, or handling payroll. The count is too low for comprehensive HR functionality.

    Completeness2/5

    The tool set is severely incomplete for an HR server. It lacks essential CRUD operations (e.g., update or delete employee info), leave management workflows (e.g., approve/reject leave), and other HR functions like onboarding or performance reviews, leading to significant gaps.

    Related MCP Connectors

    • MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.

      https://api.artificialwit.com/mcp
    • MCP server exposing klokin time-tracking operations (employees, time entries, stores) to AI clients.

      https://mcp.klokin.io
    • PeopleHR MCP server for ChatGPT, Claude and any AI agent: list holiday requests, approve holiday request, decline holiday request, list employees, get employee planner, create task and run saved query in your own PeopleHR account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to PeopleHR yourself; Cotlet does not store your password and you need no PeopleHR API key. About the official PeopleHR API: PeopleHR has a REST API, the Access PeopleHR Integration API v4.0, but no official MCP server (checked 22 Oct 2026). The API covers 31 resources and 150 actions, mostly employee records, holiday and absence data, and every call needs an API key that an HR admin creates in Settings. Setup and FAQ: https://cotlet.dev/integrations/peoplehr-api-mcp-server

    • Personio MCP server for ChatGPT, Claude and any AI agent: request time off, approve time off, list absences, get employee, update employee and log attendance in your own Personio account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Personio yourself; Cotlet does not store your password and you need no Personio API key. About the official Personio API: Personio has a public REST API and an official MCP server in closed beta (checked 16 Oct 2026). The API needs company-wide client credentials from an account with API access rights and has no approvals endpoint; the MCP server is not available to every account, an Administrator has to switch it on, and it is mostly read-only with writes off by default. Setup and FAQ: https://cotlet.dev/integrations/personio-api-mcp-server

    Related MCP Servers

    • F
      license
      B
      quality
      D
      maintenance
      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.
      3
      -
    • A
      license
      A
      quality
      D
      maintenance
      A Model Context Protocol server that enables Claude to interact with a Lucca instance to list employees, departments, and view absences in natural language.
      3
      MIT
    • F
      license
      D
      quality
      D
      maintenance
      An AI-powered HR assistant that automates employee management, leave handling, ticket creation, meeting scheduling, and email notifications through natural language conversations using the Model Context Protocol.
      11
      -