SmartHR MCP Server

SmartHR MCP Server

TomoyaGoto

开发者工具
访问服务器

README

SmartHR MCP 服务器

这个项目是对应 SmartHR API 的 MCP (Model Context Protocol) 服务器。 可以将 SmartHR 的员工、部门、职位、雇用形式、等级等信息作为 MCP 工具来处理。

构成

smarthr-mcp-server/
│
├── .env_sample
├── .gitignore
├── main.py
├── pyproject.toml
├── README.md
├── requirements.txt
├── smarthr_mcp_server.json         # 作为 MCP 工具的定义和命令信息(用于 MCP 对应客户端)
├── uv.lock
│
└── smarthr_mcp_server/
    ├── server.py                   # 基于 FastMCP 的 MCP 服务器实现
    ├── smarthr_client.py          # 负责与 SmartHR API 通信的客户端模块
    └── smarthr_mcp_server.egg-info/

环境变量(.env)

与 SmartHR API 通信需要以下环境变量。

SMARTHR_API_BASE_URL=https://app.smarthr.jp/api
SMARTHR_API_KEY=YOUR_SMARTHR_API_TOKEN

使用方法

  1. 克隆或下载仓库

  2. 设置环境变量(.env)

  3. Claude for Desktop 的设置

    smarthr_mcp_server.json 的内容追加到 claud_desktop_config.json

  4. 重启 Claude for Desktop

    % killall "Claude"
    % open -a Claude
    

对应工具一览

注册 相关

函数名 说明
smarthr_create_crew() 员工
smarthr_create_department() 部门
smarthr_create_dependent() 家族信息
smarthr_create_employment_type() 雇用形式
smarthr_create_grade() 等级
smarthr_create_job_category() 职种
smarthr_create_job_title() 职位

删除 相关

函数名 说明
smarthr_delete_crew() 员工
smarthr_delete_dependent() 家族信息
smarthr_delete_employment_type() 雇用形式
smarthr_delete_grade() 等级
smarthr_delete_job_category() 职种
smarthr_delete_job_title() 职位

废止 相关

函数名 说明
smarthr_discontinue_department() 部门

获取 相关

函数名 说明
smarthr_get_crew() 员工
smarthr_get_department() 部门
smarthr_get_dependent() 家族信息
smarthr_get_employment_type() 雇用形式
smarthr_get_grade() 等级
smarthr_get_job_category() 职种
smarthr_get_job_title() 职位

邀请 相关

函数名 说明
smarthr_invite_crew() 员工

列表获取 相关

函数名 说明
smarthr_list_crews() 员工
smarthr_list_departments() 部门
smarthr_list_dependents() 家族信息
smarthr_list_employment_types() 雇用形式
smarthr_list_grades() 等级
smarthr_list_job_categories() 职种
smarthr_list_job_titles() 职位
smarthr_list_relations() 续柄

部分更新 相关

函数名 说明
smarthr_partial_update_department() 部门
smarthr_partial_update_dependent() 家族信息
smarthr_partial_update_employment_type() 雇用形式
smarthr_partial_update_grade() 等级
smarthr_partial_update_job_category() 职种
smarthr_partial_update_job_title() 职位

搜索 相关

函数名 说明
smarthr_search_crews() 员工

更新 相关

函数名 说明
smarthr_update_crew() 员工
smarthr_update_department() 部门
smarthr_update_dependent() 家族信息
smarthr_update_employment_type() 雇用形式
smarthr_update_grade() 等级
smarthr_update_job_category() 职种
smarthr_update_job_title() 职位

许可证

MIT

免责声明

对于使用本程序进行的任何行为以及由此造成的损害或损失,我们概不负责。

推荐服务器

Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
MCP Package Docs Server

MCP Package Docs Server

促进大型语言模型高效访问和获取 Go、Python 和 NPM 包的结构化文档,通过多语言支持和性能优化来增强软件开发。

精选
本地
TypeScript
Claude Code MCP

Claude Code MCP

一个实现了 Claude Code 作为模型上下文协议(Model Context Protocol, MCP)服务器的方案,它可以通过标准化的 MCP 接口来使用 Claude 的软件工程能力(代码生成、编辑、审查和文件操作)。

精选
本地
JavaScript
@kazuph/mcp-taskmanager

@kazuph/mcp-taskmanager

用于任务管理的模型上下文协议服务器。它允许 Claude Desktop(或任何 MCP 客户端)在基于队列的系统中管理和执行任务。

精选
本地
JavaScript
mermaid-mcp-server

mermaid-mcp-server

一个模型上下文协议 (MCP) 服务器,用于将 Mermaid 图表转换为 PNG 图像。

精选
JavaScript
Jira-Context-MCP

Jira-Context-MCP

MCP 服务器向 AI 编码助手(如 Cursor)提供 Jira 工单信息。

精选
TypeScript
Linear MCP Server

Linear MCP Server

一个模型上下文协议(Model Context Protocol)服务器,它与 Linear 的问题跟踪系统集成,允许大型语言模型(LLM)通过自然语言交互来创建、更新、搜索和评论 Linear 问题。

精选
JavaScript
Sequential Thinking MCP Server

Sequential Thinking MCP Server

这个服务器通过将复杂问题分解为顺序步骤来促进结构化的问题解决,支持修订,并通过完整的 MCP 集成来实现多条解决方案路径。

精选
Python
Curri MCP Server

Curri MCP Server

通过管理文本笔记、提供笔记创建工具以及使用结构化提示生成摘要,从而实现与 Curri API 的交互。

官方
本地
JavaScript