4,500+ servers built on MCP Fusion
Vinkius
Modulr logo
Vinkius
Mastra AI logo

How to Use the Modulr MCP in Mastra AI

Build self-healing, multi-step payment workflows with Mastra AI and the Modulr MCP Server.

See Vinkius in Action

Works with every AI agent you already use

…and any MCP-compatible client

Modulr MCP on Cursor AI Code Editor MCP Client Modulr MCP on Claude Desktop App MCP Integration Modulr MCP on OpenAI Agents SDK MCP Compatible Modulr MCP on Visual Studio Code MCP Extension Client Modulr MCP on GitHub Copilot AI Agent MCP Integration Modulr MCP on Google Gemini AI MCP Integration Modulr MCP on Lovable AI Development MCP Client Modulr MCP on Mistral AI Agents MCP Compatible Modulr MCP on Amazon AWS Bedrock MCP Support
MCP Servers - Free for Subscribers
Mastra AI

Connect Modulr MCP to Mastra AI

Create your Vinkius account to connect Modulr 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.

GDPR Free for Subscribers

Automated retry loops for failed payouts

Payments fail, but your system shouldn't. Mastra AI lets you build workflows that catch failures when running `modulr_create_payment` and automatically retry with exponential backoff. If a SEPA payout bounces, the workflow engine catches the error. It can query `modulr_get_accounts` to check liquidity before attempting the transfer again.

Human-in-the-loop approvals for large transfers

You don't want an autonomous agent moving big money without eyes on it. You can configure Mastra AI to require manual approval before executing `modulr_create_payment` or setting up a new recipient with `modulr_create_beneficiary`. The workflow pauses, alerts your team on Slack, and waits for a green light. Once approved, the Modulr MCP Server safely fires the API call.

Conditional ledger routing with Mastra AI

Build workflows that branch based on live financial data. Your agent can run `modulr_get_customers` to verify an entity, then decide whether to invoke `modulr_create_account` or flag the profile for manual compliance review. Mastra AI coordinates these decisions natively. It parses the raw JSON responses from the Modulr MCP Server and routes the execution path without complex custom code.

Setup guide

Set up Modulr MCP in Mastra AI

Prerequisites

  • Node.js 18+ and a TypeScript project
  • @mastra/mcp + @mastra/core packages
  • Active Vinkius subscription with a valid endpoint token
  1. 1

    Install dependencies

    Run npm install @mastra/mcp @mastra/core plus your preferred model provider (e.g. @ai-sdk/openai).

  2. 2

    Configure the MCPClient

    Create an MCPClient with your Vinkius endpoint as a URL object. Replace [YOUR_TOKEN_HERE] with your token from cloud.vinkius.com.

  3. 3

    Discover and inject tools

    Call mcpClient.listTools() and spread the result into your agent's tools object. All Modulr tools become native Mastra tools.

  4. 4

    Run with any model

    Swap openai("gpt-4o") for any AI SDK-compatible provider. Call agent.generate() and the agent routes tool calls through MCP automatically.

agent.ts
import { MCPClient } from "@mastra/mcp";
import { Agent } from "@mastra/core/agent";
import { openai } from "@ai-sdk/openai";

const mcpClient = new MCPClient({
  id: "modulr-mcp-client",
  servers: {
    "modulr-mcp": {
      url: new URL(
        "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
      ),
    },
  },
});

const agent = new Agent({
  name: "Modulr Agent",
  model: openai("gpt-4o"),
  instructions: "You have access to Modulr tools.",
  tools: {
    ...(await mcpClient.listTools()),
  },
});

const result = await agent.generate(
  "List recent Modulr 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 Modulr Finance. 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 Modulr MCP in Mastra AI

You initialize the Modulr MCP Server client and register its tools directly inside your Mastra agent. The workflow engine then treats tools like `modulr_create_payment` as executable steps that can trigger sequentially or conditionally.
Yes, you can use the approval setting on your agent. This stops the agent from executing `modulr_create_payment` until an admin explicitly signs off on the transaction.
The workflow engine uses its built-in retry logic to handle transient network errors. If `modulr_get_transactions` times out, Mastra AI will back off and try again without crashing the entire agent session.
No, the managed MCP Server handles all HMAC-SHA256 signature generation. Your agent simply passes standard arguments to tools like `modulr_create_account` and the server handles the security handshake.
Your routing numbers, account balances, and customer IDs are isolated in Vinkius's zero-trust runtime. Mastra AI only receives the raw transaction data required to execute the active workflow step.

Start using the Modulr MCP today

We host it, we monitor it, we maintain it. You just paste one token.

Built & Managed by Vinkius 30s setup 7 tools

We've already built the connector for Modulr. Just plug in your AI agents and start using Vinkius.

No hosting. No infrastructure. No complex setup.
All 7 tools are live and waiting. You're up and running in seconds.

Claude Claude
ChatGPT ChatGPT
Cursor Cursor
Gemini Gemini
Windsurf Windsurf
VS Code VS Code
JetBrains JetBrains
Vercel Vercel
+ other MCP clients

Vinkius gives your AI agents access to the full catalog of app connectors, all fully managed, secure, and enterprise-ready. One subscription, every tool you need.

Zero hosting required Full MCP catalog included Enterprise-grade security Auto-updated by Vinkius

Built, hosted, and secured by Vinkius. You just connect and go.