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.

troubleshootingexpense-errors.md

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

経費申請のトラブルシューティング

経費申請の基本操作は recipes/expense-application-operations.md を参照。

expense_application_line_template_id が無効

原因: 指定した経費科目 ID が存在しない、または事業所で無効化されている。利用可能な経費科目は事業所ごとに異なるため、必ず GET /api/1/expense_application_line_templates で事前に確認する。

経費科目一覧が取得できない場合は、freee_get_current_company で事業所が正しく設定されているか、権限があるかを確認する。

経費科目が多く選択に迷う場合は、各科目の name と description を確認する(交通費: 電車・バス・タクシー、宿泊費: ホテル・旅館、接待交際費: 会食・接待、消耗品費: 文房具・備品など)。判断できない場合は経理部門に確認する。

section_id が無効

原因: 指定した部門 ID が存在しない。GET /api/1/sections で部門一覧を確認する。

入力値のバリデーションエラー

  • amount must be positive: 金額は正の整数で指定する。0以下・文字列・小数は不可
  • Invalid date format: 日付は yyyy-mm-dd 形式で指定する。スラッシュ区切り、時刻付き、ハイフンなしは不可
  • issue_date must be after transaction_date: 申請日(issue_date)は発生日(transaction_date)以降にする。通常は「今日」または発生日以降を指定する
  • title is required: 申請タイトルを設定する(空文字は不可)
  • expense_application_lines is required: 経費明細を少なくとも1つ含める

申請作成後に内容を確認したい

freee_api_get {
  "service": "accounting",
  "path": "/api/1/expense_applications",
  "query": { "limit": 10 }
}

Web画面では https://secure.freee.co.jp/expense_applications/{id} で確認できる。

レスポンスが遅い

大量データの取得やネットワークが原因のことが多い。limit パラメータで取得件数を制限し、条件を絞って必要なデータのみ取得する。

よくある質問

Q: 経費申請を下書き保存できるか A: freee API では申請作成時に自動的に申請される。下書きにしたい場合はローカルにデータを保存しておき、後で API を実行する。

Q: 領収書画像を添付できるか A: ファイルボックス API(recipes/receipt-operations.md)で証憑をアップロードし、receipt_ids で経費申請や取引に紐づける。

Q: 作成した申請を修正できるか A: 下書き・差戻し状態の経費申請は PUT API で更新できる。申請中・承認済みの場合は freee Web UI を使う。

Q: 複数の経費をまとめて申請すべきか A: 同じ出張の交通費・宿泊費や同じ月の交通費はまとめることが多い。異なる種類の経費は別々の申請を推奨。会社の方針に従う。

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 2 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.