跳过安装。2 分钟内即可运行。
在 cloud.anythingmcp.com 开始免费试用,一键添加 Brex,然后将你的 AI 客户端(Claude、ChatGPT、Copilot 或 Cursor)指向生成的 MCP 端点。无需 Docker,无需 git clone,无需任何工程经验。
摘要
让你的 AI 读取你的 Brex 账户:卡片、卡账户和企业账户的交易、对账单、费用、预算、支出限额、供应商、用户和差旅行程。使用只读 API 令牌,无法转出资金。锁卡和费用备注操作为可选项,默认关闭。
试试这样问
Brex 的示例提示
点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。
Claude 是 AI,可能会出错。请核对回答。
💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Brex、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无
git clone、无本地服务器。
Brex
让你的 AI 读取你的 Brex 账户:卡片、卡账户和企业账户的交易、对账单、费用、预算、支出限额、供应商、用户和差旅行程。使用只读 API 令牌,无法转出资金。锁卡和费用备注操作为可选项,默认关闭。
设置
按设计无法转移资金。 这个连接器没有任何用于转账、付款、Bill Pay、ACH、电汇、支票、新开卡片或修改限额的工具,连默认关闭的也没有。即使让 AI 给某人付款,它也做不到。财务团队可以了解支出情况,而不会多出一条让资金离开账户的新通道。
- 以 account admin 或 card admin 身份登录
https://dashboard.brex.com,打开 Developer,再打开 Settings。如果 Brex 要求,请接受开发者 API 条款。 - 点击 Create Token,起一个名字,例如 AnythingMCP,并只勾选连接器使用的只读 scope:
companies.readonly,users.readonly,departments.readonly,locations.readonly,cards.readonly,accounts.card.readonly,accounts.cash.readonly,transactions.card.readonly,transactions.cash.readonly,statements.card.readonly,statements.cash.readonly,expenses.card.readonly,budgets.readonly,vendors.readonly,travel.trips.readonly。不需要的可以不选,对应的工具会返回 403。 - 绝不要勾选
transfers、incoming_transfers或cards.pan。它们允许软件转移资金或读取完整卡号,而这个连接器两者都不需要。 - 点击 Allow Access,把令牌(以
bxt_开头)复制到BREX_API_TOKEN,然后安装连接器。Brex 只显示一次令牌。 - 用
brex_get_company检查设置:它会显示公司的法定名称和账户类型。
只读令牌:只包含 .readonly scope 的令牌无法在 Brex 中做任何修改。
安装时关闭:brex_lock_card 和 brex_unlock_card(用于卡片丢失或疑似欺诈,持卡人会收到通知),以及 brex_update_expense_memo(写入业务用途,并覆盖原有备注)。要使用它们,管理员需创建一个额外包含 cards scope(用于卡片操作)或 expenses.card scope(用于备注)的令牌,并打开该工具。AI 会先向你显示卡片名称和末四位,或费用和新备注,等你确认后才执行。Brex 的 cards scope 还会允许其他软件开卡,这个连接器没有这样的工具。
财务数据属于敏感信息:余额、交易、费用、卡片和员工信息都是公司机密数据。只与有权查看的人共享 MCP 服务器;AI 只读取你要求的内容。完整卡号、CVC、银行账号和路由号码永远不会返回:卡片只显示末四位,账户和供应商的银行信息会被移除。
可读取的内容:公司、用户、部门和地点;带支出控制的卡片;卡账户的余额和额度、已入账的卡交易和卡对账单;企业(cash)账户及其交易和对账单;费用(卡片、Bill Pay 和报销)及收据和合规状态,用 DUE 和 OVERDUE 可以找出仍缺收据或备注的费用;预算和支出限额及已花费金额;供应商;以及 Brex Travel 的差旅行程。待处理的卡授权不包含在内,Brex 的交易入账可能会晚几天。
金额:Brex 以货币的最小单位返回金额,所以 USD 的 700 表示 7.00 USD。AI 会先换算再显示。
限制和令牌:每个账户每 60 秒最多 1,000 个请求。90 天未使用的令牌会过期,令牌所属用户不再活跃时令牌也会失效。你可以随时在 Developer、Settings 中撤销它。Brex 没有沙盒,所以连接器读取的始终是真实数据。
常见错误:401,或 403 "Invalid or Revoked Token":令牌错误、已撤销或已过期,请新建一个。只有部分工具返回 403:令牌缺少该工具的 scope,或令牌用户缺少相应的 Brex 角色(大多数数据需要 account admin)。404:这个 Brex 账户中没有该 ID。429:请等一分钟。
这个连接器不会转移资金,不会开卡或注销卡片,不会修改限额或预算,不会审批费用,不会上传收据,也不会管理用户和 webhook。
前提条件: BREX_API_TOKEN
本地安装连接器
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
打开 http://localhost:3000/connectors/store,选择 Brex 并填入前提条件中列出的环境变量。
可用工具
| Tool | What it does |
|---|---|
brex_get_company | Read the Brex company this token belongs to: id, legal name, account type and mailing address |
brex_get_current_user | Read the Brex user who created the token: id, name, email, status, manager, department and location ids |
brex_list_users | List Brex users (employees and admins) with id, name, email, status, manager, department, location, title, cost center and legal entity ids |
brex_get_user | Read one Brex user by id: name, email, status, manager, department, location, title, cost center and legal entity ids |
brex_list_departments | List the departments set up in Brex (id, name, description) |
brex_list_locations | List the office locations set up in Brex (id, name, description) |
brex_list_cards | List Brex cards with id, name, status (ACTIVE, SHIPPED, LOCKED, TERMINATED), virtual or physical, last four digits, owner user id, budget… |
brex_get_card | Read one Brex card by id: name, status, type, last four digits, owner, budget and spend controls |
brex_lock_card | Lock a Brex card so it cannot be used, for example when it is lost or suspected of fraud |
brex_unlock_card | Unlock a locked Brex card so it can be used again |
brex_list_card_accounts | List the Brex card accounts with status, current balance, available balance, account limit and the current statement period |
brex_list_card_transactions | List settled card transactions for all Brex card accounts: description, amount, initiated and posted dates, type (PURCHASE, REFUND… |
brex_list_card_statements | List finalized statements of the primary Brex card account: statement id, period (start and end date) and start and end balance |
brex_list_cash_accounts | List Brex business (cash) accounts with id, name, status, whether it is the primary account, current and available balance |
brex_get_cash_account | Read one Brex business (cash) account by id: name, status, primary flag, current and available balance |
brex_list_cash_transactions | List transactions of one Brex business (cash) account: description, amount, type (PAYMENT, DIVIDEND, FEE, INTEREST, CARD_COLLECTION and… |
brex_list_cash_statements | List finalized statements of one Brex business (cash) account: statement id, period and start and end balance |
brex_list_expenses | List Brex expenses (card, bill pay and reimbursement) with memo, status, payment status, category, purchase date, amounts, merchant, user… |
brex_get_expense | Read one Brex expense by id with memo, status, amounts, merchant, user, budget, receipts, policy and compliance status |
brex_update_expense_memo | Set the memo of a Brex card expense, for example the business purpose |
brex_list_budgets | List Brex budgets with name, description, parent budget, owners, period (WEEKLY, MONTHLY, QUARTERLY, YEARLY, ONE_TIME), start and end date… |
brex_get_budget | Read one Brex budget by id: name, parent, owners, period, dates, amount, status and limit type |
brex_list_spend_limits | List Brex spend limits with name, status, period, dates, authorization settings (base limit and limit with increases), per-transaction… |
brex_get_spend_limit | Read one Brex spend limit by id: limits, current period balance, owners, members and settings |
brex_list_vendors | List the vendors saved in Brex with id, company name, email, phone and the payment methods on file (ACH, DOMESTIC_WIRE, CHEQUE… |
brex_get_vendor | Read one Brex vendor by id: company name, email, phone and the payment methods on file |
brex_list_trips | List Brex Travel trips with name, status, traveler, booker, start and end time and reference |
brex_get_trip | Read one Brex Travel trip by id: name, status, traveler, booker, dates and reference |
示例提示
- “上个月有哪些卡片费用还缺收据或备注?按员工分组。”
- “列出上个月已入账、金额超过 1,000 USD 的卡交易,附上商户、持卡人和日期。”
- “我们 Brex 卡账户的当前余额和可用额度是多少?本期对账单什么时候结束?”
- “哪些支出限额在本期已经用掉了超过 80% 的额度?”
- “下周出发的 Brex Travel 行程有哪些?显示出行人、行程名称和日期。”
下一步
这份指南对你有帮助吗?