How to Use the Linode (Akamai) MCP in Mastra AI
Build resilient infrastructure workflows for Mastra AI by automating Linode instance lifecycle management.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Linode (Akamai) MCP to Mastra AI
Create your Vinkius account to connect Linode (Akamai) 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.
Workflow-Driven Infrastructure Scaling
Integrate `create_linode` and `delete_linode` into your Mastra AI agents to handle auto-scaling based on your specific business logic. Your agents execute the provisioning sequence only when defined conditions are met. You gain control over the full lifecycle, including verification steps. If a deployment fails, the workflow engine catches the error and can trigger a retry or notify an administrator.
Kubernetes Orchestration Logic
Use `create_lke_cluster` within a Mastra AI workflow to spin up isolated environments on demand. Your agents can verify cluster readiness by calling `get_lke_cluster` before proceeding to application deployment. This approach removes manual intervention from cluster setup. You encode your architectural standards directly into the agent's logic, ensuring every cluster is created with the same parameters.
Automated Audit and Compliance
Schedule your Mastra AI agents to run `list_users` and `list_linodes` as part of a recurring security workflow. You catch unauthorized instances or permission changes before they become actual vulnerabilities. It works by logging the output of these tools into your monitoring system. You maintain a clear audit trail of your infrastructure state, independent of the standard cloud provider alerts.
Set up Linode (Akamai) 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 Linode (Akamai) 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: "linode-akamai-mcp-client",
servers: {
"linode-akamai-mcp": {
url: new URL(
"https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
),
},
},
});
const agent = new Agent({
name: "Linode (Akamai) Agent",
model: openai("gpt-4o"),
instructions: "You have access to Linode (Akamai) tools.",
tools: {
...(await mcpClient.listTools()),
},
});
const result = await agent.generate(
"List recent Linode (Akamai) 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 Linode (Akamai). 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 Linode (Akamai) MCP in Mastra AI
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Linode (Akamai) MCP today
We host it, we monitor it, we maintain it. You just paste one token.