How to Use the Cronofy MCP in Mastra AI
Deploy Cronofy through Mastra AI to build resilient, multi-step scheduling workflows with automatic retries.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Cronofy MCP to Mastra AI
Create your Vinkius account to connect Cronofy 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.
Construct Resilient Booking Pipelines
Mastra AI agents use `create_scheduling_request` to dispatch native booking links inside complex conditional branches. If the target API times out, the framework's exponential backoff kicks in automatically to retry the request without crashing your MCP workflow. You chain this together with `get_free_busy` to verify open slots before sending the invite. The agent evaluates the returned JSON, decides if the timing works, and either proceeds with the booking or routes the process to a human-in-the-loop approval step.
Cronofy MCP Server Provider Sync
Loading `list_profiles` into your Mastra agent exposes the exact directory structure of connected accounts across Exchange, iCloud, and Google. The model queries this unified layer instead of fighting with three different authentication schemes. When a new employee joins, the workflow triggers `get_account` to verify their calendar connection status. It checks the sub-provider lists and logs the result, ensuring your automated systems always have the right access permissions before attempting to schedule meetings.
Automate Cross-Platform Management
Dropping `create_event` into a Mastra step lets the AI provision calendar blocks across multiple organizations simultaneously. It formats the JSON payload exactly as the endpoint demands, bypassing the usual data mapping headaches. Mistakes happen, so your workflow can catch errors and trigger `delete_event` to roll back the operation. The entire sequence deploys to your cloud provider with a single command, turning raw API calls into a highly available production service.
Set up Cronofy 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 Cronofy 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: "cronofy-mcp-client",
servers: {
"cronofy-mcp": {
url: new URL(
"https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
),
},
},
});
const agent = new Agent({
name: "Cronofy Agent",
model: openai("gpt-4o"),
instructions: "You have access to Cronofy tools.",
tools: {
...(await mcpClient.listTools()),
},
});
const result = await agent.generate(
"List recent Cronofy 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 Cronofy. 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 Cronofy MCP in Mastra AI
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Cronofy MCP today
We host it, we monitor it, we maintain it. You just paste one token.