How to Use the Guru MCP in Mastra AI
Build resilient, multi-step knowledge workflows with Mastra AI and your Guru wiki.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Guru MCP to Mastra AI
Create your Vinkius account to connect Guru 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.
Resilient knowledge syncing
This MCP Server integration uses the `create_knowledge_card` tool to run documentation updates with automatic retries. Documentation processes fail when APIs blink. You can build pipelines that check your connection using `verify_api_connection` before attempting any heavy writes. If the check passes, the agent proceeds; if it fails, it alerts your team.
Automated wiki curation and cleanup
The `list_knowledge_cards` tool on this MCP Server lets you audit your boards to find and clean up stale documentation. Stale documentation is worse than no documentation. If a card is flagged as completely obsolete, the agent can trigger `delete_knowledge_card` automatically. For minor issues, it fires `update_knowledge_card` to refresh the content based on your latest product logs.
Multi-step taxonomy alignment via MCP Server
Use `list_knowledge_collections` to inspect your wiki hierarchy before importing new data. When importing new documentation, you need to put it in the right place. The agent evaluates where the new card fits best, creates it, and verifies the placement. You get clean, structured knowledge without having to manually organize folders.
Set up Guru 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 Guru 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: "guru-mcp-client",
servers: {
"guru-mcp": {
url: new URL(
"https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
),
},
},
});
const agent = new Agent({
name: "Guru Agent",
model: openai("gpt-4o"),
instructions: "You have access to Guru tools.",
tools: {
...(await mcpClient.listTools()),
},
});
const result = await agent.generate(
"List recent Guru 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 Guru. 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 Guru MCP in Mastra AI
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Guru MCP today
We host it, we monitor it, we maintain it. You just paste one token.