Plivo MCP Server for Mastra AIGive Mastra AI instant access to 11 tools to Get Account Info, Get Call Details, Get Message Details, and more
Mastra AI is a TypeScript-native agent framework built for modern web stacks. Connect Plivo through Vinkius and Mastra agents discover all tools automatically. type-safe, streaming-ready, and deployable anywhere Node.js runs.
Ask AI about this App Connector for Mastra AI
The Plivo app connector for Mastra AI is a standout in the Industry Titans category — giving your AI agent 11 tools to work with, ready to go from day one.
Vinkius delivers Streamable HTTP and SSE to any MCP client
import { Agent } from "@mastra/core/agent";
import { createMCPClient } from "@mastra/mcp";
import { openai } from "@ai-sdk/openai";
async function main() {
// Your Vinkius token. get it at cloud.vinkius.com
const mcpClient = await createMCPClient({
servers: {
"plivo-extended": {
url: "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
},
},
});
const tools = await mcpClient.getTools();
const agent = new Agent({
name: "Plivo Agent",
instructions:
"You help users interact with Plivo " +
"using 11 tools.",
model: openai("gpt-4o"),
tools,
});
const result = await agent.generate(
"What can I do with Plivo?"
);
console.log(result.text);
}
main();
* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
About Plivo MCP Server
Connect your Plivo communications account to any AI agent and take full control of your global telephony and messaging orchestration through natural conversation. Plivo provides a world-class platform for SMS and Voice services, and this integration allows you to send text messages, retrieve call logs, and manage rented phone numbers directly from your chat interface.
Mastra's agent abstraction provides a clean separation between LLM logic and Plivo tool infrastructure. Connect 11 tools through Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution. deployable to any Node.js host in one command.
What you can do
- SMS & Messaging Orchestration — Send and monitor SMS and MMS messages globally programmatically to ensure your customer engagement is always synchronized.
- Call Monitoring Intelligence — Query all recorded call logs and retrieve real-time metadata, including duration, cost, and status metrics directly from the AI interface.
- Number Management Control — List all rented phone numbers and manage their configurations via natural language to maintain a clear overview of your communication reach.
- XML Application Oversight — List and oversee your configured Plivo applications to understand your automated call and message handling logic using simple AI commands.
- Operational Monitoring — Retrieve account profile information, balance, and credits to ensure your communication pipeline is always optimized.
The Plivo MCP Server exposes 11 tools through the Vinkius. Connect it to Mastra AI in under two minutes — no API keys to rotate, no infrastructure to provision, no vendor lock-in. Your configuration, your data, your control.
All 11 Plivo tools available for Mastra AI
When Mastra AI connects to Plivo through Vinkius, your AI agent gets direct access to every tool listed below — spanning sms-api, voice-api, telephony-automation, and more. Every call is secured with network, filesystem, subprocess, and code evaluation entitlements inside a sandboxed runtime. Beyond a simple connection, you get a full AI Gateway with real-time visibility into agent activity, enterprise governance, and optimized token usage.
Retrieve current Plivo account details
Get details for a specific call
Get details for a specific message
Get details for a specific phone number
Get details for a specific recording
List all Plivo XML applications
List all call logs
List all message logs
List all rented phone numbers
List all call recordings
Requires a verified Plivo source number or Sender ID and the recipient number in E.164 format. Send a new SMS message
Connect Plivo to Mastra AI via MCP
Follow these steps to wire Plivo into Mastra AI. The entire setup takes under two minutes — your credentials stay safe behind the Vinkius.
Install dependencies
npm install @mastra/core @mastra/mcp @ai-sdk/openaiReplace the token
[YOUR_TOKEN_HERE] with your Vinkius tokenRun the agent
agent.ts and run with npx tsx agent.tsExplore tools
Why Use Mastra AI with the Plivo MCP Server
Mastra AI provides unique advantages when paired with Plivo through the Model Context Protocol.
Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add Plivo without touching business code
Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation
TypeScript-native: full type inference for every Plivo tool response with IDE autocomplete and compile-time checks
One-command deployment to any Node.js host. Vercel, Railway, Fly.io, or your own infrastructure
Plivo + Mastra AI Use Cases
Practical scenarios where Mastra AI combined with the Plivo MCP Server delivers measurable value.
Automated workflows: build multi-step agents that query Plivo, process results, and trigger downstream actions in a typed pipeline
SaaS integrations: embed Plivo as a first-class tool in your product's AI features with Mastra's clean agent API
Background jobs: schedule Mastra agents to query Plivo on a cron and store results in your database automatically
Multi-agent systems: create specialist agents that collaborate using Plivo tools alongside other MCP servers
Example Prompts for Plivo in Mastra AI
Ready-to-use prompts you can give your Mastra AI agent to start working with Plivo immediately.
"List my last 5 SMS messages on Plivo."
"Send an SMS notification to all customers in the delivery queue with their tracking numbers."
"Show me all phone numbers in my Plivo account with their capabilities and monthly costs."
Troubleshooting Plivo MCP Server with Mastra AI
Common issues when connecting Plivo to Mastra AI through the Vinkius, and how to resolve them.
createMCPClient not exported
npm install @mastra/mcpPlivo + Mastra AI FAQ
Common questions about integrating Plivo MCP Server with Mastra AI.
How does Mastra AI connect to MCP servers?
MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.