# Brex MCP

> Brex MCP connects your AI client directly to your company's spending engine. You can provision new team members, issue limited virtual cards for SaaS tools, pull detailed transaction logs, and process vendor payments—all using natural chat.

## Overview
- **Category:** money-moves
- **Price:** Free
- **Tags:** corporate-cards, spend-management, employee-onboarding, financial-operations, cash-management, virtual-cards

## Description

This connector lets you manage corporate finances without ever leaving your chat window. Instead of logging into the Brex dashboard to check cash balances or run reports on last quarter's spending, you just ask your agent. It pulls highly contextualized raw data right into your workspace. Need to bring a new engineer onboard? You can automatically create their user profile and immediately spin up a virtual card with specific spending limits. The system handles the provisioning and linking of that capacity. When you need to pay an external vendor, it manages the entire payment lifecycle—from creating the vendor record to initiating the funds transfer. Everything is secure because actions are governed by your existing Brex permissions. Through Vinkius, you get access to this robust suite of financial tools, allowing your AI client to act as a true operational co-pilot for finance and ops.

## Tools

### brex_create_card
This tool issues a dynamic virtual card, ideal for giving employees isolated spending capacity for SaaS subscriptions.

### brex_create_user
Use this to invite and create new employee user accounts within the Brex system using their name and email.

### brex_create_vendor
It allows you to establish a new external company record inside Accounts Payable (AP).

### brex_get_balance
This function retrieves the current primary operational checking balance held by Brex.

### brex_list_budgets
It pulls a list of budget programs that have been assigned to various teams within the company.

### brex_list_cards
This tool lists all virtual and physical cards currently issued across your entire organization.

### brex_list_transactions
The agent can pull a comprehensive sweep of historical card and account transactions for detailed analysis.

### brex_list_users
This tool retrieves a list of every user currently registered within your company's Brex account.

### brex_list_vendors
It fetches and displays all saved vendor records that are already set up in the AP system.

### brex_pay_vendor
Use this to initiate a payment, which orchestrates sending money out to an external vendor.

## Prompt Examples

**Prompt:** 
```
Invite the new engineer 'John Carter' via email john@company.com into Brex. After you get his ID, spin him up a Virtual Card with a $1K limit immediately.
```

**Response:** 
```
Double-tool chain complete! First, I invoked `brex_create_user` and instantiated John natively. Next, I utilized the Brex User UUID `usx_210` to successfully map and authorize a fresh Virtual Mastercard strictly capped at a 1000 limit.
```

**Prompt:** 
```
Check the core cash settlement. How much Treasury base balance do we stand at? Extract only active Checking values.
```

**Response:** 
```
According to the `cash/balances` API sweep, your primary operational checking environment sits at $145,210.00 USD securely settled by your local Brex vault integrations.
```

**Prompt:** 
```
Pull all corporate expenses tracked over the past 30 days focusing entirely on our AWS hosting and digital footprints.
```

**Response:** 
```
I performed a granular array analysis of over 50 transaction payloads returning from the last 30 intervals. Brex logs exactly three occurrences of AWS charges on the 'Engineering Budget'. Amounting to roughly $3,000 cumulatively.
```

## Capabilities

### Onboard New Employees
The MCP automatically creates user accounts in Brex and issues them digital corporate cards with specific spending caps.

### Audit Spending History
You can pull massive amounts of raw transaction data, letting your agent analyze every card swipe or account charge over a chosen period.

### Manage Vendor Payments
It handles the entire payable process: creating the vendor record and then sending out the actual payment funds.

### Check Cash Reserves
The agent pulls your current main cash balance from Brex's primary accounts.

## Use Cases

### Investigating unauthorized spending.
A team member asks, 'Show me all transactions in the last month related to cloud hosting.' The agent calls `brex_list_transactions` and filters the raw data set, pinpointing exactly where those AWS charges occurred.

### Rapidly setting up a new contractor.
The ops engineer needs to add a temporary vendor. They call `brex_create_vendor`, get confirmation of the record ID, and then use that ID immediately to process their first payment via `brex_pay_vendor`.

### Adding an employee who starts today.
The manager gives a prompt: 'Onboard Jane Doe.' The agent uses `brex_create_user`, and then immediately follows up with `brex_create_card` to give her a $500 virtual card for marketing tools.

### Checking current financial health.
A CFO asks, 'What is our primary cash settlement balance?' The agent calls `brex_get_balance`, returning the exact figure without opening any banking or finance dashboards.

## Benefits

- Onboarding is instant. Instead of manually creating users, you can use the `brex_create_user` tool to provision new employees instantly, followed by `brex_create_card` to issue their spending capacity in one go.
- You eliminate manual report building. Running a query for all corporate expenses over 30 days using `brex_list_transactions` dumps raw CSV data directly into your agent's memory for immediate analysis.
- Vendor payments become automated. You no longer need to navigate the AP portal; use `brex_create_vendor` and then execute `brex_pay_vendor` to handle everything, from record creation to funds transfer.
- Cash visibility is constant. Quickly check your company’s core liquid status with a single call to `brex_get_balance`, avoiding the need to log into cash management portals.
- Auditing entire user bases is simple. You can use `brex_list_users` or `brex_list_vendors` to pull comprehensive lists of all accounts and external entities at a glance.

## How It Works

The bottom line is: your agent uses your existing permissions to talk directly to Brex's system, giving you instant financial oversight without needing any manual logins or dashboard clicks.

1. You generate a secure User Token in your Brex settings and input it into Vinkius. This token limits the AI client's actions to your specific manager permissions.
2. Your AI agent uses this access to call specific tools, like `brex_create_user` or `brex_list_transactions`, passing only the necessary parameters (e.g., email address, date range).
3. The MCP executes the request against Brex's live API and returns a clean, structured result—whether that's a list of users, a confirmed payment status, or a raw CSV data dump.

## Frequently Asked Questions

**How do I check my current cash balance using Brex MCP?**
You call the `brex_get_balance` tool. This function pulls your main operational checking account balance directly from Brex, giving you real-time visibility without needing to navigate any bank portals.

**What is the best way to onboard a new employee with Brex MCP?**
You first call `brex_create_user` using their email and name. Then, immediately follow up by calling `brex_create_card` to issue them a virtual card with your desired spending limit.

**Can I use Brex MCP to track old expenses?**
Yes. You run the `brex_list_transactions` tool. This sweeps all historical transaction data, letting you pull and analyze raw records from past card activity or account charges.

**Does brex_pay_vendor handle payments for new vendors?**
It can. If the vendor isn't set up yet, you must first call `brex_create_vendor`. Once that record is established, calling `brex_pay_vendor` will process the payment.

**How do I see who is currently on my team via Brex MCP?**
Run the `brex_list_users` tool. It returns a comprehensive list of every user account connected to your company's Brex profile, helping you manage permissions.