Zernio for Claude Code
Add the server
Registers Zernio over HTTP. Nothing to install.
Run YouTube from Claude Code
Read analytics, reply to comments, run Google Ads campaigns, send conversions to the Google Ads conversion API and publish posts on YouTube, from Claude Code. Claude Code runs in your terminal, so a long platform job can end as a CSV, a markdown report or a script committed to the repo.
- Analytics
- Inbox
- Google Ads
- Conversions
- Publishing
A YouTube report built by a script with Claude Code
Claude Code is a terminal agent. Give it a job that takes many steps, like a week of conversations to sort or every campaign to audit, and it works through Zernio's tools until the job is done, then writes the result to a file you can diff, share or rerun.
- 01
Ask Claude Code: "pull 90 days of YouTube analytics into data/YouTube.csv and tell me what to do more of".
- 02
It reads the numbers through Zernio's analytics tools, one page at a time, and writes every post as a row.
- 03
It adds a summary to reports/social.md, and you can save the prompt so claude -p reruns it next month.
Clear a backlog of YouTube comments in one sitting
- 01
Ask Claude Code: "go through every open YouTube conversation, answer the ones docs/faq.md covers and list the rest in notes/escalate.md".
- 02
It pages through the open threads with Zernio's inbox tools and, for a big backlog, hands batches to subagents so the work runs in parallel.
- 03
It stops with the drafted replies. You approve them in the terminal and only those go out.
- 04
The leftovers land in notes/escalate.md with links, ready for a person to pick up.
How people run YouTube from Claude Code
Weekly ads audit
Claude Code reads every active Google Ads campaign, writes spend and cost per result to a CSV, and proposes pauses in a markdown file. Nothing changes until you mark the ones to apply.
Feedback export
Claude Code exports a month of YouTube comments to a CSV with a topic per row, so product and support can sort what people asked for without opening the app.
Scheduled report
A script runs claude -p each Monday. It pulls YouTube analytics through Zernio, rewrites reports/social.md with the week's numbers, and the change shows up in git as a diff.
Claude Code and YouTube in 4 steps
Claude Code reaches YouTube through the Zernio MCP server. No Zernio server to host and no YouTube developer app of your own.
01
Connect YouTube
Sign up free and connect a YouTube channel you own, on a personal Google account or a Brand Account in Zernio.
Connect YouTube02
Add the server
One command registers Zernio over HTTP.
03
Sign in
Run /mcp, pick zernio and approve in the browser window that opens. No API key to paste.
04
Check it works
Run claude /mcp again and confirm zernio is listed as connected.
Good to know in Claude Code
- Claude Code asks before each Zernio tool call. Allow the zernio tools in .claude/settings.json once you trust them, so long jobs do not stop for every call.
- Hooks can run your own command before or after a Zernio tool call, for example to log every reply sent or block a pause outside work hours.
- claude -p runs a prompt without the interactive session, so a cron job or CI step can rebuild a report on a schedule.
What Claude Code can do on YouTube
Claude Code runs in your terminal, so a long platform job can end as a CSV, a markdown report or a script committed to the repo.
Analytics
Claude Code pulls YouTube analytics into CSV files and markdown reports that a cron job can rebuild with claude -p.
Per-video views, likes and comments, plus daily views and watch time, channel insights, audience demographics and retention curves (daily and demographic data run 2 to 3 days behind).
Inbox
Claude Code pages through YouTube comments in bulk, drafts replies from files in the repo and writes what it skipped to a list.
List, reply to and delete comments on videos, and approve, reject or hold comments for review with an optional author ban.
Ads
Claude Code audits every Google Ads campaign in one run and writes spend and cost per result to a CSV before changing anything.
Campaigns and boosted posts on Google Ads, from a separately connected ad account.
Google Ads with ZernioConversions
Claude Code sends test events to the Google Ads conversion API and saves each request and response to a log file you can check later.
Google Ads conversions: events sent server-side to an enabled conversion action, which YouTube campaigns optimize toward.
Conversions API docsPublishing
Claude Code turns a changelog or release notes into queued YouTube posts, last, after the inbox and ads work is done.
- Videos: one video per post, with title, description, tags, visibility, category and an optional custom thumbnail
- Shorts: detected by YouTube from the video itself (3 minutes or shorter, vertical or square), with no flag to set
Ask in plain words. Claude Code picks the tools.
Written for how Claude Code works. Copy one, change the details.
Long jobs from the terminal, in Claude Code
YouTube rules the agent runs into
Set by YouTube's API or by Zernio, whichever agent you use. Checked against the Zernio YouTube docs on December 4, 2026.
- Unverified channels are limited to 15-minute videos, and YouTube applies custom thumbnails only on phone-verified channels.
- YouTube caps API use at 10,000 quota units a day per project; liking a video and creating a playlist cost 50 units each, and a first caption read costs 200.
Connecting Claude Code is free. Its calls bill like the API requests behind them.
Each YouTube account counts as one connected account. The first 2 connected accounts are free, then $6 per account a month, falling to $1 as you add more.
Frequently Asked Questions
Connect a YouTube channel you own, on a personal Google account or a Brand Account in Zernio first. Then, in Claude Code: add the server and sign in. Run claude /mcp again and confirm zernio is listed as connected.
Not by default. It asks before each tool call until you allow the Zernio tools for the session or in .claude/settings.json, so replies, ad changes and posts wait for your yes.
Yes. claude -p runs a prompt without the interactive session, so cron or a CI job can call it. Allow the Zernio tools it needs in the project settings first, or it will stop to ask.
Yes. Claude Code can hand parts of a job, like batches of conversations or one campaign each, to subagents that run with their own context and report back to the main session.
Wherever you ask: a CSV in data/, a markdown report, a JSON log. They are plain files in your repo, so you can diff them, commit them or pass them to another script.
Yes. Save the prompt as a project slash command in .claude/commands and commit it. Everyone who has added the Zernio server runs the same steps with their own sign-in.
No. YouTube's Analytics API does not expose impressions or impressions click-through rate. You get views, likes, comments, watch time, subscriber changes, demographics and retention.
Give Claude Code your YouTube account
Connect a YouTube channel you own, on a personal Google account or a Brand Account, add Zernio to Claude Code, and ask.
- Analytics
- Inbox
- Google Ads
- Conversions
- Publishing