How to Use the Cloud BOT MCP in Mastra AI
Build resilient, self-healing browser automation workflows using the Mastra AI agent engine and Cloud BOT.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Cloud BOT MCP to Mastra AI
Create your Vinkius account to connect Cloud BOT 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.
Build self-healing browser runs with this MCP Server
This MCP Server embeds scriptless browser automation into your TypeScript workflow pipelines. Your Mastra AI agents use `execute_bot` to scrape sites, relying on Mastra's built-in retry engine to handle network hiccups or temporary site blocks. If a run fails after multiple attempts, the workflow triggers conditional logic based on the failure code. The agent automatically switches to a backup bot or alerts an admin, preventing silent failures in your data pipelines.
Track automation jobs across Mastra AI steps
This MCP Server lets you monitor asynchronous browser tasks within complex multi-step agents. Your Mastra AI worker polls the status of active runs using `get_job_status` before proceeding to downstream processing steps. If a job gets stuck in an infinite loop on a broken website, your agent invokes `cancel_job` to free up resources. The workflow then logs the error and moves to the next item in the execution queue.
Process scraped files inside Mastra AI pipelines
This MCP Server exposes remote file outputs directly to your workflow steps. Your Mastra AI agent inspects downloaded assets using `list_cloudbot_files` to verify the scraper actually captured the target documents. The agent feeds these verified file paths into your data ingestion tools for parsing. This ensures your database only receives clean, complete data from successful browser runs.
Set up Cloud BOT 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 Cloud BOT 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: "cloud-bot-mcp-client",
servers: {
"cloud-bot-mcp": {
url: new URL(
"https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
),
},
},
});
const agent = new Agent({
name: "Cloud BOT Agent",
model: openai("gpt-4o"),
instructions: "You have access to Cloud BOT tools.",
tools: {
...(await mcpClient.listTools()),
},
});
const result = await agent.generate(
"List recent Cloud BOT 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 Cloud BOT. 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 Cloud BOT MCP in Mastra AI
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Cloud BOT MCP today
We host it, we monitor it, we maintain it. You just paste one token.