TikTok Organic connector for Claude Code

Use Porter’s TikTok Organic connector for Claude Code to pull video views, retention and captions into your terminal, then turn them into files, scripts and scheduled reports in your own project.

  • Save TikTok video data as CSV in your repo
  • See where viewers drop off in each video
  • Run a weekly TikTok report from a script
  • Compare organic TikTok with your TikTok Ads
G2★★★★★Rated 4.6/5 from 288 G2 reviews (October 2026) · Used by 1,600+ marketing teams and agencies

By · Last updated November 26, 2026

Claude Codeporter connected
List last month’s videos by Video Views and save them to reports/tiktok-videos.csv
porter / TikTok Organic / Trailgear Demo✓ 4 rows
Saved reports/tiktok-videos.csv with 4 videos. The tent in 60 seconds video got the most views.
VideoDurationVideo Views
Tent in 60 seconds58s184,200
Packing list42s96,410
Trail POV31s71,880
Store tour74s12,350
Demo data, Trailgear Demo account
88 TikTok Organic fields
01Setup

How to connect TikTok Organic to Claude Code

Connecting TikTok Organic to Claude Code takes 3 steps and no API keys: connect your TikTok accounts in Porter with TikTok, add Porter’s MCP server to Claude Code with one command, then sign in from /mcp and ask. The same server also works in Cursor, VS Code and Codex, as Porter’s TikTok Organic MCP server page shows. Using the Claude app instead? See the TikTok Organic connector for Claude.

Before you start

  • You need Claude Code installed (Anthropic’s Claude Code overview), a free Porter account and a TikTok Business or personal account with Analytics turned on.
  • Works with any Claude model in Claude Code, from Opus to Sonnet and Haiku.
  1. Step 1: Connect TikTok Organic in Porter

    Sign up free at Porter, pick TikTok Organic as the source and sign in with TikTok. Tick every TikTok account you want Claude Code to read.

  2. Step 2: Add Porter to Claude Code

    In your terminal, run this command. It adds Porter for every project on your machine; drop --scope user to add it to the current project only.

    Terminal
    claude mcp add --transport http --scope user porter https://mcp.portermetrics.com/mcp

    Or, inside Claude Code, install Porter’s plugin, which adds the server and Porter’s skill together: /plugin marketplace add portermetrics/porter, then /plugin install porter-metrics@portermetrics.

  3. Step 3: Sign in and ask

    Start claude, type /mcp, pick porter and sign in with the Google account you use in Porter. When porter shows as connected, paste this prompt:

    Prompt
    Which TikTok accounts can you see? For my account, list videos published last month with Video Create Time, Video Duration and Video Views, and save them to reports/tiktok-videos.csv.

Guides and videos

app.portermetrics.com / create
Porter's Select accounts window for TikTok Insights with the Add account button
First, in Porter, open TikTok Insights and select Add account.
TikTok log-in options you see when you connect TikTok Insights to Porter
Then, log in to TikTok to authorize Porter.
$ claude mcp add --transport http --scope user porter https://mcp.portermetrics.com/mcp

$ claude mcp list
porter: https://mcp.portermetrics.com/mcp (HTTP)
Then, add Porter's MCP server from your terminal.
> /mcp
porter · needs authentication → Authenticate

> Which TikTok Organic accounts can you see?
● porter - list_accounts (MCP)
Trailgear Demo
After you sign in from /mcp, Claude Code lists your TikTok Organic accounts.
02Use cases and prompts

What you can do in Claude Code

Claude Code works inside your project, so TikTok Organic answers can become files, scripts and dashboards instead of chat replies. Each use case has a prompt to copy and uses the TikTok Organic fields Porter reads.

Can Claude Code export TikTok video stats?

The problemTikTok’s analytics screen shows one video at a time.

What Claude Code doesClaude Code pulls Video Create Time, Video Duration, Video Caption and Video Views for every video through Porter and writes them to a CSV.

What you getA full video history in your repo, ready for analysis.

Prompt
For my TikTok account, list videos published last month with Video Create Time, Video Duration, the first 80 characters of Video Caption and Video Views, and save them as data/tiktok-videos.csv.

Where do viewers stop watching my TikTok videos?

The problemViews alone don’t show which second loses people.

What Claude Code doesClaude Code pulls Video View Retention % by second for your top videos and marks the biggest drops.

What you getThe exact moments to cut or rework in your next video.

Prompt
Take my 5 most-viewed TikTok videos from last month. For each one, pull Video View Retention % by Video Seconds Timeline, mark the second with the biggest drop and save the results to reports/tiktok-retention.md.

