Bring Video Search
to Mastra AI
Learn how to connect Twelve Labs (Video Understanding) to Mastra AI and start using 18 AI agent tools in minutes. Fully managed, enterprise secure, and ready to use without writing a single line of code.
Compatible with every major AI agent and IDE
What is the Twelve Labs (Video Understanding) MCP Server?
Connect Twelve Labs to your AI agent to unlock the full potential of video understanding. This server allows your agent to index video files, perform complex semantic searches, and generate deep analytical insights from visual and audio data.
What you can do
- Video Indexing — Create and manage indexes to organize your video library for rapid retrieval and analysis.
- Semantic Search — Query your video content using natural language to find specific moments, objects, or actions without manual tagging.
- Asset Management — Upload videos via URLs or multipart sessions and monitor their indexing status in real-time.
- Deep Analysis — Run synchronous or asynchronous analysis tasks to extract structured data from your video assets.
- Embeddings & Entities — Generate multimodal embeddings and manage entity collections for advanced machine learning workflows.
How it works
- Subscribe to this server
- Enter your Twelve Labs API Key
- Start querying your video data from Claude, Cursor, or any MCP-compatible client
Transform your video archives into searchable, actionable data. Your AI can now 'watch' and understand hours of footage in seconds.
Who is this for?
- Content Creators & Media Teams — quickly find b-roll or specific scenes across massive video libraries.
- Security & Operations — search through hours of footage for specific events or objects using natural language.
- Developers — integrate state-of-the-art video understanding into your AI workflows without building complex pipelines.
Built-in capabilities (18)
Analyze and segment videos asynchronously
Analyze and segment videos synchronously
Confirm a multipart upload
Upload content to create an asset
g., a person) within a collection. Create an entity
Create an entity collection
Create a new index
Create a multipart upload session
Delete an index
Create embeddings asynchronously
Create embeddings synchronously
Retrieve an index by ID
Retrieve an indexed asset
Index an uploaded asset
List all indexes
Report progress for a multipart upload
Search for moments in videos
Update an index name
Why Mastra AI?
Mastra's agent abstraction provides a clean separation between LLM logic and Twelve Labs (Video Understanding) tool infrastructure. Connect 18 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 Twelve Labs (Video Understanding) 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 Twelve Labs (Video Understanding) 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
Twelve Labs (Video Understanding) in Mastra AI
Twelve Labs (Video Understanding) and 4,000+ other MCP servers. One platform. One governance layer.
Teams that connect Twelve Labs (Video Understanding) 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 | 4,000+ 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 Twelve Labs (Video Understanding) in Mastra AI
The Twelve Labs (Video Understanding) 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 18 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
Twelve Labs (Video Understanding) for Mastra AI
Every tool call from Mastra AI to the Twelve Labs (Video Understanding) 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 list all my existing video indexes?
You can use the list_indexes tool. It will return a list of all indexes available in your Twelve Labs account, including their IDs and configuration.
Can I search for a specific moment inside my videos using text?
Yes! Use the search tool by providing an index_id and a search query. The AI will find the most relevant timestamps and video segments based on your description.
How do I add a new video to an index for analysis?
First, use create_asset with a public URL to upload the video. Then, use the index_asset tool with the resulting asset_id and your target index_id to start the processing.
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
Explore More MCP Servers
View all →
PrestaShop
10 toolsBring your PrestaShop store to your AI — orchestrate orders, extract deep product metadata, and track inventory stock levels natively via chat.

LexisNexis
7 toolsManage your corporate intelligence — audit news, company data, and legal cases via AI.

Intrinio
10 toolsAccess real-time and historical financial market data via Intrinio API.

Bill.com
10 toolsEquip your AI agent with direct access to BILL — manage invoices, approve payments, and track vendor bills without opening the AP dashboard.
