How to Use the Indy MCP in Mastra AI
Build self-healing freelance workflows that automate client onboarding and form routing using Mastra AI and the Indy MCP Server.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Indy MCP to Mastra AI
Create your Vinkius account to connect Indy 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.
Automate Onboarding Workflows with Mastra AI
The `create_form` and `create_webhook` tools form the foundation of your automated onboarding pipelines. With Mastra AI, you can build a multi-step workflow that spins up a new client intake form and instantly registers a webhook to listen for responses. If the webhook registration fails, Mastra's workflow engine triggers an automatic retry with exponential backoff. It's built to handle network hiccups, so you won't miss a lead, making your Indy MCP Server integration incredibly reliable.
Conditional Lead Routing and Record Checks
The `list_records` and `get_record` tools allow your agents to evaluate incoming lead data against custom business rules. You can set up conditional branches in Mastra AI to parse form submissions. If a submission indicates a high-budget project, the workflow automatically routes it to a priority queue. The agent uses `get_user` to match the submission with existing team members. If no match is found, it falls back to a general notifications step, ensuring no prospective client gets lost in the cracks.
Self-Healing Webhook Management
The `list_webhooks` and `delete_webhook` tools keep your active notification endpoints tidy and error-free. Mastra AI monitors your active endpoints and automatically prunes broken or redundant webhooks without human intervention. When an onboarding campaign ends, the Mastra agent triggers `delete_form` and cleans up the associated webhooks. This keeps your Indy workspace organized, preventing stale endpoints from cluttering your freelance dashboard.
Set up Indy 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 Indy 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: "indy-mcp-client",
servers: {
"indy-mcp": {
url: new URL(
"https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
),
},
},
});
const agent = new Agent({
name: "Indy Agent",
model: openai("gpt-4o"),
instructions: "You have access to Indy tools.",
tools: {
...(await mcpClient.listTools()),
},
});
const result = await agent.generate(
"List recent Indy 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 Indy. 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 Indy MCP in Mastra AI
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Indy MCP today
We host it, we monitor it, we maintain it. You just paste one token.