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.

referenceshr-employees.md

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

従業員

従業員の操作

GET /api/v1/companies/{company_id}/employees — 全期間の従業員一覧の取得

概要 指定した事業所に所属する従業員をリストで返します。

注意点 管理者権限を持ったユーザーのみ実行可能です。 退職ユーザーも含めて取得可能です。

パラメータ

  • limit: integer - 取得レコードの件数 (デフォルト: 50, 最小: 1, 最大: 100)
  • offset: integer - 取得レコードのオフセット (デフォルト: 0)
  • company_id* (path): integer - 事業所ID
  • with_no_payroll_calculation: boolean - trueを指定すると給与計算対象外の従業員情報をレスポンスに含めます。

GET /api/v1/employees — 従業員一覧の取得

概要 指定した対象年月に事業所に所属する従業員をリストで返します。

注意点 管理者権限を持ったユーザーのみ実行可能です。 指定した年月に退職済みユーザーは取得できません。 保険料計算方法が自動計算の場合、対応する保険料の直接指定金額は無視されnullが返されます。(例: 給与計算時の健康保険料の計算方法が自動計算の場合、給与計算時の健康保険料の直接指定金額はnullが返されます) 事業所が定額制の健康保険組合に加入している場合、保険料の直接指定金額は無視されnullが返されます。

パラメータ

  • company_id*: integer - 事業所ID

  • year*: integer - 従業員情報を取得したい年

  • month*: integer - 従業員情報を取得したい月

    締め日支払い日設定が翌月払いの従業員情報の場合は、 指定したmonth + 1の値が検索結果として返します。

    翌月払いの従業員の2022/01の従業員情報を取得する場合は、year=2021,month=12を指定してください。

  • limit: integer - 取得レコードの件数 (デフォルト: 50, 最小: 1, 最大: 100)

  • offset: integer - 取得レコードのオフセット (デフォルト: 0)

  • with_no_payroll_calculation: boolean - trueを指定すると給与計算対象外の従業員情報をレスポンスに含めます。

レスポンス

  • employees: array[object]
  • total_count: integer(int32) - 合計件数

POST /api/v1/employees — 従業員の作成

概要 従業員を新規作成します。

注意点 管理者権限を持ったユーザーのみ実行可能です。

リクエストボディ

  • company_id*: integer(int32) - 作成対象事業所ID(必須) (最小: 1, 最大: 2147483647)
  • employee*: object
    • num: string - 従業員番号

      従業員を判別しやすいよう管理することができます。(例: 1人目の正社員を A-001 と入力) 例: A-001

    • working_hours_system_name: string - 勤務・賃金設定名 で設定した名称を指定してください。

      • 未指定の際は、最初に登録したデータが利用されます。
      • 入力パラメータのno_payroll_calculationがtrueの場合に指定するとエラーになります。 例: 固定
    • company_reference_date_rule_name: string - 締め日支払い日グループ名 で設定した締め日支払い日を指定してください。

      • 未指定の際は、最初に登録したデータが利用されます。
      • 入力パラメータのno_payroll_calculationがtrueの場合に指定するとエラーになります。 例: 15日締め(当月25日払い)
    • last_name*: string - 姓(必須)

      last_nameとfirst_nameを空白文字で結合した文字列がdisplay_nameとして登録されます。

      • 例)last_name=田中、first_name=太郎の場合、display_name=田中 太郎
      • display_nameはput apiで更新可能です。 例: 山田
    • first_name*: string - 名(必須)

      last_nameとfirst_nameを空白文字で結合した文字列がdisplay_nameとして登録されます。

      • 例)last_name=田中、first_name=太郎の場合、display_name=田中 太郎
      • display_nameはput apiで更新可能です。 例: 太郎
    • last_name_kana*: string - 姓カナ(必須) 例: ヤマダ

    • first_name_kana*: string - 名カナ(必須) 例: タロウ

    • birth_date*: string(date) - 生年月日(必須) 例: 2000-01-01 (パターン: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$)

    • entry_date*: string(date) - 入社日(必須) 例: 2021-04-01 (パターン: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$)

    • pay_calc_type: string - 給与方式 monthly: 月給, daily: 日給, hourly: 時給

      • フレックスタイム制を使用している場合はmonthly以外指定できません。
      • 入力パラメータのno_payroll_calculationがfalseの場合は必須になります。
      • 入力パラメータのno_payroll_calculationがtrueの場合に指定するとエラーになります。 (選択肢: monthly, daily, hourly) 例: monthly
    • pay_amount: integer(int32) - 基本給

      • 入力パラメータのno_payroll_calculationがfalseの場合は必須になります。
      • 入力パラメータのno_payroll_calculationがtrueの場合に指定するとエラーになります。 例: 220000 (最小: 0, 最大: 99999999)
    • gender: string - 性別 unselected: 未選択, male: 男性, female: 女性(デフォルト: unselected: 未選択) (選択肢: unselected, male, female) 例: male

    • married: boolean - 配偶者の有無(デフォルト: false)

    • no_payroll_calculation: boolean - 給与計算対象外の従業員情報を作成する場合はtrueを指定します 例: true

