All skills
freee avatar

/freee-api-skill

@f5d1212
by freeefreee/freee-mcp503 stars
58

freee-mcp / freee-sign-mcp と連携するスキル。会計・人事労務・請求書・工数管理・販売・IT管理・固定資産・業務委託管理・サーベイ・開業・人事評価・申告・サイン(電子契約)の詳細APIリファレンスと使い方ガイドを提供。freee の経費申請・取引登録・勤怠打刻・給与明細・見積書・試算表・仕訳・従業員管理・工数登録・売上管理・SaaSアカウント管理・備品管理・固定資産管理・業務委託先の企業ユーザー/部門管理・サーベイ企画/実施回の取得・開業申請用データの参照/更新・人事評価結果の取得・法人税申告データや帳票の参照・電子契約の文書管理などの操作やAPI仕様を調べたいときに使う。ユーザーが freee のデータ操作、会計処理、人事労務管理、請求・見積、プロジェクト工数管理、販売管理、IT管理、固定資産管理、業務委託管理、サーベイ、開業、人事評価、申告、電子契約について質問や操作を依頼してきた場合は、明示的に freee と言及していなくても、このスキルの利用を検討すること。サインは別途 freee-sign-mcp の設定が必要。

Use this Skill: https://skilld.dev/gh/freee/freee-mcp/freee-api-skill

This session only. Nothing lands on disk.

recipespm-workload-registration.md

≈823 tokens on demand. Your agent reads this file only when SKILL.md points to it.

工数の安全な登録(PM・HR連携ワークフロー)

freee工数管理と人事労務APIを連携した工数登録ワークフロー。勤怠チェック・重複確認・ユーザー承認を経て登録することで、休日・有給取得日への登録、既存工数との重複、締め済み日へのエラー登録を防ぐ。

工数APIの基本操作は recipes/pm-operations.md、勤怠APIの基本操作は recipes/hr-attendance-operations.md を参照。

Step 1: ユーザーID解決

PM側の person_id と HR側の employee_id を紐付ける。

PM側は GET /users/me(service: pm)のレスポンスの companies[].person_me.id が person_id、companies[].id が company_id。

HR側の employee_id は次のいずれかで取得する。

  • PM GET /people(company_id と person_ids[] を指定)のレスポンス people[].payroll_employee_id
  • HR GET /api/v1/users/me のレスポンス companies[].employee_id(payroll_employee_id が null の場合はこちら)

どちらも null の場合は HR 未利用のユーザーなので、Step 2 をスキップして Step 3 に進む。self_only 権限の詳細は recipes/hr-attendance-operations.md を参照。

Step 2: 勤怠情報の事前確認

対象日の勤怠記録を取得し、以下のいずれかに該当する場合は登録をブロックする。

freee_api_get {
  "service": "hr",
  "path": "/api/v1/employees/{employee_id}/work_records/2025-03-10",
  "query": {
    "company_id": 123456
  }
}
  • 休日: day_pattern が prescribed_holiday または legal_holiday
  • 欠勤: is_absence が true
  • 有給: paid_holidays が空でない
  • 締め済み: is_editable が false

Step 3: 既存工数の重複チェック

PM GET /workloads で対象月の既存工数を取得し、同じ日・同じプロジェクトに登録済みでないか確認する。既存レコードがあればブロックする。

Step 4: ユーザー承認(Human-in-the-Loop)

以下の情報をユーザーに提示し、承認を得てから登録を実行する。

  • 登録対象日
  • 勤怠状態(Step 2 の結果)
  • 対象プロジェクト
  • 登録時間
  • 業務内容(メモ)
  • 既存工数の有無(Step 3 の結果)

Step 5: 工数登録の実行

PM POST /workloads で登録する(例は recipes/pm-operations.md 参照)。

Step 6: 登録結果の検証

PM GET /workloads で登録した工数を取得し、日・プロジェクト・時間が正しいことを確認してユーザーに報告する。

Tips

複数日分を一括登録する場合は、各日ごとに Step 2〜4 を繰り返す。ブロック条件に該当した日はスキップし、ユーザーに報告する。

権限の制約:

  • 管理者権限がない場合、他の従業員の勤怠情報は取得できない(self_only 制約)
  • 自分の工数登録のみであれば self_only 権限で実行可能
  • 他者の工数を登録する場合は管理者権限が必要

リファレンス

  • references/pm-workloads.md - 工数実績
  • references/pm-people.md - 従業員(payroll_employee_id)
  • references/pm-users.md - ログインユーザー
  • references/hr-attendances.md - 勤怠

Source: SKILL.md on GitHub

1 warningtoday5 checks · Risk SAFE
  • Gen Agent Trust Hubtoday

    This skill provides a comprehensive interface for AI agents to interact with the freee suite of APIs (Accounting, HR, Invoices, IT Management, etc.) via the Model Context Protocol (MCP). It includes exhaustive documentation, usage recipes, and security-conscious guidelines that instruct the agent to treat all retrieved financial and tax data as information rather than executable commands.

  • Sockettoday

    No alerts

  • Snyktoday

    Risk: MEDIUM · 1 issue

  • Runlayer6mo

    3/83 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at f5d1212. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 days ago.

Activeupdated 3 weeks ago
metadata
{
  "author": "freee_jp",
  "homepage": "https://github.com/freee/freee-mcp"
}
  • API
  • MCP
  • freee
  • accounting
  • hr
  • invoicing
  • project-management
  • expense-tracking
  • payroll

README badge

README badge for freee/freee-mcp

Provides detailed API reference and usage guides for freee's accounting, HR, invoicing, project management, sales, and IT management services through the freee-mcp MCP server. Use this skill when you need to query or perform operations on freee data like expense reports, transactions, employee records, timesheets, invoices, or project hours.

Generated from the current SKILL.md.

Does this skill work with both Remote MCP and local setup?
Yes. The skill supports Remote MCP (recommended, auto-authenticated via browser) and local MCP server setup (requires running `npx freee-mcp configure`). Use `freee_server_info` to check which transport mode is active.
Which freee products does this skill cover?
The skill covers accounting, HR/payroll, invoicing, project time tracking, sales management, IT management, and expense applications. Signing (electronic contracts) requires a separate `freee-sign-mcp` setup.
Do I need to specify a company ID for API calls?
Yes. You must first fetch the current company ID using `freee_get_current_company`, and it must match the company you want to operate on. Use `freee_set_current_company` to switch between companies before making API calls.
What should I do if I get an authentication error?
For Remote MCP, the client will prompt for re-authentication; if that fails, remove and re-add the custom connector. For local mode, use `freee_auth_status` to check status, then run `freee_clear_auth` followed by `freee_authenticate`.
Where do I find API details and usage examples?
The skill includes `recipes/` for common workflows (expense applications, deals, payroll, invoicing, etc.) and `references/` with detailed API parameters and response specs. Start with relevant recipes before consulting references.

Generated from the current SKILL.md. These answers refresh after source changes.