Back to MCP directory
publicPublicdnsLocal runtime

hr-mcp-server

HR MCP服务器是一个基于Model Context Protocol的HR操作服务,为Claude Desktop提供员工数据查询、休假管理和多语言翻译等功能。

article

README

🚀 人力资源 MCP 服务器

这是一个专为 Claude Desktop 使用而构建的 Model Context Protocol(MCP)服务器,可用于处理人力资源操作,能为 Claude 提供对员工数据和人力资源操作的结构化访问。

🚀 快速开始

此服务器实现了 Model Context Protocol,以向 Claude 提供对员工数据和人力资源操作的结构化访问。借助 HR MCP 服务器,Claude 能够查看特定员工的详细信息、按各种标准搜索员工、提交和管理全球请假请求,还能在具有 HR/HCM 上下文感知的情况下翻译文本。

有关详细的架构概述,请参阅 ARCHITECTURE.md

系统设计

✨ 主要特性

服务器为 Claude 提供了以下实用工具:

1. get_employee_info

根据员工 ID 检索特定员工的详细信息,涵盖个人信息、就业信息、技能、福利等内容。

// 示例用法:
get_employee_info({ employee_id: "E001" })

// 包含敏感信息:
get_employee_info({ employee_id: "E001", include_sensitive: true })

2. search_employees

按各种标准搜索员工,具备灵活的匹配选项,支持按姓名、部门、技能、地点和其他众多字段进行搜索。

// 基本搜索:
search_employees({ 
  query: { department: "Engineering" } 
})

// 高级搜索:
search_employees({ 
  query: { 
    location: "Seattle", 
    performance_rating: 5 
  }, 
  options: { 
    sort_by: "hireDate", 
    output_format: "detailed" 
  } 
})

// 带敏感信息的搜索:
search_employees({ 
  query: { salary_min: 100000 }, 
  options: { include_sensitive: true } 
})

3. request_global_leave

提交员工前往多个国家/地区的全球请假请求,包含审批链和合规提醒。

// 基本请求:
request_global_leave({ 
  employee_id: "E002", 
  start_date: "2025-05-01", 
  end_date: "2025-05-15", 
  reason: "家庭度假", 
  countries: ["USA", "UK"] 
})

// 带自定义联系信息:
request_global_leave({ 
  employee_id: "E002", 
  start_date: "2025-05-01", 
  end_date: "2025-05-15", 
  reason: "家庭度假", 
  countries: ["USA", "UK"], 
  contact_info: { 
    email: "bob.vacation@example.com", 
    phone: "+1-555-123-4567" 
  } 
})

4. translate_text

在具有 HR/HCM 上下文感知的情况下翻译文本。

// 示例用法:
translate_text({ text: "欢迎加入团队!", target_language: "zh-CN", source_language: "en-US" })

📦 安装指南

要安装此服务器,请按照以下步骤操作:

  1. 克隆存储库:
git clone https://github.com/your-username/hr-mcp-server.git
cd hr-mcp-server
  1. 安装依赖项:
npm install
  1. 启动服务器:
node index.js

📄 许可证

本项目采用 MIT 许可证。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client