Can I schedule a TikTok report with Claude Code?

The problemTikTok analytics shows one date range at a time, so the weekly content recap means switching ranges and taking notes.

What Claude Code doesclaude -p runs each Monday and compares videos published, Video Views and the top 3 videos with the week before.

What you getreports/tiktok-organic-weekly.md naming the videos that carried the week.

Prompt
claude -p "Compare last week with the week before for my TikTok account: videos published, Video Views and the top 3 videos. Write it to reports/tiktok-organic-weekly.md" --allowedTools "mcp__porter" "Write"
03Why Porter

Why Porter for TikTok Organic in Claude Code

Porter reads your TikTok account with no developer app, and puts organic TikTok next to TikTok Ads, Instagram and 30+ other sources behind the same server.

✓

One server for all your sources

The same porter server answers about TikTok, Meta Ads, Google Ads, GA4 and Shopify, so one script can pull every channel.

⊞

Changes only after you approve

Claude Code can make changes through Porter where the platform allows them, and each change waits for your yes.

⚙

No developer app

You connect TikTok in Porter and sign in with Google in Claude Code. There is no TikTok developer app or token to maintain.

↻

Hosted dashboards when a file isn’t enough

Ask for a Porter AI dashboard and it is published at its own link, synced automatically and ready to share with a client.

04Dashboard

Dashboard template

Porter’s ready-made dashboard puts followers, views, engagement and top videos in one view, and Claude can also rebuild it live from your account. Either start from Porter’s free TikTok dashboard template, or ask Claude for your own layout.

AI dashboards

Build a live TikTok Organic dashboard from your terminal

Describe the dashboard in one sentence and Porter builds it. A client-ready dashboard in minutes, with no chart dragging and no BI tool to learn. Ask Claude Code:

Prompt
Build a live TikTok Organic dashboard for my account with the last 30 days, the main KPIs and a weekly trend.
Live URLEach dashboard at its own link: no login, no app, no download
Auto-syncFresh TikTok Organic data, nobody re-exports each period
Scheduled deliveryEmail or PDF sends on a set day
White labelYour logo and branding for clients
Sharing permissionsView or edit access per person
TikTok Organic dashboard template by Porter
Template

The TikTok Organic AI dashboard template

Start from Porter’s official TikTok Organic dashboard template, or run the prompt above in Claude Code and Porter publishes the dashboard at its own link.

05Pricing

Pricing

You can start free, since Porter’s TikTok Organic connector for Claude comes with every plan. Use the calculator for your number of accounts, or see Porter pricing for every plan.

What you get

  • Free plan: never expires, with unlimited connected accounts and the last 15 days of data in Claude (30 days in Data Studio and Sheets)
  • Reporting: from $12.50 per account a month billed annually, or $15 month to month for one account
  • Billing: each TikTok account counts as one account, with volume discounts and no per-seat fee
  • Changes: 1 AI credit per completed change; failed tasks are free, and the Free plan includes 100 credits a month
  • Trial: 14 days of full access, no card

Price calculator

$33.33/mo$6.67 per account

An account is one ad account, Stripe account, store, page or GA4 property. The Free plan never expires and has unlimited accounts, with the last 15 days of data in AI chats.

06Data and actions

TikTok Organic data and actions in Claude Code

The TikTok Organic connector gives Claude 88 fields from both your profile and public posts. They cover followers, video views, reach, likes, comments, shares and favorites, as well as watch time, retention and demographics. The full TikTok Insights field reference also lists each label and ID.

12 TikTok Organic fields Claude uses most

FieldWhat it's for
Total Followersfollowers_countToday's follower count; a snapshot, never summed
Profile New Followers · Profile Lost Followers · Profile Net Followers Growthdaily_new_followers · daily_lost_followers · daily_total_followersFollower growth, asked by week
Profile Video Viewsprofile_video_viewsViews across all your videos
Profile Unique Video Viewsprofile_unique_video_viewsPeople who watched at least one video (reach)
Profile Viewsprofile_viewsVisits to your profile
Profile Likes · Profile Comments · Profile Shareslikes · comments · sharesAccount engagement by day or week
Video Views · Video Reachvideo_views · video_reachRanking videos
Video Likes · Video Comments · Video Shares · Video Favoritesvideo_likes · video_comments · video_shares · video_favoritesWhat viewers did with each video
Video Average Time Watched · Video Full Watched Ratevideo_average_time_watched · full_video_watched_rateAttention per video
Video Seconds Timeline · Video View Retention %video_specific_second · video_view_retention_percentageWhere viewers drop off
Video New Followers · Video Profile Viewsvideo_new_followers · video_profile_viewsWhich videos win followers
Followers Country % · Followers Gender % · Followers Age %audience_countries_percentage · audience_genders_percentage · audience_ages_percentageWho follows you

