跳过安装。2 分钟内即可运行。
在 cloud.anythingmcp.com 开始免费试用,一键添加 BILL,然后将你的 AI 客户端(Claude、ChatGPT、Copilot 或 Cursor)指向生成的 MCP 端点。无需 Docker,无需 git clone,无需任何工程经验。
摘要
BILL (Bill.com) 应付和应收账款:供应商、应付账单、定期账单、供应商贷项、账单审批和审批策略、应付付款、客户、发票、贷项通知单和收款。通过 developer key 和用户登录使用 BILL v3 API;包含账单审批功能,但安装时默认关闭。
试试这样问
BILL 的示例提示
点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。
Claude 是 AI,可能会出错。请核对回答。
💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → BILL、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无
git clone、无本地服务器。
BILL (Bill.com) + Gemini
BILL (Bill.com) 应付和应收账款:供应商、应付账单、定期账单、供应商贷项、账单审批和审批策略、应付付款、客户、发票、贷项通知单和收款。通过 developer key 和用户登录使用 BILL v3 API;包含账单审批功能,但安装时默认关闭。
前提条件
完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:
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_USERNAME和BILL_PASSWORD中填入该组织一位 BILL 用户的邮箱和密码。请使用专门的 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 每小时 20,000 次请求,每个组织同时 3 个请求,每个 developer key 每小时 200 次登录。错误 BDC_1144 和 BDC_1322 表示达到了限制:请稍候重试。
该连接器不会付款,也不会创建账单或发票。
步骤 2 — 安装 adapter
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 — 在 Gemini 中添加连接器
你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(
https://cloud.anythingmcp.com/mcp/…)。本指南中出现YOUR_SERVER_ID的地方都用它替换。
Gemini CLI 从 ~/.gemini/settings.json(Windows 上为 %USERPROFILE%\.gemini\settings.json)读取 MCP 服务器。添加:
{
"mcpServers": {
"anythingmcp": {
"httpUrl": "https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID",
"headers": { "X-API-Key": "YOUR_MCP_API_KEY" }
}
}
}
- 在 AnythingMCP 的 MCP Servers → 你的服务器 → API keys 中创建 MCP API 密钥,并用它替换
YOUR_MCP_API_KEY。 - 保存文件并重启
gemini。 - 在 Gemini CLI 中运行
/mcp(或在终端运行gemini mcp list),anythingmcp应显示为已连接。 - 开始输入提示,Gemini CLI 现在可以调用
BILL (Bill.com)的工具。
可用工具
| 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
Gemini CLI 从哪里读取 MCP 服务器? 用户级配置位于 ~/.gemini/settings.json,项目级配置位于项目内的 .gemini/settings.json。gemini mcp list 会列出每个服务器及其连接状态。
下一步
这份指南对你有帮助吗?