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.

SIGN-GUIDE.md

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

freee サイン(電子契約)ガイド

freee サインは freee 本体とは別の MCP サーバー(freee-sign-mcp)で提供されます。 認証基盤が異なるため、freee 本体の company_id や事業所管理は不要です。

セットアップ

npx --package=freee-mcp -- freee-sign-mcp configure

ブラウザで freee サインにログインし、OAuth 認証を完了します。設定は ~/.config/freee-mcp/sign-config.json に保存されます。

MCP ツール

認証:

  • sign_authenticate - freee サイン OAuth 認証
  • sign_auth_status - 認証状態確認
  • sign_clear_auth - 認証情報クリア

API 呼び出し:

  • sign_api_get - GET リクエスト
  • sign_api_post - POST リクエスト
  • sign_api_put - PUT リクエスト
  • sign_api_patch - PATCH リクエスト
  • sign_api_delete - DELETE リクエスト

ファイル操作:

  • sign_file_upload - ローカルファイルから文書を作成 (POST /v1/documents/uploads または /v1/pdf_documents)

サーバー情報:

  • sign_server_info - サーバー情報取得(バージョン、transport)

基本ワークフロー

  1. 認証状態を確認: sign_auth_status(未認証なら sign_authenticate を実行)
  2. レシピを確認: 文書の作成・ファイルアップロードは recipes/sign-document-operations.md を参照
  3. リファレンスを検索: sign-references/ 内の該当リファレンスを参照
  4. API を呼び出す: sign_api_* ツールを使用

注意:

  • freee 本体の company_id や freee_get_current_company はサインでは使用しません
  • サインの API パスは /v1/ から始まります(例: /v1/documents)

API ベース URL

サイン API のベース URL は https://ninja-sign.com です(https://sign.freee.co.jp ではありません)。 curl 等で MCP を経由せず直接 API を呼び出す場合は https://ninja-sign.com/v1/... にリクエストしてください。 開発用に環境変数 FREEE_SIGN_API_URL で向き先を上書きできます。

大容量ファイルの送信制限

ファイルから文書を作成する場合は sign_file_upload を使ってください(sign_api_post に数百 KB を超える Base64 body を渡すと失敗するため)。理由と使い分け・手順は recipes/sign-document-operations.md を参照。

レシピ

  • recipes/sign-document-operations.md - 文書の作成・ファイルアップロード(エンドポイントの使い分け・uploader_id の取得・署名依頼までの流れ)

リファレンス

API リファレンスが sign-references/ に含まれます:

  • sign-documents.md - 文書管理(作成・送信・検索・ダウンロード)
  • sign-folders.md - フォルダ管理
  • sign-items.md - 入力項目
  • sign-kintone.md - kintone 連携
  • sign-seal-images.md - マイ印鑑
  • sign-teams.md - チーム管理
  • sign-templates.md - テンプレート
  • sign-users.md - ユーザー管理

エラー対応

  • 認証エラー: sign_auth_status で確認 → sign_clear_auth → sign_authenticate
  • 設定エラー: npx --package=freee-mcp -- freee-sign-mcp configure --force で再設定

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.