Can Claude post videos or reply to comments when you approve?

Yes, Claude publishes either a video or a photo carousel of 1–35 images, as a post or a draft. It also replies as you, hides or unhides any comment, deletes your own, likes comments and suggests hashtags.

How fresh is the data, and how far back?

Profile details and new posts appear in real time, while daily metrics, demographics and video metrics arrive 24–48 hours late (UTC). TikTok's API keeps 60 days of daily account metrics, but on paid plans Porter stores them daily from the day you start paying, so history builds past that.

Product stats

WhatTikTok Organic connector
Fields88 from your profile and public posts
ActionsPublish videos or photo carousels of 1–35 images as posts or drafts; reply to, hide, unhide and like comments; delete your own
FreshnessProfile details and new posts in real time; daily metrics, demographics and video metrics 24–48 hours late (UTC)
HistoryTikTok's API keeps 60 days of daily account metrics; on paid plans Porter stores them daily from the day you start paying, so history builds past that. 30 days on the Free plan, 15 in AI chats
Follower totalsTikTok's API gives today's count only; Porter keeps a value per day on paid plans, from the day you start paying
Video metricsLifetime totals; TikTok stops updating a video 365 days after it's published
Follower dataFollower changes and reach fill in weekly; demographics need 100+ followers
AccessTikTok sign-in with read, publishing and comment permissions; your own account's public posts only

See all 88 TikTok Organic fields

07Security

Is it safe if Claude posts?

Yes, nothing reaches your account until you confirm it: Claude shows every reply or post first, and Porter publishes only what you approve before posting. Porter's TikTok Organic connector for Claude Code uses TikTok's official API, on the accounts you sign in with.

How changes get approved before posting

Published posts and replies are permanent, so Claude asks before each one. After that, you can still delete your own comments or hide anyone's. Each completed change also uses one AI credit.

What the TikTok Organic connector needs

Porter needs a TikTok sign-in on its app, including read, publishing and comment permissions. If a permission is missing or a sign-in expires, you get a reconnect link. If you want to revoke access, remove Porter in the TikTok app: Settings and privacy › Security › Manage app permissions.

08FAQ

FAQ

Answers on setup, scope, scripts and credits, plus fixes for the most common Claude Code errors with TikTok Organic. Setup questions every source shares, like where Claude Code saves the server and how to share it with your team, are in the Claude Code hub FAQ.

Can I add Instagram Reels to the TikTok report?

Yes. Connect Instagram in Porter and ask for Post reach next to Video Views. Claude Code reads both through one server and writes one content report.

Is this the same as the TikTok Ads connector?

No. This connector reads organic videos and followers. Paid campaigns come from the TikTok Ads connector, and Claude Code can use both through the same server.

Do Claude Code questions use Porter credits?

Reading TikTok data uses no AI credits, so questions and reports on this page are free on every plan.

Troubleshooting

Why does /mcp show porter as needing authentication?

Claude Code adds the server before you sign in. Pick porter in /mcp, choose Authenticate and sign in with the Google account you use in Porter.

Why does my claude -p script stop and ask for permission?

Scripts can’t answer permission prompts. Pass the tools the script may use, for example --allowedTools "mcp__porter" "Write", so Claude Code can read Porter and save files without stopping.

Why does Claude Code see my account but return no data?

Usually Analytics is off for the account, or no videos were posted in the range. Turn on Analytics in TikTok, then ask with a wider range.

09Next

More Claude connectors

Porter also connects Claude to many other social sources, each with its own prompts, fields and limits. Either start with these or the Instagram connector for Claude, or see all Claude connectors. For ChatGPT and other AI clients, browse Porter's MCP servers for marketing data instead.

Not only Claude. Send TikTok Organic data anywhere

The same Porter account and connection also send TikTok Organic data to these destinations, at no extra cost.

Try the connector in Claude Code

Porter’s TikTok Organic connector for Claude Code takes one command, so your first video report can land in your project today.

Free plan · 14-day trial · No card needed

Social media managers: video views and retention come out of the terminal as files.

Content marketers: drop-off points shape your next video.

Agencies: one script builds the weekly report for every client account.