Bring Corporate Cards
to Mastra AI
Create your Vinkius account to connect Brex to Mastra AI and start using all 10 AI tools in minutes. Fully managed, enterprise secure, and ready to use without writing a single line of code. No hosting, no server setup — just connect and start using.
Compatible with every major AI agent and IDE
What is the Brex MCP Server?
The Brex MCP Server bridges standard large language models directly via the platform.brexapis.com to your startup's core spend engine. By delivering a single static User Token, you enable the most flexible financial assistant available.
What you can do
- Agile Employee Onboarding —
brex_create_userdirectly provisions employees with their associated hierarchical structure. Follow it up withbrex_create_cardto hand them digital spend capacity securely limited. - Accounting Snapshots — You don't need to load the Brex dash to trace down runaway expenses. Trigger
brex_list_transactionsto pull highly contextualized raw CSV data into your AI workspace. - Accounts Payable Controls — Draft and approve external entity vendors via
brex_create_vendorand initiate routing paymentsbrex_pay_vendorseamlessly, letting internal routing protocols map out the wires.
How it works
- In your Brex settings, you can generate an immediate
User Token(typically starting withuser_token_). - This token natively identifies you and limits AI actions safely within your existing managerial permissions level.
- Drop this into your client credentials and authorize AI access.
Who is this for?
- Forward-Thinking CFOs / FinOps — Handle your routine accounting actions strictly through language.
- Startups Scaling — Automatically loop AI agents to handle corporate card provisioning to cloud instances without manual checks.
Built-in capabilities (10)
Useful for giving employees isolated cards for SaaS subscriptions. Issue a dynamic Virtual Corporate Card
You must provide a valid email, first name, and last name. Invite a new employee / user to Brex
Create a Vendor in AP (Accounts Payable)
Get main cash balance of the Brex Cash accounts
List budget programs assigned to teams
List all issued cards across the company
Sweep historical Brex card and account transactions
List all users in the Brex company account
List saved Vendors inside Brex AP
Orchestrate a vendor payment (Send Money)
Why Mastra AI?
Mastra's agent abstraction provides a clean separation between LLM logic and Brex tool infrastructure. Connect 10 tools through Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution. deployable to any Node.js host in one command.
- —
Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add Brex without touching business code
- —
Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation
- —
TypeScript-native: full type inference for every Brex tool response with IDE autocomplete and compile-time checks
- —
One-command deployment to any Node.js host. Vercel, Railway, Fly.io, or your own infrastructure
Brex in Mastra AI
Why run Brex with Vinkius?
The Brex connection runs on our fully managed, secure cloud infrastructure. We handle the hosting, maintenance, and security so you don't have to deal with servers or code. All 10 tools are ready to work instantly without any complex setup.
You stay in complete control of your data. Your AI only accesses the information you approve, keeping your sensitive passwords and private details completely safe. Plus, with automatic optimizations, your AI works faster and more efficiently.

* Every connection is hosted and maintained by Vinkius. We handle the security, updates, and infrastructure so you don't have to write code or manage servers. See our infrastructure
Over 4,000 integrations ready for AI agents
Explore a vast library of pre-built integrations, optimized and ready to deploy.
Connect securely in under 30 seconds
Generate tokens to authenticate and link external services in a single step.
Complete visibility into every agent action
Audit live requests, latency, success rates, and active security compliance policies.
Optimize spending and track token ROI
Analyze real-time token consumption and cost metrics detailed by connection.




Explore our live AI Agents Analytics dashboard to see it all working
This dashboard is included when you connect Brex using Vinkius. You will never be left in the dark about what your AI agents are doing with your tools.
Brex and 4,000+ other AI tools. No hosting, no code, ready to use.
Professionals who connect Brex to Mastra AI through Vinkius don't need to write code, manage servers, or worry about security. Everything is pre-configured, secure, and runs automatically in the background.
Raw MCP | Vinkius | |
|---|---|---|
| Ready-to-use MCPs | Find and configure each manually | 4,000+ MCPs ready to use |
| Connection Setup | Manual coding & server setup | 1-click instant connection |
| Server Hosting | You host it yourself (needs 24/7 uptime) | 100% hosted & managed by Vinkius |
| Security & Privacy | Stored in plaintext config files | Bank-grade encrypted vault |
| Activity Visibility | Blind execution (no logs or tracking) | Live dashboard with real-time logs |
| Cost Control | Runaway AI token spend risk | Automatic budget limits |
| Revoking Access | Must delete files or code to stop | 1-click disconnect button |
How Vinkius secures
Brex for Mastra AI
Every request between Mastra AI and Brex is protected by our secure gateway. We automatically keep your sensitive data private, prevent unauthorized access, and let you disconnect instantly at any time.
Frequently asked questions
Can the agent truly issue a real, functioning corporate card?
Yes! The brex_create_card logic specifically maps to creating a virtual limit card. By default, it operates completely valid via Visa/Mastercard configurations matching Brex internals. The agent handles setting its name and tying it strictly to the user id.
What acts as the final authentication key for Brex?
You only need a User Token. Brex explicitly supports personal workflow automation using user_tokens which perfectly mimic your permissions. It typically begins literally with the string user_token_ followed by hashes.
Will vendor payments via AI require external 2FA from my side?
To enforce safety in the integration, the approval_type parameter when sending vendor money defaults to 'MANUAL'. This means the AI structures all the math, formatting, routing inputs perfectly but leaves the final 'Accept' button queued on your dashboard.
How can I see my user lists across Brex?
Run a request on brex_list_users. The AI will natively stream the company's organizational tree mapping the emails to Brex UUIDs required for triggering corporate card injections.
How does Mastra AI connect to MCP servers?
Create an MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.
Can Mastra agents use tools from multiple servers?
Yes. Pass multiple MCP clients to the agent constructor. Mastra merges all tool schemas and the agent can call any tool from any server.
Does Mastra support workflow orchestration?
Yes. Mastra has a built-in workflow engine that lets you chain MCP tool calls with branching logic, error handling, and parallel execution.
createMCPClient not exported
Install: npm install @mastra/mcp
Explore More MCP Servers
View all →
Filemail
10 toolsTransfer large files up to terabytes securely with password protection, download tracking, and branded transfer pages.

Balena
10 toolsManage IoT fleets and edge devices via Balena — list devices, manage environment variables, and track releases directly from your AI agent.

FlightAware
12 toolsTrack global flight status via FlightAware AeroAPI — search flights, monitor airport arrivals and departures, check weather, and access historical flight data from any AI agent.

Azure AI Search
6 toolsExecute RAG queries against Azure AI Search natively — search vectors, full-text documents, and audit cloud indexes directly from your AI agent.
