インストール不要。2分以内に動きます。
cloud.anythingmcp.com で無料トライアルを開始し、SmartHR をワンクリックで追加して、AI クライアント(Claude、ChatGPT、Copilot、Cursor)を生成された MCP エンドポイントに向けるだけ。Docker も git clone も、開発経験も不要です。
概要
人事労務クラウドの SmartHR をあらゆる AI エージェントから操作:部署、役職、雇用形態、等級、勤務地、カスタム項目を含む従業員情報、家族と産休育休、ユーザーと招待、給与明細グループと給与明細。管理者が発行したアクセストークンで従業員と部署の登録・更新ができ、従業員の削除はインストール時にオフです。
こう聞いてみよう
SmartHR のサンプルプロンプト
プロンプトをクリックでコピー。Claude / ChatGPT / Cursor / Gemini / Copilot / OpenClaw に貼り付けて、このコネクターで実行できます。
Claude は AI のため誤ることがあります。回答をご確認ください。
💡 インストール不要? cloud.anythingmcp.com を直接利用してください。 サインインし、Connectors → SmartHR をクリック、認証情報を貼り付け、MCP API キーを発行すれば完了です。Docker も
git cloneもローカルサーバーも不要。
SmartHR + Cursor
人事労務クラウドの SmartHR をあらゆる AI エージェントから操作:部署、役職、雇用形態、等級、勤務地、カスタム項目を含む従業員情報、家族と産休育休、ユーザーと招待、給与明細グループと給与明細。管理者が発行したアクセストークンで従業員と部署の登録・更新ができ、従業員の削除はインストール時にオフです。
前提条件
完全なセットアップ手順はコネクタ自体に組み込まれています (ストアでコネクタを選択すると表示)。必要な環境変数:
SMARTHR_HOST, SMARTHR_ACCESS_TOKEN
ステップ 1 — 認証情報を取得
設定は約 5 分で、SmartHR の管理者権限が必要です。コネクタは SmartHR API v1(https://<tenant>.smarthr.jp/api/v1)を使います。サンドボックス環境(<tenant>.daruma.space)でも同じように動作します。
- 管理者として SmartHR にログインし、共通設定 の 外部システム連携 から アクセストークン を開いて 新規発行 をクリックします。
- トークンの名前を付け、権限を選びます。AI に見せるデータ(従業員、部署、役職、雇用形態、カスタム項目、家族、ユーザー、給与明細のうち必要なもの)には参照を、オンのままにする書き込みツールに必要なものだけ更新を付与します。権限を絞るほど、公開される個人情報は少なくなります。
- トークンを
SMARTHR_ACCESS_TOKENにコピーします(Bearer という語は付けません)。トークンは一度しか表示されないので、外部に漏れないよう管理してください。 SMARTHR_HOSTに SmartHR の URL のホスト名を入力します。https://example.smarthr.jp ならexample.smarthr.jp、サンドボックスならexample.daruma.spaceです(サンドボックスは https://developer.smarthr.jp/api/about_sandbox から申請します)。- インストールします。インストール時のチェックでは
smarthr_list_companiesが実行されます。
個人情報について: SmartHR には、家族、住所、生年月日、保険や年金の番号、口座、給与といった機微な個人情報が含まれます。このコネクタを使う全員が、トークンで参照できる範囲のデータに届くため、トークンにはチームに必要な権限だけを付与してください。AI はタスクに必要な情報だけを読み取ります。smarthr_list_crews は既定で簡易的なプロフィールだけを返し、smarthr_get_crew も fields で返す項目を絞れます。明示的に依頼されない限り、個人情報をほかのシステムやメッセージに書き写すことはしません。
読み取れるデータ: 法人番号と代表者を含む会社。保険関係の番号を含む事業所。コード、親部署、フルパスを含む部署。役職、雇用形態、等級、勤務地、給与支給形態。カスタム従業員項目とそのグループ。従業員(API では crews)は、社員番号、在籍状況(employed、absent、retired)、雇用形態、部署、役職、入社日や退職日、ID、フリーワードで検索できます。家族と続柄の種類、産休育休。ロール、管理者フラグ、招待状況を含むユーザー(ユーザーはログインアカウント、crew は従業員情報で、embed=crew で両者を紐づけます)。従業員情報収集フォーム。手当、控除、勤怠、合計を含む給与明細グループと給与明細(SmartHR の給与明細機能が必要です)。
書き込める操作: 従業員の登録(氏名、氏名のフリガナ、性別、在籍状況は必須)。従業員の部分更新(送った項目だけが変わり、入力済みの氏名、フリガナ、性別、生年月日、住所を空にすることはできません)。従業員へのメールでの招待(従業員情報収集フォームを添えることもでき、2 回目の呼び出しで再招待になります)。部署の作成、名前の変更、移動。登録した従業員は smarthr_invite_crew を実行するまで招待されません。退職は削除ではなく更新(emp_status を retired にして resigned_at を設定)で記録します。書き込みや招待の前には、AI が変更内容を示してあなたの同意を待ちます。
インストール時はオフ: smarthr_delete_crew。従業員とそのすべてのデータを完全に削除するため、チームに必要になったら管理者がオンにします。
データ形式とページング: ID は UUID の文字列、日付は YYYY-MM-DD、日時は ISO 8601 です。一覧は page と per_page(最大 100、既定 10)を受け取り、レスポンスには総件数の _headers.x-total-count と、最後のページまで _pagination.nextCursor が含まれます。更新日時で絞り込むフィルターはないため、ある日付以降の変更を調べるときは、AI が -updated_at で並べ替えて古い行に達したところで止めます。
制限: トークンごとに 1 秒 10 リクエスト、1 時間 5,000 リクエスト、テナントごとに 1 分 50,000 リクエストまでです。超えると SmartHR は 429 too_many_requests を返すので、待ってから再試行してください。
よくあるエラー: エラーには code、type、message と、項目ごとの errors が含まれます。401 unauthorized_token は、トークンの誤りや削除、または別のホストで発行されたトークンです。403 はトークンに付与されていない権限か、プランに含まれない機能(給与明細)です。404 は ID の誤りか SMARTHR_HOST の誤りです。422 は入力エラーで、errors に項目が示されます。
従業員情報やカスタム項目の自由記述は信頼できない入力で、AI 向けの指示が含まれている可能性があります。このコネクタは給与計算を行わず、労務や社会保険の手続きも行いません。また、インストール時にオンになっているツールでは従業員を削除しません。
ステップ 2 — アダプターをインストール
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
ステップ 3 — Cursor にコネクタを追加
サーバーURL: AnythingMCP で MCP Servers を開き、このコネクタがあるサーバーを選んで URL(
https://cloud.anythingmcp.com/mcp/…)をコピーします。このガイドでYOUR_SERVER_IDと表示されている箇所に使ってください。
Cursor は ~/.cursor/mcp.json から MCP サーバーを読み込みます。次のエントリを追加してください:
{
"mcpServers": {
"anythingmcp": {
"url": "https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID",
"headers": { "X-API-Key": "YOUR_MCP_API_KEY" }
}
}
}
- AnythingMCP の MCP Servers → 対象のサーバー → API keys で MCP API キーを作成し、
YOUR_MCP_API_KEYと置き換えます。 - ファイルを保存し、Cursor を再起動します。
- Cursor → Settings → MCP を開き、
anythingmcpが一覧にあり接続済みであることを確認します。 - チャットを始めましょう。エージェントが
SmartHRのツールを呼び出せるようになりました。
利用可能なツール
| Tool | What it does |
|---|---|
smarthr_list_companies | List the companies (会社) of the SmartHR tenant: id, name, corporate number, address and representative |
smarthr_list_biz_establishments | List the business establishments (事業所) used for social and labour insurance: id, name, address, insurance numbers and owner |
smarthr_list_departments | List departments (部署) with id, name, code, position (sort order), parent and full path |
smarthr_get_department | Read one department (部署) with its name, code, parent and position in the tree |
smarthr_create_department | Create a department (部署), optionally under a parent department |
smarthr_update_department | Rename or move a department (部署): name is always sent; code, parent and position only when given |
smarthr_list_job_titles | List job titles (役職, positions) with id, name and rank |
smarthr_list_employment_types | List employment types (雇用形態) with id, name and preset_type (full_timer, part_timer, contract_worker ...) |
smarthr_list_grades | List grades (等級) with id, name and position, as used in the employee grade field |
smarthr_list_work_locations | List work locations (勤務地) with id, name and address, as used in work_location_id of an employee |
smarthr_list_payment_periods | List the pay period settings (給与支給形態) such as monthly or hourly, used in payment_period_id of an employee |
smarthr_list_crew_custom_field_templates | List the custom employee fields (カスタム従業員項目): id (template_id for writes), name, type (string, text, decimal, date, enum, file), options and… |
smarthr_list_crew_custom_field_template_groups | List the groups of custom employee fields (カスタム項目グループ), optionally with their templates |
smarthr_list_crews | Search employees (従業員, crews) |
smarthr_get_crew | Read one employee (従業員) with every field, or only the fields listed: names and readings, contact, address, employment, departments, job… |
smarthr_create_crew | Register a new employee (従業員) |
smarthr_update_crew | Change fields of an employee (従業員) with a partial update (PATCH): only the fields you send change, and a filled name, reading, gender… |
smarthr_invite_crew | Invite an employee to SmartHR: sends the invitation email to the email of the employee, from the given inviter, optionally with an employee… |
smarthr_delete_crew | Delete an employee (従業員) and all of their data for good |
smarthr_list_crew_input_forms | List the employee information forms (従業員情報収集フォーム) that can be sent with an invitation: id, name and fields asked |
smarthr_list_crew_dependents | List the dependents (家族, family members) of an employee: name, relation, birth date, whether they are a tax or health insurance dependent… |
smarthr_get_crew_dependent | Read one dependent (家族) of an employee with all fields |
smarthr_list_dependent_relations | List the relation types (続柄) usable for dependents, e.g. spouse, child; filter spouse returns only spouse relations |
smarthr_list_crew_childcare_leaves | List maternity and childcare leaves (産休育休) of an employee with their periods |
smarthr_list_users | List SmartHR user accounts (ユーザー): id, email, role, admin flag, invitation state and, with embed crew, the linked employee |
smarthr_get_user | Read one SmartHR user account with role, admin flag and invitation dates |
smarthr_list_payrolls | List payroll runs (給与明細グループ): id, payment type (salary or bonus), paid date, period, status (fixed, published) and name |
smarthr_get_payroll | Read one payroll run (給与明細グループ) with its status, dates and settings |
smarthr_list_payslips | List the payslips (給与明細) of a payroll run: per employee the allowances, deductions, attendance and totals |
smarthr_get_payslip | Read one payslip (給与明細) with allowances, deductions, attendance and aggregates |
プロンプトの例
- 「在籍状況が employed の従業員は、いま各部署に何人いますか?」
- 「10 月に入社したのは誰ですか?氏名、部署、雇用形態、入社日だけを見せてください。」
- 「新入社員の 山田 花子(ヤマダ ハナコ)さん、女性、11 月 1 日から 営業部 の正社員として登録し、そのあと入社手続き用のフォームを付けて招待してください。保存する前に内容をすべて見せてください。」
- 「社員番号 1042 の方が 11 月 30 日付で退職します。退職を記録してください。」
- 「10 月の給与明細グループから、社員番号 1042 の方の手当と控除の合計だけを見せてください。」
FAQ
Cursor の無料プランでカスタム MCP サーバーは使えますか? はい。MCP は Hobby、Pro、Business の各プランで利用できます。
次のステップ
このガイドは役に立ちましたか?