概要
BILL (Bill.com) の買掛金と売掛金に接続します。仕入先、請求書、定期請求書、仕入先クレジット、請求書の承認と承認ポリシー、仕入先への支払い、顧客、売上請求書、クレジットメモ、入金を扱えます。developer key とユーザーのサインインで BILL v3 API を利用します。請求書の承認機能も含まれますが、インストール時は無効です。
ガイド付きセットアップ
BILL を Microsoft Copilot に 2 分で接続
AnythingMCP Cloud の無料トライアルを始め、ガイド付きセットアップで BILL を接続して、MCP URL を Microsoft Copilot に追加します。コードもサーバーの運用も不要です。
クレジットカード不要 · 7日間の試用 · セルフホストの選択肢あり
こう聞いてみよう
BILL のサンプルプロンプト
プロンプトをクリックでコピー。Claude / ChatGPT / Cursor / Gemini / Copilot / OpenClaw に貼り付けて、このコネクターで実行できます。
Claude は AI のため誤ることがあります。回答をご確認ください。
💡 インストール不要? cloud.anythingmcp.com を直接利用してください。 サインインし、Connectors → BILL をクリック、認証情報を貼り付け、MCP API キーを発行すれば完了です。Docker も
git cloneもローカルサーバーも不要。
BILL (Bill.com) + Microsoft Copilot
BILL (Bill.com) の買掛金と売掛金に接続します。仕入先、請求書、定期請求書、仕入先クレジット、請求書の承認と承認ポリシー、仕入先への支払い、顧客、売上請求書、クレジットメモ、入金を扱えます。developer key とユーザーのサインインで BILL v3 API を利用します。請求書の承認機能も含まれますが、インストール時は無効です。
前提条件
完全なセットアップ手順はコネクタ自体に組み込まれています (ストアでコネクタを選択すると表示)。必要な環境変数:
BILL_API_URL, BILL_DEV_KEY, BILL_ORGANIZATION_ID, BILL_USERNAME, BILL_PASSWORD
ステップ 1 — 認証情報を取得
- BILL の API を使うには developer key が必要です。管理者が BILL のウェブアプリで Settings → Sync & Integrations → Manage Developer Keys → Generate developer key から生成します。まず試す場合は、
https://developer.bill.comでサンドボックスの開発者アカウントに登録すると、サンドボックス用のキーが付いてきます。キーをBILL_DEV_KEYに貼り付けます。 - 同じ Manage Developer Keys ページの下部に表示される組織 ID を
BILL_ORGANIZATION_IDにコピーします。008で始まります。 - その組織の BILL ユーザーのメールアドレスとパスワードを
BILL_USERNAMEとBILL_PASSWORDに入力します。API 専用のユーザーを使ってください。BILL でのそのユーザーのロールによって、AI が参照できる範囲と実行できる操作が決まります。 BILL_API_URLを、本番ではhttps://gateway.prod.bill.com/connectに、サンドボックスではhttps://gateway.stage.bill.com/connectに設定します。サンドボックスの developer key は本番では使えず、その逆も同様です。- コネクターをインストールし、最初に
bill_com_get_sessionを実行します。サインインを確認し、コネクターがどの組織とユーザーとして動作するかを表示します。
セッション: コネクターはそのユーザーとしてサインインし、セッションを自動で管理します。セッションは操作がないまま 35 分たつと切れますが、コネクターがそのままサインインし直します。
読み取れるデータ: BILL(旧 Bill.com)は米国企業の買掛金と売掛金を管理するサービスです。買掛金側では、AI は仕入先、支払期日、支払状況、承認状況を含む請求書、定期請求書、仕入先クレジット、仕入先への支払い、承認ポリシー、あなたの承認待ちの請求書を読み取ります。売掛金側では、顧客、売上請求書、クレジットメモ、入金を読み取ります。
最初に試すとよいこと: 未払いと一部支払い済みの請求書を支払期日順に、あなたの承認待ちの請求書、または未回収や一部入金の顧客向け請求書を尋ねてみてください。
承認はインストール時に無効です: bill_com_approve_or_deny_bills は、サインインしたユーザーの承認待ちの請求書を承認または却下し、請求書ごとに任意でコメントを付けられます。承認された請求書はその後支払い可能になります。AI にそのユーザーとして請求書を承認させる場合だけ有効にしてください。AI は bill_com_list_pending_approvals の一覧から始めます。それ以外はすべて読み取り専用です。
制限: developer key ごとに 1 時間あたり 20,000 リクエスト、組織ごとに同時 3 リクエスト、developer key ごとに 1 時間あたり 200 回のサインインまでです。エラー BDC_1144 と BDC_1322 は上限に達したことを意味します。少し待ってから再試行してください。
このコネクターは支払いを行わず、請求書や売上請求書の作成も行いません。
ステップ 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 ウィンドウで試します。
BILL (Bill.com)のツールが必要になる依頼をしてみましょう。 - 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 |
|---|---|
bill_com_get_session | Get the current API session: organization id, user id and whether the session is MFA trusted |
bill_com_list_organizations | List the BILL organizations the signed-in user can access, with organization id and name, including Accountant Console organizations |
bill_com_list_vendors | List vendors (payees) with id, name, contact, address, payment details status, bill currency and balance |
bill_com_get_vendor | Get one vendor by id with contact data, address, payment method and network status, bill currency, balance and accounting links |
bill_com_list_customers | List customers (AR) with id, name, contact, address, invoice currency, balance and whether they can be charged |
bill_com_get_customer | Get one customer by id with contact data, billing and shipping address, payment terms, invoice currency and balance |
bill_com_list_bills | List bills (AP invoices from vendors) with id, vendor, invoice number and date, due date, amount, due amount, payment and approval status |
bill_com_get_bill | Get one bill by id with vendor, invoice number, dates, line items with accounts and classifications, amounts, payment status and approval… |
bill_com_list_recurring_bills | List recurring bill templates with vendor, schedule, amount and next due date |
bill_com_list_vendor_credits | List vendor credits (amounts a vendor owes back) with vendor, credit date, amount, applied amount and status |
bill_com_list_invoices | List AR invoices with id, customer, invoice number and date, due date, total, due amount and status |
bill_com_get_invoice | Get one AR invoice by id with customer, number, dates, line items, totals, amount due, status and payment link details |
bill_com_list_credit_memos | List AR credit memos with customer, reference number, credit date, amount, applied amount and status |
bill_com_list_payments | List AP payments made to vendors with id, vendor, amount, process date, disbursement type, status and the bills paid |
bill_com_get_payment | Get one AP payment by id with vendor, amount, funding account, process and expected arrival dates, status, disbursement type and bills paid |
bill_com_list_received_payments | List payments received from customers (AR) with customer, amount, payment date, type, status and the invoices they settle |
bill_com_get_received_payment | Get one received payment by id with customer, amount, payment date, method, status and the invoices it was applied to |
bill_com_list_pending_approvals | List the bills waiting for approval by the signed-in user, with bill, vendor, amount and due date |
bill_com_list_approval_policies | List the bill approval policies of the organization: rules (for example amount thresholds or vendors) and the approvers in order |
bill_com_approve_or_deny_bills | Approve or deny bills waiting for the signed-in user's approval, with an optional comment per bill |
プロンプトの例
- 「未払いまたは一部支払い済みの請求書を支払期日順に並べ、今後 14 日以内に期日を迎える金額を教えてください。」
- 「私の承認待ちの請求書はどれですか。仕入先と金額も教えてください。」
- 「支払期日を過ぎた未回収の顧客向け請求書を、残額とともに一覧にしてください。」
- 「今月行った仕入先への支払いと、それぞれが精算した請求書を教えてください。」
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" と入力すると新しいバージョンになります。
次のステップ
このガイドは役に立ちましたか?