Skip to content
freee-api-skill logo

freee API スキル

freee-api-skill

freee 会計・人事労務 API を MCP 経由で操作するスキル。詳細なAPIリファレンスと使い方ガイドを提供。

SKILL.md

Full skill instructions

freee API スキル

概要

@him0/​freee-mcp (MCP サーバー) を通じて freee API と連携。

このスキルの役割:

  • freee API の詳細リファレンスを提供
  • freee-mcp 使用ガイドと API 呼び出し例を提供

注意: OAuth 認証はユーザー自身が自分の環境で実行する必要があります。

セットアップ

1. OAuth 認証(あなたのターミナルで実行)

npx @him0/​freee-mcp configure

ブラウザで freee にログインし、事業所を選択します。設定は ~/​.config/​freee-mcp/​config.json に保存されます。

2. プラグインをインストール

  • Claude Code: コマンドパレット → "Claude: Install Plugin" → このリポジトリのパス
  • Claude Desktop: 設定 → Plugins → Add Plugin → このリポジトリのパス

3. 再起動して確認

Claude を再起動後、freee_auth_status ツールで認証状態を確認。

リファレンス

API リファレンスが references/ に含まれます。各リファレンスにはパラメータ、リクエストボディ、レスポンスの詳細情報があります。

検索方法:

pattern: "経費"
path: "skills/​freee-api-skill/​references"
output_mode: "files_with_matches"

主なリファレンス:

  • accounting-deals.md - 取引
  • accounting-expense-applications.md - 経費申請
  • hr-employees.md - 従業員情報
  • hr-attendances.md - 勤怠

使い方

MCP ツール

認証・事業所管理:

  • freee_authenticate - OAuth 認証
  • freee_auth_status - 認証状態確認
  • freee_list_companies - 事業所一覧
  • freee_set_current_company - 事業所切り替え

API 呼び出し:

  • freee_api_get - GET リクエスト
  • freee_api_post - POST リクエスト
  • freee_api_put - PUT リクエスト
  • freee_api_delete - DELETE リクエスト
  • freee_api_patch - PATCH リクエスト

serviceパラメータ (必須):

service説明パス例
accountingfreee会計 (取引、勘定科目、取引先など)/​api/​1/​deals
hrfreee人事労務 (従業員、勤怠など)/​api/​1/​employees
invoicefreee請求書 (請求書、見積書、納品書)/​invoices
pmfreee工数管理 (プロジェクト、工数など)/​api/​1/​projects

company_id について

リクエストに company_id を含める場合、現在設定されている事業所(freee_get_current_company で確認可能)と一致している必要があります。不一致の場合はエラーになります。

  • 事業所を変更する場合: 先に freee_set_company で切り替えてからリクエストを実行
  • company_id を含まない API(例: /​api/​1/​companies): そのまま実行可能

基本ワークフロー

  1. 操作ガイドを確認: docs/ 内の該当ガイドを読む
  2. リファレンスを検索: 必要に応じて references/ を参照
  3. API を呼び出す: freee_api_* ツールを使用

操作ガイド

よくある操作の使用例とTipsは以下を参照:

  • docs/​expense-application-operations.md - 経費申請
  • docs/​deal-operations.md - 取引(収入・支出)
  • docs/​hr-operations.md - 人事労務(従業員・勤怠)
  • docs/​invoice-operations.md - 請求書・見積書・納品書

エラー対応

  • 認証エラー: freee_auth_status で確認 → freee_clear_auth → freee_authenticate
  • 事業所エラー: freee_list_companies → freee_set_current_company
  • 詳細: docs/​troubleshooting.md 参照

対応 API

serviceベースURLパス形式
accountinghttps://api.freee.co.jp/​api/​1/​...
hrhttps://api.freee.co.jp/​hr/​api/​1/​...
invoicehttps://api.freee.co.jp/​iv/​invoices, /​quotations, /​delivery_slips
pmhttps://api.freee.co.jp/​pm/​api/​1/​...

請求書 API について

請求書・見積書・納品書の操作については docs/​invoice-operations.md を参照してください。

注意: 会計 API の /​api/​1/​invoices は過去の API であり、現在は請求書 API (service: "invoice") を使用してください。

関連リンク

More Finance & Trading skills

ponytail-debt logo
Finance & Trading

ponytail-debt

Harvest every `ponytail:` comment in the codebase into a debt ledger, so the deliberate shortcuts and deferrals ponytail leaves behind get tracked instead of rotting into "later means never". One-shot report, changes nothing.

155.5K 27.9K
View
stripe-integration logo
Finance & Trading

stripe-integration

Stripe payment processing with checkout sessions, subscriptions, webhooks, and customer management.

40.2K 12.9K
View

Build comprehensive 3-5 year financial models with revenue projections, cost structures, cash flow analysis, and scenario planning for early-stage startups. Use this skill when creating financial projections, calculating burn rate or runway, modeling fundraising scenarios, or preparing investor-r...

40.2K 12K
View
stock-analysis logo
Finance & Trading

stock-analysis

Stock and cryptocurrency analysis with portfolio management and multi-dimensional scoring.

46 11.9K
View
coinglass logo
Finance & Trading

coinglass

Real-time crypto derivatives positioning, whale tracking, liquidations, and institutional ETF flows across 37 specialized tools.

27 11.5K
View

Master dbt (data build tool) for analytics engineering with model organization, testing, documentation, and incremental strategies. Use when building data transformations, creating data models, or implementing analytics engineering best practices.

40.2K 10.5K
View

Finance AI tools

C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Finalle.ai logo
Finance

Finalle.ai

Stay Ahead with Finalle.ai: The Ultimate Financial News and Tools Platform

Free
View

AI-powered Pine Script code generator for TradingView

Paid
View
TradeUI logo
Finance

TradeUI

Empower your investment strategies with AI signals, option flow data, and advanced chart patterns.

Paid
View
D
Finance

Danelfin

Danelfin review covering its AI stock and ETF scores, rankings, portfolio tools, current pricing, strengths, risks, and alternatives for investors.

Freemium
View
E
Finance

Ellisense

A software for comprehensive market sentiment analysis.

Paid
View

'Stock Correlations' App by Freshly.ai: Reveal Stock Patterns and Trends

Free
View