How to Use the Junip MCP in Mastra AI
Build reliable background workflows for Junip reviews and campaigns with Mastra AI agents using our dedicated MCP Server.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Junip MCP to Mastra AI
Create your Vinkius account to connect Junip 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.
Automatic review moderation with Mastra AI
Customer feedback can be messy. Use Mastra AI to build an autonomous agent that monitors incoming reviews. The agent calls `list_reviews` on a schedule, looking for low-star ratings or specific complaints. If a bad review pops up, Mastra's workflow engine triggers a branch. Fetching the customer's purchase history using `get_product` helps the agent see what they bought. It then drafts a custom apology draft, ready for your support team to approve.
Answer customer questions on autopilot
Unanswered questions kill conversion rates. Setting up this MCP Server with Mastra AI builds a loop that catches new inquiries. The agent checks `list_questions` to find questions without replies. Once found, the agent uses `get_question` to inspect the text. Searching your store data, it calls `list_answers` to see how you answered similar questions and writes a helpful reply. If it's unsure, Mastra's human-in-the-loop feature pauses the run for your review.
Sync review campaigns with store performance
Don't send review requests to customers who had shipping delays. Mastra AI lets you build a workflow that coordinates your review emails with actual delivery dates. The agent calls `list_campaigns` to verify which request sequences are active. The agent checks `get_account` to confirm your store's sending limits. If a delivery issue occurs, the workflow automatically pauses the campaign for that specific customer, protecting your brand reputation.
Set up Junip 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 Junip 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: "junip-mcp-client",
servers: {
"junip-mcp": {
url: new URL(
"https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
),
},
},
});
const agent = new Agent({
name: "Junip Agent",
model: openai("gpt-4o"),
instructions: "You have access to Junip tools.",
tools: {
...(await mcpClient.listTools()),
},
});
const result = await agent.generate(
"List recent Junip 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 Junip. 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 Junip MCP in Mastra AI
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Junip MCP today
We host it, we monitor it, we maintain it. You just paste one token.