Bring Generative Ai
to Mastra AI
Learn how to connect GAN.ai to Mastra AI and start using 12 AI agent tools in minutes. Fully managed, enterprise secure, and ready to use without writing a single line of code.
What is the GAN.ai MCP Server?
Connect your GAN.ai account to any AI agent to automate your personalized video marketing and sales outreach through the Model Context Protocol (MCP). GAN.ai is a leading generative AI platform that enables brands to create thousands of unique videos with custom names, locations, and details. This MCP server enables you to trigger video generation, monitor real-time processing status, and retrieve landing page links directly through natural conversation.
Key Features
- Personalized Video Generation — Trigger bulk video generation based on project templates and dynamic tags (e.g., first name, company).
- Real-time Status Monitoring — Track the asynchronous processing of your video requests and retrieve final MP4 and landing page URLs.
- Project Oversight — List all video templates/projects and fetch detailed variable definitions for personalization.
- Campaign Discovery — Access your history of generated videos and monitor their status (pending, processing, completed).
- Landing Page Integration — Retrieve branded landing page permalinks for each generated video to fuel your outreach sequences.
- Engagement Analytics — Fetch view counts and engagement metrics for specific videos to measure campaign success.
- Webhook Visibility — List configured webhooks to ensure your systems are receiving real-time generation notifications.
- Real-time Synchronization — Keep your generative video strategy accessible to your AI assistant without leaving your primary workspace.
How it works
1. Subscribe to this server through the Vinkius Marketplace
2. Enter your GAN Workspace ID and API Token (found in your Settings)
3. Start managing your personalized video generation from Claude, Cursor, or any MCP client
Who is this for?
- Growth Marketers — quickly trigger personalized video campaigns for new leads without manual dashboard uploads.
- Sales Development Reps (SDRs) — get a real-time status of custom videos for prospects via simple AI commands.
- Content Operations — automate the retrieval of video metadata and analytics for reporting.
Built-in capabilities (12)
Generate videos in bulk
Generate one video
Check video status
Get template schema
Get video details
Get engagement stats
ai workspace. Get workspace details
List active webhooks
List video history
List landing pages
List video templates
ai API connectivity. Verify API access
Why Mastra AI?
Mastra's agent abstraction provides a clean separation between LLM logic and GAN.ai tool infrastructure. Connect 12 tools through Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution. deployable to any Node.js host in one command.
- —
Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add GAN.ai without touching business code
- —
Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation
- —
TypeScript-native: full type inference for every GAN.ai tool response with IDE autocomplete and compile-time checks
- —
One-command deployment to any Node.js host. Vercel, Railway, Fly.io, or your own infrastructure
GAN.ai in Mastra AI
GAN.ai and 3,400+ other MCP servers. One platform. One governance layer.
Teams that connect GAN.ai to Mastra AI through Vinkius don't need to source, host, or maintain individual MCP servers. Every tool call runs inside a hardened runtime with credential isolation, DLP, and a signed audit chain.
Raw MCP | Vinkius | |
|---|---|---|
| Server catalog | Find and host yourself | 3,400+ managed |
| Infrastructure | Self-hosted | Sandboxed V8 isolates |
| Credential handling | Plaintext in config | Vault + runtime injection |
| Data loss prevention | None | Configurable DLP policies |
| Kill switch | None | Global instant shutdown |
| Financial circuit breakers | None | Per-server limits + alerts |
| Audit trail | None | Ed25519 signed logs |
| SIEM log streaming | None | Splunk, Datadog, Webhook |
| Honeytokens | None | Canary alerts on leak |
| Custom domains | Not applicable | DNS challenge verified |
| GDPR compliance | Manual effort | Automated purge + export |
Why teams choose Vinkius for GAN.ai in Mastra AI
The GAN.ai MCP Server runs on Vinkius-managed infrastructure inside AWS — a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts. All 12 tools execute in hardened sandboxes optimized for native MCP execution.
Your AI agents in Mastra AI only access the data you authorize, with DLP that blocks sensitive information from ever reaching the model, kill switch for instant shutdown, and up to 60% token savings. Enterprise-grade infrastructure, zero maintenance.

* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
How Vinkius secures
GAN.ai for Mastra AI
Every tool call from Mastra AI to the GAN.ai MCP Server is protected by DLP redaction, cryptographic audit chains, V8 sandbox isolation, kill switch, and financial circuit breakers.
Frequently asked questions
How do I find my Workspace ID and API Token?
Log in to GAN.ai, go to Settings, and navigate to the API section to find your Workspace ID and generate a Bearer Token.
What is an 'Inference ID'?
An Inference ID is a unique tracking number returned when you trigger a video generation. You use it with the 'get_generation_status' tool to check if the video is ready.
Are personalized landing pages included in the API response?
Yes! Once a video is completed, the agent retrieves the 'permalink', which is a non-expiring link to the personalized landing page hosting the video.
Can I monitor video view analytics via the agent?
Yes, the 'get_video_stats' tool allows you to retrieve real-time engagement data, such as view counts and playback metrics, for any generated video.
How does Mastra AI connect to MCP servers?
Create an MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.
Can Mastra agents use tools from multiple servers?
Yes. Pass multiple MCP clients to the agent constructor. Mastra merges all tool schemas and the agent can call any tool from any server.
Does Mastra support workflow orchestration?
Yes. Mastra has a built-in workflow engine that lets you chain MCP tool calls with branching logic, error handling, and parallel execution.
createMCPClient not exported
Install: npm install @mastra/mcp
