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.

referencesaccounting-account-items.md

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

Account items

勘定科目

GET /api/1/account_items/{id} — 勘定科目の取得

概要 指定した勘定科目を取得する 事業所の設定で勘定科目コードを使用する設定にしている場合、レスポンスで勘定科目コード(code)を返します

パラメータ

  • company_id*: integer(int64) - 事業所ID
  • id* (path): integer(int64) - 勘定科目ID

レスポンス

  • account_item*: object

PUT /api/1/account_items/{id} — 勘定科目の更新

概要 指定した勘定科目を更新する

注意点 tax_codeは、指定した事業所の税区分一覧の取得APIでavailableの値がtrue、かつ経過措置税区分ではない5%の税区分を確認して、そのcodeを指定して勘定科目の更新をしてください。例 課対仕入の場合、34を指定してください codeを利用するには、事業所の設定で勘定科目コードを使用する設定にする必要があります。

パラメータ

  • id* (path): integer(int64) - 勘定科目ID

リクエストボディ*

  • company_id*: integer(int64) - 事業所ID 例: 1 (最小: 1)
  • account_item*: object
    • name: string - 勘定科目名 (30文字以内) 口座に紐付かない勘定科目の更新時は必須です。 口座に紐付く勘定科目の更新時は指定することができません。 例: 新しい勘定科目
    • shortcut: string - ショートカット1 (20文字以内) 例: NEWACCOUNTITEM
    • shortcut_num: string - ショートカット2 (20文字以内) 例: 999
    • code: string - 勘定科目コード (20文字以内)。半角英数字・ハイフン・アンダースコアのみ利用できます。事業所の設定で勘定科目コードを使用する設定にしている場合のみ有効で、設定が無効の場合は指定しても無視されます。 例: 999 (パターン: ^[0-9a-zA-Z_-]+$)
    • tax_code*: integer(int64) - 税区分コード 指定できるコードは本APIの注意点をご確認ください。 例: 1 (最小: 0, 最大: 2147483647)
    • group_name*: string - 決算書表示名(小カテゴリー) Selectablesフォーム用選択項目情報エンドポイント(account_groups.name)で取得可能です 例: その他預金
    • account_category_id*: integer(int64) - 勘定科目カテゴリーID Selectablesフォーム用選択項目情報エンドポイント(account_groups.account_category_id)で取得可能です 例: 1 (最小: 1)
    • corresponding_income_id*: integer(int64) - 収入取引相手勘定科目ID 例: 1
    • corresponding_expense_id*: integer(int64) - 支出取引相手勘定科目ID 例: 1 (最小: 1)
    • accumulated_dep_account_item_id: integer(int64) - 減価償却累計額勘定科目ID(法人のみ利用可能) 例: 1 (最小: 1)
    • searchable: integer(int64) - 検索可能:2, 検索不可:3(登録時未指定の場合は2で登録されます。更新時未指定の場合はsearchableは変更されません。) 例: 2 (最小: 2, 最大: 3)
    • items: array[object] - 勘定科目に紐付ける品目の一覧
    • partners: array[object] - 勘定科目に紐付ける取引先の一覧

レスポンス

GET /api/1/account_items/{id} と同じ

DELETE /api/1/account_items/{id} — 勘定科目の削除

概要 指定した勘定科目を削除する

注意点 削除できる勘定科目は、追加で作成したカスタム勘定科目のみです。 デフォルトで存在する勘定科目や口座の勘定科目は削除できません。

パラメータ

  • id* (path): integer(int64) - 勘定科目ID
  • company_id*: integer(int64) - 事業所ID

GET /api/1/account_items — 勘定科目一覧の取得

概要 指定した事業所の勘定科目一覧を取得する

定義 default_tax_code : リクエストした日時を基準とした税区分コード

注意点 default_tax_code は勘定科目作成・更新時に利用するものではありません 事業所の設定で勘定科目コードを使用する設定にしている場合、レスポンスで勘定科目コード(code)を返します

パラメータ

  • company_id*: integer(int64) - 事業所ID

  • base_date: string - 基準日(yyyy-mm-dd)。指定した場合、勘定科目に紐づく税区分(default_tax_code)が、基準日の税率に基づいて返ります。指定しない場合はリクエスト日が基準日になります。

  • start_update_date: string - 更新日で絞込:開始日(yyyy-mm-dd)。指定した日以降に更新された勘定科目を返します。

  • end_update_date: string - 更新日で絞込:終了日(yyyy-mm-dd)。指定した日以前に更新された勘定科目を返します。

  • keyword: string - 検索キーワード。勘定科目コード・勘定科目名・ショートカット1・2 のいずれかに対する部分一致で絞り込みます。 未指定または空文字の場合は絞り込みません。 以下のいずれかで区切って複数キーワードを指定した場合は AND 検索になります。

    半角スペース

    全角スペース

    タブ

レスポンス

  • account_items*: array[object]

POST /api/1/account_items — 勘定科目の作成

概要 指定した事業所の勘定科目を作成する

注意点 tax_codeは、指定した事業所の税区分一覧の取得APIでavailableの値がtrue、かつ経過措置税区分ではない5%の税区分を確認して、そのcodeを指定して勘定科目の作成をしてください。例 課対仕入の場合、34を指定してください codeを利用するには、事業所の設定で勘定科目コードを使用する設定にする必要があります。

