How to Use the Geekflare MCP in Mastra AI
Build bulletproof site monitoring workflows with Geekflare and Mastra AI. Automate audits, handle failures, and get notified.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Geekflare MCP to Mastra AI
Create your Vinkius account to connect Geekflare 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 Your CI/CD Pipeline
Mastra AI is built for creating dependable workflows. You can set up a pre-deployment check that uses Geekflare tools to gate your releases. For example: IF a `run_lighthouse_audit` performance score is below 80, THEN block the deploy AND create a Jira ticket. It goes beyond a simple pass/fail. Mastra's workflow engine can add automatic retries. If `measure_load_time` fails because of a network blip, Mastra can retry the check with exponential backoff before failing the entire build. This makes your pipeline much more resilient.
Resilient Security Monitoring
Set up an agent that runs checks on a schedule. It can use `scan_ssl_tls_cert` to check for expiring certificates. With Mastra's logic, you define the workflow: IF a cert expires in less than 14 days, THEN send a Slack alert; IF it expires in less than 3 days, THEN page the on-call engineer. Your agent can also chain tools together. First, `get_dns_records` to find all subdomains. Then, run `check_broken_links` on each one to make sure they're all live. If any step fails, Mastra's engine logs the specific error and moves on to the next item in the list.
Your Mastra AI MCP Server
Connecting Geekflare to Mastra AI is just a few lines of code. You pass the MCP server URL when creating your `MCPClient`. Mastra automatically discovers all 7 tools, like `get_whois_data`, and makes them available to your agents to use in workflows. For extra control, you can add a human-in-the-loop step with `requireToolApproval`. For instance, an agent could detect a DNS change with `get_dns_records` and then require a DevOps engineer to approve before it triggers a downstream cache-clearing process. This gives you automation with a manual override.
Set up Geekflare 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 Geekflare 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: "geekflare-mcp-client",
servers: {
"geekflare-mcp": {
url: new URL(
"https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
),
},
},
});
const agent = new Agent({
name: "Geekflare Agent",
model: openai("gpt-4o"),
instructions: "You have access to Geekflare tools.",
tools: {
...(await mcpClient.listTools()),
},
});
const result = await agent.generate(
"List recent Geekflare 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 Geekflare. 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 Geekflare MCP in Mastra AI
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Geekflare MCP today
We host it, we monitor it, we maintain it. You just paste one token.