How to Use the Cora Bank MCP in Mastra AI
Automate Cora Bank payments and Pix reconciliation using Mastra AI workflows and this dedicated MCP Server.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Cora Bank MCP to Mastra AI
Create your Vinkius account to connect Cora Bank to Mastra AI and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Automated Pix payouts with Mastra AI workflow steps
`cora_send_pix` integrates directly into your Mastra AI workflow pipelines to automate payments to vendors and contractors. If a transfer fails due to a network glitch, Mastra's built-in engine automatically retries the operation using exponential backoff. You can configure the workflow to require manual developer approval before executing this tool. This ensures you maintain strict control over outgoing capital while letting the AI client prepare the payload.
Conditional branching for outstanding Boleto collection
`cora_list_invoices` lets your Mastra AI agent monitor your unpaid bills and trigger follow-up actions based on their status. The agent can check the list, identify overdue accounts, and initiate automated collection sequences without human intervention. When an invoice remains unpaid, the workflow can trigger `cora_get_invoice` to pull the exact Pix QR code and email it back to the customer. If the customer requests a change, the agent can call `cora_cancel_invoice` and issue a corrected document instantly.
Self-healing financial audits and balance checks
`cora_get_balance` acts as the primary health check at the start of any automated payout sequence inside Mastra AI. Your agent checks available funds before attempting to run any high-value transfers, avoiding overdraft fees. If the balance is insufficient, the workflow branches to notify your team via Slack instead of failing silently. By combining this with `cora_get_statement`, your agent builds a complete picture of your cash flow before executing decisions.
Set up Cora Bank MCP in Mastra AI
Prerequisites
- Node.js 18+ and a TypeScript project
-
@mastra/mcp+@mastra/corepackages - Active Vinkius subscription with a valid endpoint token
- 1
Install dependencies
Run
npm install @mastra/mcp @mastra/coreplus your preferred model provider (e.g.@ai-sdk/openai). - 2
Configure the MCPClient
Create an
MCPClientwith your Vinkius endpoint as aURLobject. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. - 3
Discover and inject tools
Call
mcpClient.listTools()and spread the result into your agent'stoolsobject. All Cora Bank tools become native Mastra tools. - 4
Run with any model
Swap
openai("gpt-4o")for any AI SDK-compatible provider. Callagent.generate()and the agent routes tool calls through MCP automatically.
import { MCPClient } from "@mastra/mcp";
import { Agent } from "@mastra/core/agent";
import { openai } from "@ai-sdk/openai";
const mcpClient = new MCPClient({
id: "cora-bank-mcp-client",
servers: {
"cora-bank-mcp": {
url: new URL(
"https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
),
},
},
});
const agent = new Agent({
name: "Cora Bank Agent",
model: openai("gpt-4o"),
instructions: "You have access to Cora Bank tools.",
tools: {
...(await mcpClient.listTools()),
},
});
const result = await agent.generate(
"List recent Cora Bank transactions"
);
console.log(result.text); Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Cora Bank. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Cora Bank MCP in Mastra AI
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Cora Bank MCP today
We host it, we monitor it, we maintain it. You just paste one token.