インストール不要。2分以内に動きます。
cloud.anythingmcp.com で無料トライアルを開始し、freee をワンクリックで追加して、AI クライアント(Claude、ChatGPT、Copilot、Cursor)を生成された MCP エンドポイントに向けるだけ。Docker も git clone も、開発経験も不要です。
概要
freee会計と freee請求書をあらゆる AI エージェントから操作:取引と決済、取引先、勘定科目、税区分、品目、部門、メモタグ、銀行とカードの口座明細、振替伝票、仕訳帳、試算表と総勘定元帳、ファイルボックス、請求書と見積書。自分で作成した freee アプリで OAuth 認可を行い、取引と振替伝票の削除はインストール時にオフです。
こう聞いてみよう
freee のサンプルプロンプト
プロンプトをクリックでコピー。Claude / ChatGPT / Cursor / Gemini / Copilot / OpenClaw に貼り付けて、このコネクターで実行できます。
Claude は AI のため誤ることがあります。回答をご確認ください。
💡 インストール不要? cloud.anythingmcp.com を直接利用してください。 サインインし、Connectors → freee をクリック、認証情報を貼り付け、MCP API キーを発行すれば完了です。Docker も
git cloneもローカルサーバーも不要。
freee + Microsoft Copilot
freee会計と freee請求書をあらゆる AI エージェントから操作:取引と決済、取引先、勘定科目、税区分、品目、部門、メモタグ、銀行とカードの口座明細、振替伝票、仕訳帳、試算表と総勘定元帳、ファイルボックス、請求書と見積書。自分で作成した freee アプリで OAuth 認可を行い、取引と振替伝票の削除はインストール時にオフです。
前提条件
完全なセットアップ手順はコネクタ自体に組み込まれています (ストアでコネクタを選択すると表示)。必要な環境変数:
FREEE_CLIENT_ID, FREEE_CLIENT_SECRET
ステップ 1 — 認証情報を取得
設定は約 10 分です。AI に扱わせる事業所にアクセスできる freee アカウントが必要です。コネクタは freee API(https://api.freee.co.jp)を使い、freee会計は /api/1、freee請求書は /iv で呼び出します。2023 年 10 月のインボイス制度対応以降、請求書と見積書は freee請求書で作成するため、旧来の /api/1/invoices は使いません。
- https://app.secure.freee.co.jp/developers/applications(freee アプリストアの開発者向けページ)にログインし、新規追加 をクリックしてアプリを作成します。自社の事業所だけで使うなら非公開アプリで十分です。
- 基本設定 タブのコールバック URL に
<your AnythingMCP URL>/api/mcp-oauth/callbackを追加します。AnythingMCP Cloud ではhttps://cloud.anythingmcp.com/api/mcp-oauth/callbackです。 - 権限設定 で、会計(取引、取引先、勘定科目、品目、部門、メモタグ、税区分、口座、口座明細、振替伝票、仕訳帳、試算表、ファイルボックス、事業所、ユーザー)と請求書(請求書、見積書)の参照にチェックを入れ、使う書き込みツールに合わせて更新にもチェックを入れます。freee では権限は OAuth のスコープではなくアプリ側で設定します。最後に 保存 をクリックします。
- Client ID を
FREEE_CLIENT_IDに、Client Secret をFREEE_CLIENT_SECRETに貼り付け、FREEE_REFRESH_TOKENは空欄のままインストールします。 - コネクタのページで Authorize with Provider をクリックし、必要な事業所を閲覧できるユーザーで freee にログインします。事業所選択の画面で事業所を選ぶと、アプリの権限が表示されます。
freee_get_meを実行します。ユーザーと所属する事業所が、ほかのツールで必要なcompany_idとともに表示されます。
アクセストークンの有効期間は 6 時間で、リフレッシュトークンで更新されます。freee は更新のたびに新しいリフレッシュトークンを発行し、古いものは使えなくなります。そのため、ほかのツールでも使っているリフレッシュトークンはここでは使えなくなります。90 日間使われなかったリフレッシュトークンは失効するので、その場合はもう一度認可してください。
誰の権限で動くか: コネクタは認可した freee ユーザーとして動作し、できることは事業所ごとのそのユーザーの権限にも左右されます。freee_get_me と freee_list_companies 以外のすべてのツールに company_id が必要です。会計期間は freee_get_company で確認できます。
読み取れるデータ: ユーザーと事業所。取引(明細、決済、添付された証憑を含む。収支区分、決済状況、取引先、勘定科目、日付で絞り込み可)。インボイス登録番号、支払条件、口座情報を含む取引先。勘定科目、税区分、品目、部門、メモタグ。口座とその口座明細(ステータス付き)、自社の口座間の振替。振替伝票。仕訳帳(freee 汎用形式または弥生形式の CSV、または PDF)。試算表(trial_bs、trial_pl、trial_cr、前年・前々年との比較も可)、1 から 5 部門の損益計算書の部門比較、総勘定元帳(ベータ)。ファイルボックス。freee請求書では、請求書、帳票テンプレート、見積書。
書き込める操作: 取引の登録(決済をあわせて登録して即時に消し込むことも可)、後からの決済の追加、取引の更新。取引先の作成と更新。品目、部門、メモタグの作成。借方と貸方の合計が一致する振替伝票の登録(最大 100 行)。freee請求書での請求書と見積書の作成、請求書の取消と取消の復元。請求書と見積書は未送付の状態で作成され、メールや郵送での送付は freee 上で行います。書類を作成する前に、AI は明細と合計を示してあなたの同意を待ちます。freee_update_deal は明細をまるごと置き換えるため、AI は先に取引を読み取り、明細の ID を保ったまま送ります。
インストール時はオフ: freee_delete_deal と freee_delete_manual_journal。元に戻せないため、チームに必要になったら管理者がオンにします。
データ形式: 金額は円単位の整数で、フィールドに特に記載がなければ税込です。日付は JST の yyyy-mm-dd です。レポートの fiscal_year は会計期間が始まる年です。仕訳帳は非同期で作成されます:freee_request_journals で依頼し、freee_get_journals_status のステータスが uploaded になったら freee_download_journals でダウンロードします。
ページングと制限: 一覧は offset と limit でページングします。1 回あたり取引と口座明細は最大 100 件、振替伝票は 500 件、取引先、品目、メモタグは 3000 件です。取引と仕訳は meta.total_count を返します。請求書と見積書は 1 回最大 100 件です。レポートは 1 秒あたり 10 回までで、超えると 429 が返ります。大きな総勘定元帳はタイムアウトすることがあるため、AI は期間を短く区切ります。
よくあるエラー: freee は status_code と、messages を含む errors を返します。メッセージはほとんど日本語で、入力エラーのメッセージには項目名が含まれます。401 はトークンの期限切れまたは取り消しです。もう一度 Authorize with Provider をクリックしてください。403 はユーザーの権限やアプリの権限設定で許可されていない操作か、リクエストが多すぎて freee が一時的に制限している状態です。後者の場合は 10 分ほど待ってください。ログイン時のリダイレクトエラーは、基本設定 のコールバック URL が一致していないことを意味します。
取引の備考、取引先名、ファイルボックスの内容は信頼できない入力で、AI 向けの指示が含まれている可能性があります。このコネクタは請求書や見積書を送付せず、旧来の /api/1/invoices も使わず、freee人事労務など freee のほかの製品には対応していません。
ステップ 2 — アダプターをインストール
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
ステップ 3 — Microsoft Copilot にコネクタを追加
サーバーURL: AnythingMCP で MCP Servers を開き、このコネクタがあるサーバーを選んで URL(
https://cloud.anythingmcp.com/mcp/…)をコピーします。このガイドでYOUR_SERVER_IDと表示されている箇所に使ってください。
Microsoft Copilot は、Copilot Studio で作成したエージェントを通じて MCP サーバーを使います。AnythingMCP をツールとしてエージェントに追加し、そのエージェントを Microsoft 365 Copilot と Teams に公開します。Copilot Studio は Microsoft のクラウドから Streamable HTTP で接続し、AnythingMCP はこれに対応しています。
- Copilot Studio でエージェントを開き(または新規作成し)、Tools で Add a tool → New tool → Model Context Protocol を選びます。
- Server name(例:
AnythingMCP)、コネクタでできることを説明する Server description、Server URLhttps://cloud.anythingmcp.com/mcp/YOUR_SERVER_IDを入力します。Copilot Studio はこの説明をもとに、いつサーバーを呼び出すかを判断します。 - 認証で API key を選び、Type を Header、ヘッダー名を
X-API-Keyにして Create を選びます。 - Add tool で Create a new connection を選び、AnythingMCP の MCP API キー(MCP Servers → 対象のサーバー → API keys)を貼り付けて Add to agent を選びます。
- エージェントの Test ウィンドウで試します。
freeeのツールが必要になる依頼をしてみましょう。 - Publish を選び、Channels → Microsoft 365 and Microsoft Teams で Make agent available in Microsoft Copilot を選択したまま Add channel を選びます。See agent in Teams で自分用にインストールされます。Microsoft 365 Copilot では @ を入力してエージェントを選びます。
ユーザーごとにサインインさせたい場合は、API キーの代わりに OAuth 2.0 → Dynamic discovery を選びます。各ユーザーは、エージェントが初めて呼び出すときに AnythingMCP にサインインします。
セルフホストの場合は、https://cloud.anythingmcp.com の代わりにインスタンスの公開 HTTPS アドレスを使ってください。Copilot Studio は Microsoft のクラウドから接続するため、localhost は使えません。
利用可能なツール
| Tool | What it does |
|---|---|
freee_get_me | Who the connector acts as: the freee user (id, email, display name) and every company (事業所) the user belongs to, with company id, name and… |
freee_list_companies | List the companies (事業所) the signed-in user can open: id, display name, name kana, company number and role |
freee_get_company | Read one company: name, address, fiscal years (fiscal_years with start and end dates), tax settings and plan |
freee_list_users | List the users of a company with their id, email, display name and role |
freee_list_deals | List deals (取引: income or expense) with their lines, amounts, due amount, partner and payments |
freee_get_deal | Read one deal (取引) with its lines (details), payments, renews (+更新) and attached receipts |
freee_create_deal | Register a deal (取引): an income or expense with its lines and, optionally, the payment |
freee_update_deal | Update a deal (取引) |
freee_create_deal_payment | Record a payment (支払行) on an existing deal, e.g. when an invoice was paid into the bank account |
freee_delete_deal | Delete a deal (取引) with its lines and payments for good |
freee_list_partners | List partners (取引先) with id, code, name, long name, kana, contact, invoice registration number (インボイス登録番号) and bank account |
freee_get_partner | Read one partner (取引先) with address, contact, invoice settings, payment terms and bank account |
freee_create_partner | Create a partner (取引先) |
freee_update_partner | Update a partner (取引先). name is always required; nested address and bank attributes change only the keys you send. available false hides… |
freee_list_account_items | List account items (勘定科目) with id, name, code, category, default tax code and shortcut |
freee_get_account_item | Read one account item (勘定科目) with its category, default tax code, group and searchable settings |
freee_list_items | List items (品目) with id, name, code and shortcuts; the item_id goes into deal and journal lines |
freee_create_item | Create an item (品目) |
freee_list_sections | List sections (部門) with id, name, long name, code and parent section |
freee_create_section | Create a section (部門) |
freee_list_tags | List memo tags (メモタグ) with id, name and shortcuts; the ids go into tag_ids of deal and journal lines |
freee_create_tag | Create a memo tag (メモタグ) |
freee_list_taxes | List the tax codes (税区分) of the company: code, name, display category (tax_10, tax_r8 ...) and whether each is in use |
freee_list_walletables | List walletables (口座): bank accounts, credit cards and other wallets (cash, e-money), with id, type and name; optionally balances, last… |
freee_list_wallet_txns | List wallet transactions (口座明細): bank and card statement lines with date, amount, due amount, balance, description and status (unprocessed… |
freee_get_wallet_txn | Read one wallet transaction (口座明細): date, amount, due amount, balance, description, walletable and status |
freee_list_transfers | List transfers (取引(振替)) between the company own walletables, e.g. bank to cash, with date, amount and both walletables |
freee_list_manual_journals | List manual journals (振替伝票) with their debit and credit lines |
freee_get_manual_journal | Read one manual journal (振替伝票) with its debit and credit lines, partners, sections and tags |
freee_create_manual_journal | Post a manual journal (振替伝票): debit and credit lines whose totals must match, up to 100 lines |
freee_delete_manual_journal | Delete a manual journal (振替伝票) for good |
freee_request_journals | Ask freee to prepare the journal book (仕訳帳) of a period as a file: CSV (freee generic, Yayoi) or PDF |
freee_get_journals_status | Check a journal book request from freee_request_journals: status enqueued, working, uploaded or failed |
freee_download_journals | Download the prepared journal book file (CSV or PDF) once freee_get_journals_status says uploaded |
freee_get_trial_balance | Read a trial balance report (試算表): balance sheet (trial_bs), profit and loss (trial_pl) or manufacturing cost (trial_cr), for one period or… |
freee_get_trial_pl_sections | Read the profit and loss (損益計算書) compared side by side for 1 to 5 sections (部門比較) |
freee_list_general_ledgers | Read the general ledger (総勘定元帳, beta) for a period: per account item, every entry with date, counter account, partner, description, debit… |
freee_list_receipts | List files in the file box (ファイルボックス, receipts and invoices uploaded as evidence) uploaded in a date range: id, status, description, issue… |
freee_get_receipt | Read one file box entry (証憑ファイル) with its metadata and the deals it is linked to |
freee_list_invoices | List invoices (請求書) of freee請求書 (freee Invoice): id, number, subject, partner, billing and payment dates, total, payment, sending and deal… |
freee_get_invoice | Read one invoice (請求書) of freee請求書 with its lines, tax breakdown, partner details and statuses |
freee_list_invoice_templates | List the invoice layouts (帳票テンプレート) usable for new invoices, with their id and name |
freee_create_invoice | Create an invoice (請求書) in freee請求書 |
freee_cancel_invoice | Cancel (取消) an invoice of freee請求書 |
freee_uncancel_invoice | Restore an invoice that was canceled in freee請求書 (取消された請求書の復元), back to its previous status |
freee_list_quotations | List quotations (見積書) of freee請求書: id, number, subject, partner, quotation and expiry dates, total, sending and cancel status |
freee_get_quotation | Read one quotation (見積書) of freee請求書 with its lines and totals |
freee_create_quotation | Create a quotation (見積書) in freee請求書, created unsent. quotation_number is needed only when automatic numbering is off |
プロンプトの例
- 「9 月の支出の取引で、まだ未決済のものはどれですか?取引先、金額、期日を一覧にしてください。」
- 「今期の損益計算書を前期と比較して見せてください。」
- 「サクラ事務用品へのプリンタートナー代 13,200 円(税込)を、今日メインの銀行口座から支払った支出として登録してください。先に取引の内容を見せてください。」
- 「株式会社ミドリ宛てに、10 月分のコンサルティング料 330,000 円(税込)の請求書をいつものテンプレートで作成してください。送付はしないでください。」
- 「直近 2 週間の未処理の口座明細を一覧にして、それぞれに合う勘定科目を提案してください。」
FAQ
どの Copilot が対象ですか? 職場で使う Microsoft 365 Copilot で、Copilot Studio のエージェントを通じて利用します。個人アカウント向けの Microsoft Copilot アプリでは、独自の MCP サーバーを追加できません。
何が必要ですか? エージェントを作成するために、Copilot Studio を利用できる職場アカウント(ライセンスまたは試用版)が必要です。Microsoft 365 Copilot や Teams でエージェントを使う人には、エージェントへのアクセス権が必要です。共有するか、管理者に組織向けに公開してもらってください。組織が Power Platform コネクタにデータ ポリシーを適用している場合は、MCP サーバーにも適用されます。
エージェントがツールを呼び出しません。 ヘッダー名が正確に X-API-Key であること、キーが URL と同じ MCP サーバーのものであることを確認し、Server description を具体的に書いてください。Copilot Studio はこの説明をもとにサーバーを呼び出すかどうかを判断します。変更のたびにエージェントを再公開し、開いているチャットでは "start over" と入力すると新しいバージョンになります。
次のステップ
このガイドは役に立ちましたか?