リクエストボディ*

  • company_id*: integer(int64) - 事業所ID 例: 1 (最小: 1)
  • account_item*: object
    • name*: string - 勘定科目名 (30文字以内) 例: 新しい勘定科目
    • shortcut: string - ショートカット1 (20文字以内) 例: NEWACCOUNTITEM
    • shortcut_num: string - ショートカット2 (20文字以内) 例: 999
    • code: string - 勘定科目コード (20文字以内)。半角英数字・ハイフン・アンダースコアのみ利用できます。事業所の設定で勘定科目コードを使用する設定にしている場合のみ有効で、設定が無効の場合は指定しても無視されます。 例: 999 (パターン: ^[0-9a-zA-Z_-]+$)
    • tax_code*: integer(int64) - 税区分コード 指定できるコードは本APIの注意点をご確認ください。 例: 1 (最小: 0, 最大: 2147483647)
    • group_name*: string - 決算書表示名(小カテゴリー) Selectablesフォーム用選択項目情報エンドポイント(account_groups.name)で取得可能です 例: その他預金
    • account_category_id*: integer(int64) - 勘定科目カテゴリーID Selectablesフォーム用選択項目情報エンドポイント(account_groups.account_category_id)で取得可能です 例: 1 (最小: 1)
    • corresponding_income_id*: integer(int64) - 収入取引相手勘定科目ID 例: 1 (最小: 1)
    • corresponding_expense_id*: integer(int64) - 支出取引相手勘定科目ID 例: 1 (最小: 1)
    • accumulated_dep_account_item_id: integer(int64) - 減価償却累計額勘定科目ID(法人のみ利用可能) 例: 1 (最小: 1)
    • searchable: integer(int64) - 検索可能:2, 検索不可:3(登録時未指定の場合は2で登録されます。更新時未指定の場合はsearchableは変更されません。) 例: 2 (最小: 2, 最大: 3)
    • items: array[object] - 勘定科目に紐付ける品目の一覧
    • partners: array[object] - 勘定科目に紐付ける取引先の一覧

レスポンス

GET /api/1/account_items/{id} と同じ

PUT /api/1/account_items/code/upsert — 勘定科目の更新(存在しない場合は作成)

概要 勘定科目コードをキーに、指定した勘定科目の情報を更新(存在しない場合は作成)する リクエストのトップレベルのcodeに指定した勘定科目コードに一致する勘定科目が存在する場合は更新(ステータスコード200)、存在しない場合は作成(ステータスコード201)します

注意点 本APIを利用するには、事業所の設定で勘定科目コードを使用する設定にする必要があります。設定が無効の場合はエラー(ステータスコード400)になります。 更新対象を特定する勘定科目コードはトップレベルのcodeで指定してください。account_item.codeは指定できません(指定した場合はエラーになります)。 tax_codeは、指定した事業所の税区分一覧の取得APIでavailableの値がtrue、かつ経過措置税区分ではない5%の税区分を確認して、そのcodeを指定して勘定科目の更新をしてください。例 課対仕入の場合、34を指定してください

リクエストボディ*

  • code*: string - 勘定科目コード (20文字以内)。半角英数字・ハイフン・アンダースコアのみ利用できます。このコードをキーに勘定科目を検索し、一致する勘定科目が存在すれば更新、存在しなければ作成します。 例: 999 (パターン: ^[0-9a-zA-Z_-]+$)
  • company_id*: integer(int64) - 事業所ID 例: 1 (最小: 1)
  • account_item*: object
    • name: string - 勘定科目名 (30文字以内) 口座に紐付かない勘定科目の更新時は必須です。 口座に紐付く勘定科目の更新時は指定することができません。 例: 新しい勘定科目
    • shortcut: string - ショートカット1 (20文字以内) 例: NEWACCOUNTITEM
    • shortcut_num: string - ショートカット2 (20文字以内) 例: 999
    • tax_code*: integer(int64) - 税区分コード 指定できるコードは本APIの注意点をご確認ください。 例: 1 (最小: 0, 最大: 2147483647)
    • group_name*: string - 決算書表示名(小カテゴリー) Selectablesフォーム用選択項目情報エンドポイント(account_groups.name)で取得可能です 例: その他預金
    • account_category_id*: integer(int64) - 勘定科目カテゴリーID Selectablesフォーム用選択項目情報エンドポイント(account_groups.account_category_id)で取得可能です 例: 1 (最小: 1)
    • corresponding_income_id*: integer(int64) - 収入取引相手勘定科目ID 例: 1 (最小: 1)
    • corresponding_expense_id*: integer(int64) - 支出取引相手勘定科目ID 例: 1 (最小: 1)
    • accumulated_dep_account_item_id: integer(int64) - 減価償却累計額勘定科目ID(法人のみ利用可能) 例: 1 (最小: 1)
    • searchable: integer(int64) - 検索可能:2, 検索不可:3(登録時未指定の場合は2で登録されます。更新時未指定の場合はsearchableは変更されません。) 例: 2 (最小: 2, 最大: 3)
    • items: array[object] - 勘定科目に紐付ける品目の一覧
    • partners: array[object] - 勘定科目に紐付ける取引先の一覧

レスポンス

既存の勘定科目を更新した場合

  • account_item*: object

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.