freee-api-skill
Skill to operate freee API via MCP. Provides detailed API references and usage guides for accounting, HR/labor, invoicing, time management, and sales. Use when needing to look up freee-related operations or API specifications, such as expense claims, transaction registration, attendance clock-in, payslips, estimates, trial balances, journal entries, employee management, time entry, and sales management.
npx skills add freee/freee-mcp --skill freee-api-skillBefore / After Comparison
1 组Previously, manual processing of financial data was time-consuming, laborious, and prone to errors. Integrating the freee API required complex development and maintenance, leading to difficulties in data synchronization and hindering business processes.
Now, with MCP, freee API operations are easily managed, enabling automated financial data management. This significantly boosts data processing efficiency, reduces manual errors, and ensures data accuracy.
description SKILL.md
name: freee-api-skill description: "freee API を MCP 経由で操作するスキル。会計・人事労務・請求書・工数管理・販売の詳細APIリファレンスと使い方ガイドを提供。経費申請・取引登録・勤怠打刻・給与明細・見積書・試算表・仕訳・従業員管理・工数登録・売上管理など、freee関連の操作やAPI仕様を調べたいときに使う。"
freee API スキル
概要
freee-mcp (MCP サーバー) を通じて freee API と連携。
このスキルの役割:
- freee API の詳細リファレンスを提供
- freee-mcp 使用ガイドと API 呼び出し例を提供
注意: OAuth 認証はユーザー自身が自分の環境で実行する必要があります。
セットアップ
1. OAuth 認証(あなたのターミナルで実行)
npx freee-mcp configure
ブラウザで freee にログインし、事業所を選択します。設定は ~/.config/freee-mcp/config.json に保存されます。
2. 再起動して確認
Claude を再起動後、freee_auth_status ツールで認証状態を確認。
リファレンス
API リファレンスが references/ に含まれます。各リファレンスにはパラメータ、リクエストボディ、レスポンスの詳細情報があります。
目的のAPIを探すには、references/ ディレクトリ内のファイルをキーワード検索してください。
主なリファレンス:
accounting-deals.md- 取引accounting-expense-applications.md- 経費申請hr-employees.md- 従業員情報hr-attendances.md- 勤怠invoice-invoices.md- 請求書
使い方
MCP ツール
認証・事業所管理:
freee_authenticate- OAuth 認証freee_auth_status- 認証状態確認freee_clear_auth- 認証情報クリアfreee_current_user- ログインユーザー情報取得freee_list_companies- 事業所一覧freee_set_current_company- 事業所切り替えfreee_get_current_company- 現在の事業所取得
ファイル操作:
freee_file_upload- ファイルボックスにファイルをアップロード (POST /api/1/receipts)
API 呼び出し:
freee_api_get- GET リクエストfreee_api_post- POST リクエストfreee_api_put- PUT リクエストfreee_api_delete- DELETE リクエストfreee_api_patch- PATCH リクエストfreee_api_list_paths- 利用可能なAPIパス一覧
serviceパラメータ (必須):
| service | 説明 | パス例 |
|---|---|---|
accounting | freee会計 (取引、勘定科目、取引先など) | /api/1/deals |
hr | freee人事労務 (従業員、勤怠など) | /api/v1/employees |
invoice | freee請求書 (請求書、見積書、納品書) | /invoices |
pm | freee工数管理 (プロジェクト、工数など) | /projects |
sm | freee販売 (見積、受注、売上など) | /businesses |
基本ワークフロー
- 事業所を確認:
freee_get_current_companyで現在の事業所IDを取得する(初回は必須。セッション内で1回取得すれば以降は使い回せる) - レシピを確認:
recipes/内の該当レシピを読む - リファレンスを検索: 必要に応じて
references/を参照 - API を呼び出す:
freee_api_*ツールを使用(company_id が必要なエンドポイントでは手順1で取得した値を使う)
注意:
company_idは現在設定されている事業所と一致している必要がある。不一致の場合はエラーになる- 事業所を変更する場合: 先に
freee_set_current_companyで切り替えてからリクエストを実行
レシピ
よくある操作のユースケースサンプルとTipsは以下を参照:
recipes/expense-application-operations.md- 経費申請recipes/deal-operations.md- 取引(収入・支出)recipes/hr-employee-operations.md- 人事労務(従業員・給与)recipes/hr-attendance-operations.md- 勤怠(出退勤・打刻・休憩の登録)recipes/invoice-operations.md- 請求書・見積書・納品書recipes/receipt-operations.md- ファイルボックス(証憑ファイルのアップロード・管理)recipes/pm-operations.md- 工数管理(プロジェクト・工数実績)recipes/pm-workload-registration.md- 工数の安全な登録(PM・HR連携ワークフロー)recipes/sm-operations.md- 販売管理(案件・受注)
エラー対応
- 認証エラー:
freee_auth_statusで確認 →freee_clear_auth→freee_authenticate - 事業所エラー:
freee_list_companies→freee_set_current_company - 詳細:
recipes/troubleshooting.md参照
API の機能制限について
freee API 自体の機能制限に起因する問題は freee-mcp では解決できません。詳細は recipes/troubleshooting.md を参照してください。
関連リンク
forumUser Reviews (0)
Write a Review
No reviews yet
Statistics
User Rating
Rate this Skill