How to Use the Endear Retail CRM MCP in Mastra AI
Automate retail workflows in Mastra AI by connecting your Endear Retail CRM, enabling conditional logic for customer outreach.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Endear Retail CRM MCP to Mastra AI
Create your Vinkius account to connect Endear Retail CRM 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.
Conditional CRM workflows in Mastra AI
Build agent steps that react to retail data. If a customer has not purchased in 90 days, trigger an outreach workflow using `list_retail_customers` to identify the target. Add logic to verify account status with `get_endear_account_metadata` before running bulk operations. This prevents errors by checking your environment settings first.
Automated task retries with Mastra AI
Handle failed interactions by configuring your agent to retry `list_clienteling_tasks` when the API encounters a temporary issue. Define clear failure paths for your retail operations. If a note update fails, the workflow uses exponential backoff to ensure the record eventually syncs.
Secure multi-step CRM integration
Require human approval for sensitive actions by using the framework's built-in hooks. You can verify `list_customer_clienteling_notes` before the agent sends a follow-up message. Deploy your agent to the cloud with one command. Your CRM logic stays intact and handles complex retail scenarios without manual intervention.
Set up Endear Retail CRM 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 Endear Retail CRM 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: "endear-retail-crm-mcp-client",
servers: {
"endear-retail-crm-mcp": {
url: new URL(
"https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
),
},
},
});
const agent = new Agent({
name: "Endear Retail CRM Agent",
model: openai("gpt-4o"),
instructions: "You have access to Endear Retail CRM tools.",
tools: {
...(await mcpClient.listTools()),
},
});
const result = await agent.generate(
"List recent Endear Retail CRM 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 Endear Retail CRM. 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 Endear Retail CRM MCP in Mastra AI
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Endear Retail CRM MCP today
We host it, we monitor it, we maintain it. You just paste one token.