レスポンス

  • employee: object

GET /api/v1/employees/{id} — 従業員の取得

概要 指定したIDの従業員を返します。

注意点 管理者権限を持ったユーザーのみ実行可能です。 指定した年月に退職済みユーザーは取得できません。 保険料計算方法が自動計算の場合、対応する保険料の直接指定金額は無視されnullが返されます。(例: 給与計算時の健康保険料の計算方法が自動計算の場合、給与計算時の健康保険料の直接指定金額はnullが返されます) 事業所が定額制の健康保険組合に加入している場合、保険料の直接指定金額は無視されnullが返されます。

パラメータ

  • company_id*: integer - 事業所ID

  • year*: integer - 従業員情報を取得したい年

  • month*: integer - 従業員情報を取得したい月

    締め日支払い日設定が翌月払いの従業員情報の場合は、 指定したmonth + 1の値が検索結果として返します。

    翌月払いの従業員の2022/01の従業員情報を取得する場合は、year=2021,month=12を指定してください。

  • id* (path): integer - 従業員ID

レスポンス

POST /api/v1/employees と同じ

PUT /api/v1/employees/{id} — 従業員の更新

概要 指定した従業員の情報を更新します。

注意点 管理者権限を持ったユーザーのみ実行可能です。

パラメータ

  • id* (path): integer - 従業員ID

リクエストボディ

  • company_id*: integer(int32) - 更新対象事業所ID(必須) 例: 1 (最小: 1, 最大: 2147483647)
  • year: integer(int32) - 更新対象年
    • 給与計算対象の従業員情報の場合は必須になります。 例: 2021 (最小: 2000, 最大: 2100)
  • month: integer(int32) - 更新対象月
    • 給与計算対象の従業員情報の場合は必須になります。
    • 締め日支払い日設定が翌月払いの従業員情報の場合は、 指定したmonth + 1の値が更新されます。
    • 翌月払いの従業員の2022/01の従業員情報を更新する場合は、year=2021,month=12を指定してください。 例: 1 (最小: 1, 最大: 12)
  • employee*: object
    • num: string - 従業員番号

      従業員を判別しやすいよう管理することができます。(例: 1人目の正社員を A-001 と入力) 例: A-001

    • display_name: string - 従業員名(freee人事労務上での表示にのみ使用される名前です。出力書類には姓名が使用されます。)

      • 給与計算対象外の従業員情報の場合は必須になります。 例: 山田 太郎
    • base_pension_num: string - 基礎年金番号 数値文字列10桁固定長 例: 1111111111 例: 1111111111

    • employment_insurance_reference_number: string - 被保険者番号(雇用保険) 数値文字列11桁固定長 例: 11111111111

      • 給与計算対象外の従業員情報の場合に指定するとエラーになります。 例: 11111111111
    • birth_date*: string(date) - 生年月日 null不可 例: 2000-01-01 (パターン: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$)

    • entry_date*: string(date) - 入社日 null不可 例: 2021-04-01 (パターン: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$)

    • retire_date: string(date) - 退職日

      • 退職していない場合は指定不要です。
      • 指定する場合はentry_date以降の日付を指定してください。
      • retire_dateをクリアする場合、nullを指定してください。 例: 2022-03-31 (パターン: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$)
    • company_reference_date_rule_name: string - 締め日支払い日グループ名 で設定した締め日支払い日を指定してください。

      • 未指定の際は、締め日支払い日は変わりません。
      • 指定した従業員が給与計算対象外の場合、指定するとエラーになります。 例: 当月締め翌月払い

レスポンス

POST /api/v1/employees と同じ

DELETE /api/v1/employees/{id} — 従業員の削除

概要 指定したIDの従業員を削除します。

注意点 管理者権限を持ったユーザーのみ実行可能です。

パラメータ

  • id* (path): integer - 従業員ID
  • company_id*: integer - 事業所ID

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.