How to Use the MRPeasy MCP in Mastra AI
Automate complex manufacturing workflows. Connect MRPeasy to Mastra AI to handle inventory routing and purchase order failures gracefully.
Works with every AI agent you already use
…and any MCP-compatible client
Connect MRPeasy MCP to Mastra AI
Create your Vinkius account to connect MRPeasy 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 resilient MRPeasy MCP Server workflows.
Your agent runs `list_stock_items` through the `mrpeasy-mcp` server to check inventory before approving a new production run. If raw materials are short, it branches the workflow to handle procurement automatically. You dictate the exact failure paths. If the API times out during a `get_manufacturing_order` call, Mastra automatically retries with exponential backoff. The shop floor never sees the glitch.
Trigger purchase orders conditionally.
Managing suppliers requires your agent to use `list_vendors` to find approved suppliers and active lead times. It makes routing decisions based on what is already in transit via `list_purchase_orders`. You enforce human oversight on expensive decisions. Mastra's `requireToolApproval` feature pauses the workflow before creating or modifying critical financial records. A manager reviews the data, approves it, and the agent resumes the sequence.
Map workstations and invoices.
Floor routing relies on accurate capacity data pulled immediately via `list_work_stations`. The agent cross-references active machines against pending runs found in `list_customer_orders`. It identifies bottlenecks before they stop the assembly line. Financial reconciliation happens in the background. By calling `list_invoices`, the workflow matches completed shipments against billed accounts. It is a quiet, automated process that keeps the books aligned with physical reality.
Set up MRPeasy 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 MRPeasy 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: "mrpeasy-mcp-client",
servers: {
"mrpeasy-mcp": {
url: new URL(
"https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
),
},
},
});
const agent = new Agent({
name: "MRPeasy Agent",
model: openai("gpt-4o"),
instructions: "You have access to MRPeasy tools.",
tools: {
...(await mcpClient.listTools()),
},
});
const result = await agent.generate(
"List recent MRPeasy 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 MRPeasy. 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 MRPeasy MCP in Mastra AI
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the MRPeasy MCP today
We host it, we monitor it, we maintain it. You just paste one token.