Bring Video Hosting
to Mastra AI
Create your Vinkius account to connect YouTube to Mastra AI and start using all 4 AI tools in minutes. Fully managed, enterprise secure, and ready to use without writing a single line of code. No hosting, no server setup — just connect and start using.
Compatible with every major AI agent and IDE
What is the YouTube MCP Server?
Connect your YouTube Data API account to any AI agent and harness the power of global video intelligence through natural conversation.
What you can do
- Universal Search — Find relevant video content by keyword or exact phrase, retrieving a list of metadata including titles and descriptions
- Deep Video Insights — Retrieve full technical metadata for specific videos, including view counts, like counts, and engagement statistics
- Channel Performance — Monitor any YouTube channel's branding and statistics, including total subscriber counts and video volume
- Sentiment Analysis — Fetch the most relevant comments from any video to analyze user feedback and community engagement
- Content Discovery — Quickly find unique video and channel IDs required for automated media monitoring workflows
- Trend Auditing — Browse and analyze video descriptions and statistics to identify content patterns and audience interests
- Metadata Retrieval — Get high-resolution thumbnails and precise upload timestamps for any piece of video content
How it works
- Subscribe to this server
- Enter your YouTube API Key (from Google Cloud Console)
- Start querying video data through Claude, Cursor, or any MCP-compatible client
No more manual searching through the YouTube interface to find an engagement metric. Your AI agent becomes your video data analyst.
Who is this for?
- Marketing Managers — monitor channel growth and audit video engagement metrics through simple chat commands
- Content Creators — analyze competitor performance and retrieve relevant user comments for sentiment feedback
- Data Scientists — collect video metadata and statistics for trend analysis without building custom scrapers
- Research Teams — quickly surface relevant video content and verify channel branding through conversation
Built-in capabilities (4)
Retrieves complete statistics and branding information for a YouTube channel
Retrieves full metadata, description, and statistics for a specific YouTube video
Returns the most recent/relevant comment threads. Fetches the top most relevant comments from a specific YouTube video
Returns a list of video metadata including titles and descriptions. Search for YouTube videos by keyword or exact phrase
Why Mastra AI?
Mastra's agent abstraction provides a clean separation between LLM logic and YouTube tool infrastructure. Connect 4 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 YouTube 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 YouTube 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
YouTube in Mastra AI
Why run YouTube with Vinkius?
The YouTube connection runs on our fully managed, secure cloud infrastructure. We handle the hosting, maintenance, and security so you don't have to deal with servers or code. All 4 tools are ready to work instantly without any complex setup.
You stay in complete control of your data. Your AI only accesses the information you approve, keeping your sensitive passwords and private details completely safe. Plus, with automatic optimizations, your AI works faster and more efficiently.

* Every connection is hosted and maintained by Vinkius. We handle the security, updates, and infrastructure so you don't have to write code or manage servers. See our infrastructure
Over 4,000 integrations ready for AI agents
Explore a vast library of pre-built integrations, optimized and ready to deploy.
Connect securely in under 30 seconds
Generate tokens to authenticate and link external services in a single step.
Complete visibility into every agent action
Audit live requests, latency, success rates, and active security compliance policies.
Optimize spending and track token ROI
Analyze real-time token consumption and cost metrics detailed by connection.




Explore our live AI Agents Analytics dashboard to see it all working
This dashboard is included when you connect YouTube using Vinkius. You will never be left in the dark about what your AI agents are doing with your tools.
YouTube and 4,000+ other AI tools. No hosting, no code, ready to use.
Professionals who connect YouTube to Mastra AI through Vinkius don't need to write code, manage servers, or worry about security. Everything is pre-configured, secure, and runs automatically in the background.
Raw MCP | Vinkius | |
|---|---|---|
| Ready-to-use MCPs | Find and configure each manually | 4,000+ MCPs ready to use |
| Connection Setup | Manual coding & server setup | 1-click instant connection |
| Server Hosting | You host it yourself (needs 24/7 uptime) | 100% hosted & managed by Vinkius |
| Security & Privacy | Stored in plaintext config files | Bank-grade encrypted vault |
| Activity Visibility | Blind execution (no logs or tracking) | Live dashboard with real-time logs |
| Cost Control | Runaway AI token spend risk | Automatic budget limits |
| Revoking Access | Must delete files or code to stop | 1-click disconnect button |
How Vinkius secures
YouTube for Mastra AI
Every request between Mastra AI and YouTube is protected by our secure gateway. We automatically keep your sensitive data private, prevent unauthorized access, and let you disconnect instantly at any time.
Frequently asked questions
Can I see how many likes and views a video has through the agent?
Yes. The get_video_details tool allows your AI agent to retrieve full real-time statistics for any YouTube video ID, including view counts, like counts, and the total number of comments.
How do I find out the subscriber count for a specific channel?
You can use the get_channel_details tool. Provide the unique channel ID, and your agent will return the channel's performance statistics, including subscriber counts, total views, and video counts.
Is it possible to read the comments on a video via chat?
Absolutely. Use the list_video_comments tool to retrieve the top most relevant or recent comment threads from any video ID, helping you perform rapid sentiment analysis through conversation.
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 →
Rollbar
10 toolsConnect your AI assistant to Rollbar to identify active bugs, review stack traces, trace code deployments, and manage error lifecycles without leaving the chat.

PubChem
3 toolsSearch 116M+ chemical compounds with molecular properties, SMILES notation, formulas, and drug-like properties from the world's largest free chemistry database.

U.S. Census Population — Demographics, Age & Diversity
5 toolsAccess demographic data from the American Community Survey (ACS). Get total population, median age, and detailed racial/ethnic breakdowns (White, Black, Asian, Hispanic, Foreign-born) for any U.S. state, county, or city.

ncScale
10 toolsMonitor and observe your no-code stack via ncScale — track logs, alerts, and tickets directly from your AI agent.
