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-receipts.md

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

Receipts

ファイルボックス(証憑ファイル)

GET /api/1/receipts — ファイルボックス(証憑ファイル)一覧の取得

概要 指定した事業所のファイルボックス(証憑ファイル)一覧を取得する アップロード日(start_date〜end_date)の期間を指定して取得します。ファイルの実体(バイナリ)は本APIでは取得できないため、ファイルボックス(証憑ファイル)のダウンロードAPI(GET /api/1/receipts/{id}/download)を利用してください。

注意点 一度に取得できる件数は最大3000件です(デフォルト: 50件)。それを超えるファイルを取得する場合は、offsetとlimitを利用してページングしてください。

パラメータ

  • company_id*: integer(int64) - 事業所ID
  • start_date*: string - アップロード日で絞込:開始日 (yyyy-mm-dd)
  • end_date*: string - アップロード日で絞込:終了日 (yyyy-mm-dd)
  • user_name: string - アップロードしたユーザーで絞込。ユーザーの表示名またはメールアドレスの部分一致で指定します。
  • number: integer(int64) - アップロードファイルNo(ファイルボックス上でファイルごとに表示される番号)で絞込
  • comment_type: string - ファイルに付けられたコメントの状態で絞込(posted:コメントあり, raised:未解決, resolved:解決済) (選択肢: posted, raised, resolved)
  • comment_important: boolean - trueを指定した場合、お気に入りコメントが付いたファイルのみが対象になります
  • category: string - ファイルの取引への登録状態で絞込(all:すべて, without_deal:未登録, with_expense_application_line:経費申請中, with_deal:登録済み, ignored:無視。デフォルト: all) (選択肢: all, without_deal, with_expense_application_line, with_deal, ignored)
  • offset: integer(int64) - 取得レコードのオフセット (デフォルト: 0)
  • limit: integer(int64) - 取得レコードの件数 (デフォルト: 50, 最小: 1, 最大: 3000)

レスポンス

  • receipts*: array[object]

POST /api/1/receipts — ファイルボックス(証憑ファイル)のアップロード

概要 ファイルボックス(証憑ファイル)をアップロードする

注意点 リクエストヘッダーの Content-Type は、multipart/form-dataにのみ対応しています。 インボイス制度適格請求書発行事業者登録番号はOCR解析結果が採用されます。OCR解析結果を確認する場合は、Web画面にてご確認ください。上書きする場合は、ファイルボックス(証憑ファイル)の更新APIをご利用ください。 以下の制限を満たさない場合アップロードに失敗します。 ファイルサイズの制限: 64MBまで 月間アップロード容量の制限: 月間合計10GBまで 1分間あたりのアップロード数制限: 300ファイルまで プランによる月間アップロード数の制限: 以下のリンクからご確認ください 【個人】freee会計のプランについて 【法人】freee会計のプランについて(2024年7月以降)

レスポンス

  • receipt*: object

GET /api/1/receipts/{id} — ファイルボックス(証憑ファイル)の取得

概要 指定した事業所のファイルボックス(証憑ファイル)を取得する ファイルの実体(バイナリ)は本APIでは取得できないため、ファイルボックス(証憑ファイル)のダウンロードAPI(GET /api/1/receipts/{id}/download)を利用してください。

パラメータ

  • id* (path): integer(int64) - ファイルボックス(証憑ファイル)ID
  • company_id*: integer(int64) - 事業所ID

レスポンス

POST /api/1/receipts と同じ

PUT /api/1/receipts/{id} — ファイルボックス(証憑ファイル)の更新

概要 ファイルボックス(証憑ファイル)を更新する

注意点 本APIでは、証憑ファイルの再アップロードはできません。 リクエストボディに含めたフィールドのみが更新されます。含めなかったフィールドの値は変更されません。

パラメータ

  • id* (path): integer(int64) - ファイルボックス(証憑ファイル)ID

リクエストボディ*

  • company_id*: integer(int64) - 事業所ID 例: 1 (最小: 1)
  • description: string - メモ (255文字以内) 例: タクシー利用
  • receipt_metadatum: object - 電子帳簿保存法の検索要件に対応するメタデータ(発行元・発行日・金額)
    • partner_name: string - 発行元 例: freeeパートナー
    • issue_date: string - 発行日 (yyyy-mm-dd) 例: 2019-12-17
    • amount: integer(int64) - 金額(円) 例: 5250 (最小: -999999999999, 最大: 999999999999)
  • qualified_invoice: string - 適格請求書等(qualified: 該当する、not_qualified: 該当しない、unselected: 未選択) (選択肢: qualified, not_qualified, unselected) 例: qualified
  • invoice_registration_number: string - インボイス制度適格請求書発行事業者登録番号
    • 先頭T数字13桁の14桁の文字列。先頭のTは省略可能です(省略した場合もT付きの登録番号として登録され、レスポンスではT付きの14桁で返ります) 国税庁インボイス制度適格請求書発行事業者公表サイト 例: T1000000000001 (パターン: ^T?[1-9][0-9]{12}$)
  • document_type: string - 書類の種類(receipt: 領収書、invoice: 請求書、other: その他) (選択肢: receipt, invoice, other) 例: receipt

レスポンス

POST /api/1/receipts と同じ

DELETE /api/1/receipts/{id} — ファイルボックス(証憑ファイル)の削除

概要 ファイルボックス(証憑ファイル)を削除する

パラメータ

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

GET /api/1/receipts/{id}/download — ファイルボックス(証憑ファイル)のダウンロード

概要 指定した事業所のファイルボックス(証憑ファイル)をダウンロードする レスポンスのContent-Typeは、アップロードされたファイルの形式(ファイルボックス(証憑ファイル)の取得APIで返るmime_type)に応じて返ります。

パラメータ

GET /api/1/receipts/{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.