Skip the install. Get this working in under 2 minutes.
Start a free trial on cloud.anythingmcp.com, add the Brex in one click, then point your AI client (Claude, ChatGPT, Copilot or Cursor) at the generated MCP endpoint. No Docker, no git clone, zero engineering experience required.
Summary
Let your AI read your Brex account: cards, card and business account transactions, statements, expenses, budgets, spend limits, vendors, users and trips. Read-only API token; it cannot send money. Card lock and expense memo actions are optional and off by default.
Try asking
Example prompts for Brex
Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.
Claude is AI and can make mistakes. Please double-check responses.
💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → Brex, paste your credentials, mint an MCP API key and you're done. No Docker, no
git clone, no local server.
Brex + Gemini
Let your AI read your Brex account: cards, card and business account transactions, statements, expenses, budgets, spend limits, vendors, users and trips. Read-only API token; it cannot send money. Card lock and expense memo actions are optional and off by default.
Prerequisites
See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:
BREX_API_TOKEN
Step 1 — Get credentials
It cannot move money, by design. The connector has no tool for transfers, payments, bill pay, ACH, wires, checks, new cards or limit changes, not even a switched-off one. Asking the AI to pay someone will not work. Your finance team gets answers about spend without opening a new way for money to leave the account.
- Sign in to
https://dashboard.brex.comas an account admin or card admin and open Developer, then Settings. Accept the developer API terms if Brex asks. - Click Create Token, give it a name such as AnythingMCP and select only the read-only scopes the connector uses:
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. Leave out the ones you do not need; the matching tools then answer 403. - Never select
transfers,incoming_transfersorcards.pan. They let software move money or read full card numbers, and this connector needs neither. - Click Allow Access, copy the token (it starts with
bxt_) intoBREX_API_TOKENand install the connector. Brex shows the token only once. - Check the setup with
brex_get_company: it shows your company's legal name and account type.
Read-only token: a token with only .readonly scopes cannot change anything in Brex.
Switched off at install: brex_lock_card and brex_unlock_card (for a lost card or suspected fraud; the card owner is notified) and brex_update_expense_memo (writes the business purpose and overwrites the old memo). To use them, an admin creates a token that also has the cards scope for the card actions or expenses.card for the memo, and switches the tool on. The AI then shows you the card name and last four digits, or the expense and the new memo, and waits for your yes. Brex's cards scope would also let other software issue cards; this connector has no such tool.
Financial data is sensitive: balances, transactions, expenses, cards and employee details are confidential company data. Share the MCP server only with people allowed to see them; the AI reads only what you ask for. Full card numbers, CVCs and bank account and routing numbers are never returned: cards show the last four digits, and the bank details of accounts and vendors are removed.
What it reads: company, users, departments and locations; cards with their spend controls; card account balances and limit, settled card transactions and card statements; business (cash) accounts with their transactions and statements; expenses (card, bill pay and reimbursement) with receipts and compliance status, where DUE and OVERDUE find expenses still missing a receipt or memo; budgets and spend limits with what has been spent; vendors; and Brex Travel trips. Pending card authorizations are not included, and Brex can post a transaction a few days late.
Amounts: Brex gives amounts in the smallest currency unit, so 700 in USD means 7.00 USD. The AI converts them before showing them.
Limits and tokens: 1,000 requests per 60 seconds per account. A token unused for 90 days expires, and a token stops working when its user is no longer active. You can revoke it at any time under Developer, Settings. Brex has no sandbox, so the connector always reads live data.
Common errors: 401, or 403 "Invalid or Revoked Token": the token is wrong, revoked or expired; create a new one. 403 on some tools only: the token lacks that tool's scope, or its user lacks the Brex role (most data needs an account admin). 404: the id does not exist in this Brex account. 429: wait a minute.
The connector does not move money, issue or terminate cards, change limits or budgets, approve expenses, upload receipts or manage users and webhooks.
Step 2 — Install the 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
Step 3 — Add the connector in Gemini
Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (
https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide showsYOUR_SERVER_ID.
Gemini CLI reads MCP servers from ~/.gemini/settings.json (on Windows %USERPROFILE%\.gemini\settings.json). Add:
{
"mcpServers": {
"anythingmcp": {
"httpUrl": "https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID",
"headers": { "X-API-Key": "YOUR_MCP_API_KEY" }
}
}
}
- Create an MCP API key in AnythingMCP under MCP Servers → your server → API keys, and paste it in place of
YOUR_MCP_API_KEY. - Save the file and restart
gemini. - Run
/mcpinside Gemini CLI (orgemini mcp listin your shell):anythingmcpshould show as connected. - Start prompting: Gemini CLI can now call the
Brextools.
Available tools
| 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 |
Example prompts
- "Which card expenses from last month are still missing a receipt or a memo? Group them by employee."
- "List last month's settled card transactions over 1,000 USD with merchant, card holder and date."
- "What is the current balance and available limit of our Brex card account, and when does the statement period end?"
- "Which spend limits have already used more than 80 percent of this period's limit?"
- "Which Brex Travel trips start next week? Show traveler, trip name and dates."
FAQ
Where does Gemini CLI look for MCP servers? In ~/.gemini/settings.json for your user, or in .gemini/settings.json inside a project. gemini mcp list shows each server and whether it connects.
Next steps
Was this guide helpful?