Brex MCP for AI Agents

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Brex MCP or direct API to automate expense reports, review transactions, manage company cards, and generate real-time spend analytics through natural language.
Trusted by
AWS
Glean
Zoom
Airtable

30 min · no commitment · see it on your stack

Brex Logo
Gradient Top
Gradient Middle
Gradient Bottom
divider

Try Brex now

Enter a prompt below to test the integration in our Tool Router playground. You'll be redirected to sign in and try it live.

Supported Tools

Tools
Add Webhook Group MembersAdd webhook subscription members to a webhook group.
Archive BudgetArchive a budget to mark it as inactive and prevent future expenses.
Archive Spend LimitArchive a spend limit in Brex.
Create BudgetCreate a new budget for departments or projects.
Create Spend Limit (Budget V1)Tool to create a new Spend Limit (Budget) in Brex.
Create CardCreate a new card and assign it to a user.
Create DepartmentCreate a new department.
Create Document Upload for ReferralCreate a document upload URL for a referral and return a pre-signed S3 upload URL.
Create ExpenseCreate a new expense.
Create Custom FieldCreate a new custom field in Brex.
Create Field ValuesCreate custom field values for a specific Brex field.
Create LocationCreate a new location.
Create Referral RequestTool to create a new referral to Brex for onboarding.
Create Spend LimitTool to create a spend limit in Brex.
Create Job TitleCreate a new job title.
Create UserCreate a new user in the Brex account.
Create VendorCreate a new vendor in Brex for payment operations.
Create Webhook GroupTool to create a webhook group for targeting webhook subscriptions.
Create Webhook SubscriptionRegister a new webhook subscription to receive real-time notifications for Brex events.
Delete FieldTool to delete a custom field by Brex ID.
Delete Field ValuesDelete custom field values for a specific field.
Delete VendorDelete a vendor by ID.
Get Account StatementsGet finalized statements for the primary cash account.
Get Budget DetailsGet detailed information about a specific budget.
Get Card DetailsGet detailed information about a specific card.
Get Card ExpenseTool to retrieve detailed information about a specific card expense by its ID.
Get Card NumberGet card number, CVV, and expiration date for a specific card.
Get Card TransactionsGet settled card transactions for the primary card account.
Get Company Cash AccountsRetrieve all cash (deposit) accounts for the company.
Get Company DetailsGet company information associated with the OAuth2 access token.
Get Department By IDGet detailed information about a specific department by ID.
Get ExpenseTool to get details of a specific expense by ID.
Get Field By IDTool to retrieve a custom field by its Brex ID.
Get Field Value By IDTool to retrieve a specific field value by field ID and field value ID.
Get Legal EntityTool to retrieve a legal entity by its ID from Brex.
Get Location By IDGet detailed information about a specific location by ID.
Get Referral By IDTool to retrieve a specific referral by its ID from Brex.
Get Spend Limit By IDTool to get detailed information about a specific spend limit by its ID.
Get Spend LimitsGet spend limits configuration.
Get Title by IDGet detailed information about a specific job title by ID.
Get Transaction by IDGet details of a specific transaction by ID.
Get Card TransactionsGet card transactions from the primary Brex account.
Get Transactions by Amount RangeGet card transactions filtered by amount range and date period.
Search Transactions by DescriptionSearch and filter card transactions by description text.
Get User LimitRetrieves the monthly spending limit and available balance for a specific Brex user.
Get User ProfileGet user profile information from Brex Team API.
Get Vendor By IDTool to get vendor details by ID.
Get Webhook GroupTool to retrieve details of a specific webhook group by ID.
Get Webhook SubscriptionTool to retrieve details of a specific webhook subscription by ID.
List Budget ProgramsTool to list all budget programs in the organization.
List BudgetsList all budgets and show available amounts across all cards.
List Card AccountsTool to list all card accounts for the company.
List CardsList all cards associated with the account.
List Card StatementsTool to list finalized statements for primary card accounts.
List DepartmentsList all departments in the organization.
List ExpensesTool to list expenses from the Brex platform.
List Field ValuesTool to list values under a custom field.
List Legal EntitiesTool to list all legal entities in the Brex account with pagination support.
List LocationsList all locations in the organization.
List ReferralsTool to list all referrals created in the Brex account.
List Job TitlesList all job titles in the organization.
List TransfersLists transfers for the account.
List TripsLists trips according to the filters passed in the query string.
List UsersList all users in the Brex account.
List VendorsList all vendors.
List Webhook Group MembersTool to list all members of a webhook group.
List Webhook GroupsTool to list all webhook groups.
List Webhook SecretsTool to retrieve webhook signing secrets for validating incoming webhook messages from Brex.
List Webhook SubscriptionsTool to list all registered webhook subscriptions.
Create Receipt MatchCreates a receipt match request and returns a pre-signed S3 upload URI.
Create Receipt Upload for ExpenseCreates a receipt upload request for a specific card expense and returns a pre-signed S3 upload URL.
Set User LimitSet or update the monthly spending limit for a Brex user.
Transfer CardTransfer a card to a different user.
Update BudgetUpdate an existing budget's configuration in Brex.
Update Spend Limit (V1)Tool to update a Spend Limit (budget) using the v1 API.
Update Card LimitsUpdate spending limits and controls for a Brex card.
Update Card StatusUpdate the status of a Brex card by locking, unlocking, or terminating it.
Update ExpenseTool to update an expense by its ID.
Update FieldTool to update a custom field in Brex.
Update Field ValuesTool to update custom field values in Brex for a specific field.
Update Spend LimitUpdates an existing Brex spend limit by its ID.
Update UserUpdate user details.
Update VendorTool to update vendor information in Brex.
Update Webhook SubscriptionUpdates an existing Brex webhook subscription's configuration.
Python
TypeScript

Install Composio

python
pip install composio claude-agent-sdk
Install the Composio SDK and Claude Agent SDK

Create Tool Router Session

python
from composio import Composio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions

composio = Composio(api_key='your-composio-api-key')
session = composio.create(user_id='your-user-id')
url = session.mcp.url
Initialize the Composio client and create a Tool Router session

Connect to AI Agent

python
import asyncio

options = ClaudeAgentOptions(
    permission_mode='bypassPermissions',
    mcp_servers={
        'tool_router': {
            'type': 'http',
            'url': url,
            'headers': {
                'x-api-key': 'your-composio-api-key'
            }
        }
    },
    system_prompt='You are a helpful assistant with access to Brex tools.',
    max_turns=10
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query('Get account statements for last month')
        async for message in client.receive_response():
            if hasattr(message, 'content'):
                for block in message.content:
                    if hasattr(block, 'text'):
                        print(block.text)

asyncio.run(main())
Use the MCP server with your AI agent

Why Use Composio?

AI Native Brex Integration

  • Supports both Brex MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for reading, writing, and querying your Brex data

Managed Auth

  • Built-in OAuth handling with automatic token refresh and rotation
  • Central place to manage, scope, and revoke Brex access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Brex
  • Scoped, least privilege access to Brex resources
  • Full audit trail of agent actions to support review and compliance

Frequently Asked Questions

Do I need my own developer credentials to use Brex with Composio?

Yes, Brex requires you to configure your own OAuth credentials. Once set up, Composio handles token storage, refresh, and lifecycle management for you.

Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. Learn more.

What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Used by agents from

Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.