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

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

Journals

仕訳帳

GET /api/1/journals — 仕訳帳のダウンロード要求

概要 指定した事業所の仕訳帳ファイルの作成を依頼する(非同期処理) 本APIはファイル作成のリクエストを受け付けるのみで、ファイルは非同期で作成されます。レスポンスの id(受け付けID)を使って、仕訳帳のステータスの取得(GET /api/1/journals/reports/{id}/status)でステータスを確認し、uploaded になったら仕訳帳のダウンロード(GET /api/1/journals/reports/{id}/download)でファイルを取得してください。 生成されるファイルのファイル形式と出力項目に関しては、 ヘルプページ をご参照ください。download_type ごとの詳細は以下をご参照ください。 generic (旧CSV) generic_v2 (新CSV(freee汎用形式)) csv (弥生会計) pdf (PDF)

注意点 start_date・end_date を指定しない場合は、当期の会計年度の開始日・終了日が自動で設定されます。 encoding は download_type が generic・generic_v2 の場合のみ指...

パラメータ

  • download_type*: string - ダウンロード形式
    • generic - 旧CSV形式
    • generic_v2 - 新CSV形式(freee汎用形式)
    • csv - 弥生会計形式のCSV
    • pdf - PDF形式 (選択肢: generic, generic_v2, csv, pdf)
  • encoding: string - 出力ファイルの文字コード。download_type が generic・generic_v2 の場合のみ指定できます。未指定の場合は sjis になります。
    • sjis - Shift_JIS
    • utf-8 - UTF-8 (選択肢: sjis, utf-8)
  • company_id*: integer(int64) - 事業所ID。/api/1/companies(事業所一覧の取得)で取得できます。
  • visible_tags[]: array[string] - 補助科目やコメントとして出力する項目。download_type が generic・csv・pdf の場合のみ指定できます。
    • partner - 取引先タグ
    • item - 品目タグ
    • tag - メモタグ
    • section - 部門タグ
    • description - 備考欄
    • wallet_txn_description - 明細の備考欄
    • segment_1_tag - セグメント1タグ(download_type:generic のみ)
    • segment_2_tag - セグメント2タグ(download_type:generic のみ)
    • segment_3_tag - セグメント3タグ(download_type:generic のみ)
    • all - セグメントタグを除く上記すべてを有効として扱います。セグメントが必要な場合は all ではなく segment_1_tag・segment_2_tag・segment_3_tag を個別に指定してください。
  • visible_ids[]: array[string] - 追加出力するID項目。download_type が generic の場合のみ指定できます。
    • deal_id - 取引ID
    • transfer_id - 取引(振替)ID
    • manual_journal_id - 振替伝票ID
  • start_date: string - 取得開始日(yyyy-mm-dd)。未指定の場合は当期の会計年度の開始日になります。
  • end_date: string - 取得終了日(yyyy-mm-dd)。未指定の場合は当期の会計年度の終了日になります。

GET /api/1/journals/reports/{id}/status — 仕訳帳のステータスの取得

概要 仕訳帳のダウンロードリクエストのステータスを取得する 仕訳帳のダウンロード要求(GET /api/1/journals)のレスポンスで返る id(受け付けID)を指定します。status が uploaded になると、レスポンスに download_url(仕訳帳のダウンロード(GET /api/1/journals/reports/{id}/download)のURL)が含まれます。

注意点 status が failed の場合はファイルの作成に失敗しています。仕訳帳のダウンロード要求(GET /api/1/journals)から再度やり直してください。 指定した id が存在しない場合は 404 エラーになります。

パラメータ

  • company_id*: integer(int64) - 事業所ID。/api/1/companies(事業所一覧の取得)で取得できます。
  • id* (path): integer(int64) - 受け付けID。仕訳帳のダウンロード要求(GET /api/1/journals)のレスポンスで返る id を指定します。

レスポンス

  • journals*: object

GET /api/1/journals/reports/{id}/download — 仕訳帳のダウンロード

概要 作成が完了した仕訳帳ファイルをダウンロードする 仕訳帳のステータスの取得(GET /api/1/journals/reports/{id}/status)で status が uploaded になった後に呼び出してください。ファイルは仕訳帳のダウンロード要求(GET /api/1/journals)で指定した download_type に応じて CSV(text/csv)または PDF(application/pdf)で返ります。

注意点 ファイルの作成が完了していない場合や、指定した id が存在しない場合は 404 エラーになります。

パラメータ

  • id* (path): integer(int64) - 受け付けID。仕訳帳のダウンロード要求(GET /api/1/journals)のレスポンスで返る id を指定します。
  • company_id*: integer(int64) - 事業所ID。/api/1/companies(事業所一覧の取得)で取得できます。

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.