Skip to main content
Glama
dennisonbertram

Brex MCP Server

get_all_expenses

Fetch and aggregate all expenses from Brex with automatic pagination, filtering by date range, amount, status, merchant, and other criteria to retrieve comprehensive expense data.

Instructions

Fetch all expenses across multiple pages with automatic pagination handling. Supports date range filtering, amount filtering, status filtering, and merchant search. Returns aggregated results with summary statistics. Use window_days to batch large date ranges.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
page_sizeNoNumber of items per page (default: 50, max: 100)
max_itemsNoMaximum total number of items to retrieve across all pages
expense_typeNoFilter expenses by type
statusNoFilter expenses by status
payment_statusNoFilter expenses by payment status
start_dateNoFilter expenses created on or after this date (ISO format: YYYY-MM-DD)
end_dateNoFilter expenses created on or before this date (ISO format: YYYY-MM-DD)
window_daysNoOptional batching window in days to split large date ranges
min_amountNoClient-side minimum purchased_amount.amount filter (in cents)
max_amountNoClient-side maximum purchased_amount.amount filter (in cents)
expandNoFields to expand (e.g., merchant, receipts)

Latest Blog Posts

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/dennisonbertram/mcp-brex'

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