How to Use the Beekeeper MCP in Mastra AI
Build failure-proof Beekeeper automations with Mastra AI. Onboard users, moderate content, and manage streams with conditional workflows.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Beekeeper MCP to Mastra AI
Create your Vinkius account to connect Beekeeper 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.
Automate Beekeeper Onboarding
This toolset lets you build a complete user onboarding workflow. When a new employee is added to your HR system, a Mastra agent can trigger a sequence: `search_users` to see if they exist, then `get_tenant_info` to check settings, and finally add them to the right groups. With Mastra's workflow engine, you can add conditional logic. For example, if the user is in the 'Engineering' department, add them to the 'dev-updates' stream using their group ID from `list_groups`. It's all automated.
Run Resilient Beekeeper Workflows with Mastra AI
Send critical announcements or messages without worrying about transient network issues. Use `create_post` or `send_message` inside a Mastra workflow, and it will automatically handle retries with exponential backoff if the initial attempt fails. You can build a workflow that attempts to post an urgent update to a stream. If it fails after three retries, the agent can then use `send_message` to notify an admin directly. This MCP server provides the actions; Mastra provides the guarantees.
Sync User Data Across Systems
Keep your internal database or CRM in sync with Beekeeper. A recurring Mastra job can `list_users` and compare the list against your own records, flagging discrepancies for review. You can also build reporting workflows. For instance, an agent could run `list_posts` on a specific stream daily, count the number of posts, and send a summary report to a manager using the `send_message` tool. It's a hands-off way to monitor activity.
Set up Beekeeper 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 Beekeeper 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: "beekeeper-mcp-client",
servers: {
"beekeeper-mcp": {
url: new URL(
"https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
),
},
},
});
const agent = new Agent({
name: "Beekeeper Agent",
model: openai("gpt-4o"),
instructions: "You have access to Beekeeper tools.",
tools: {
...(await mcpClient.listTools()),
},
});
const result = await agent.generate(
"List recent Beekeeper 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 Beekeeper. 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 Beekeeper MCP in Mastra AI
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Beekeeper MCP today
We host it, we monitor it, we maintain it. You just paste one token.