Skip to main content
Glama

Brex MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoPort to run the server on3000
NODE_ENVNoNode environmentdevelopment
LOG_LEVELNoLogging levelinfo
BREX_API_KEYYesYour Brex API token
BREX_API_URLNoThe Brex API URLhttps://platform.brexapis.com
RATE_LIMIT_REQUESTSNoMaximum number of requests allowed in the rate limit window1000
RATE_LIMIT_WINDOW_MSNoRate limit window in milliseconds60000

Schema

Prompts

Interactive templates invoked by user choice

NameDescription
summarize_transactionsSummarize transactions for a Brex account
summarize_expensesSummarize expenses by category and status

Resources

Contextual data attached and managed by the client

NameDescription
Brex AccountsList of all Brex accounts
Brex Card AccountsList of all Brex card accounts
Brex Cash AccountsList of all Brex cash accounts
Brex Primary Cash AccountBrex primary cash account details
Brex Card TransactionsList of all Brex card transactions
Brex ExpensesList of all Brex expenses
Brex Card ExpensesList of all Brex card expenses
Brex BudgetsList of all Brex budgets
Brex Spend LimitsList of all Brex spend limits
Brex Budget ProgramsList of all Brex budget programs
Brex MCP Usage GuideGuidelines and examples for using the tools safely and efficiently

Tools

Functions exposed to the LLM to take actions

NameDescription
get_budgets

List budgets (read-only). Example: {"limit":10}

get_budget

Get a budget by ID (read-only). Returns the complete budget object. Example: {"budget_id":"budget_123"}

get_spend_limits

List spend limits (read-only). Example: {"limit":10,"status":"ACTIVE"}

get_spend_limit

Get a spend limit by ID (read-only). Example: {"id":"sl_123"}

get_budget_programs

List budget programs (read-only). Returns complete budget program objects. Example: {"limit":10,"budget_program_status":"ACTIVE"}

get_budget_program

Get a budget program by ID (read-only). Example: {"id":"bp_123"}

get_expense

Get a single expense by ID. Returns the complete expense object. Example: {"expense_id":"expense_123","expand":["merchant"]}

get_card_expense

Get a single card expense by ID. Returns the complete card expense object. Example: {"expense_id":"expense_123","expand":["merchant"]}

get_card_statements_primary

Get complete statements for the primary card account. Returns full statement objects. Example: {"limit":10}

get_cash_transactions

LIST: Cash transactions (requires cash scopes). Example: {"account_id":"cash_acc_123","limit":10}. Returns complete transaction objects.

get_card_transactions

LIST: Primary card transactions. Returns complete transaction objects. Example: {"limit":10,"posted_at_start":"2025-08-01T00:00:00Z","expand":["merchant"]}

get_cash_account_statements

Get cash account statements by account ID. Returns complete statement objects. Example: {"account_id":"cash_acc_123","limit":5}

get_transactions

Get transactions for a Brex account

get_expenses

LIST (single page): Expenses with optional filters. Returns complete expense objects. Example: {"limit":5,"status":"APPROVED","expand":["merchant"]}

get_account_details

Get detailed information about a Brex account

upload_receipt

Upload a receipt image to match with expenses

match_receipt

Create a pre-signed URL for uploading a receipt that will be automatically matched with existing expenses

update_expense

Update an existing card expense

get_all_accounts

Get all Brex accounts with pagination support

get_all_expenses

LIST: Paginated expenses with filters. Returns complete expense objects. Example: {"page_size":5,"max_items":5,"status":["APPROVED"],"window_days":7,"min_amount":100}

get_all_card_expenses

LIST: Paginated card expenses (no expense_type needed). Returns complete card expense objects. Example: {"page_size":5,"max_items":5,"window_days":7,"min_amount":100}

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/crazyrabbitLTC/mcp-brex-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server