Server Configuration
Describes the environment variables required to run the server.
Name | Required | Description | Default |
---|---|---|---|
PORT | No | Port to run the server on | 3000 |
NODE_ENV | No | Node environment | development |
LOG_LEVEL | No | Logging level | info |
BREX_API_KEY | Yes | Your Brex API token | |
BREX_API_URL | No | The Brex API URL | https://platform.brexapis.com |
RATE_LIMIT_REQUESTS | No | Maximum number of requests allowed in the rate limit window | 1000 |
RATE_LIMIT_WINDOW_MS | No | Rate limit window in milliseconds | 60000 |
Schema
Prompts
Interactive templates invoked by user choice
Name | Description |
---|---|
summarize_transactions | Summarize transactions for a Brex account |
summarize_expenses | Summarize expenses by category and status |
Resources
Contextual data attached and managed by the client
Name | Description |
---|---|
Brex Accounts | List of all Brex accounts |
Brex Card Accounts | List of all Brex card accounts |
Brex Cash Accounts | List of all Brex cash accounts |
Brex Primary Cash Account | Brex primary cash account details |
Brex Card Transactions | List of all Brex card transactions |
Brex Expenses | List of all Brex expenses |
Brex Card Expenses | List of all Brex card expenses |
Brex Budgets | List of all Brex budgets |
Brex Spend Limits | List of all Brex spend limits |
Brex Budget Programs | List of all Brex budget programs |
Brex MCP Usage Guide | Guidelines and examples for using the tools safely and efficiently |
Tools
Functions exposed to the LLM to take actions
Name | Description |
---|---|
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} |