How to Connect TikTok Data to Windsurf (MCP Setup, 2026)
Cascade can plan, write and edit across a whole project, which makes it a good place to build a content plan. The missing piece is data. With the FYPNow MCP server added, Cascade can look up what is working on TikTok in your niche, read the hooks of the top videos, and turn that into scripts or a calendar in your repo. You add one entry to its MCP config and point it at an API key.
Windsurf has been renamed Devin Desktop. The steps below work in both.
What you need
- Windsurf or Devin Desktop, installed.
- A FYPNow workspace on a paid plan. Creator and Starter include a 7-day free trial.
- An API key from FYPNow → Settings → API. It is shown once.
Step 1: Open the MCP config
Open the Cascade panel, then the MCP menu, and choose Open MCP config file. In current builds that file is ~/.config/devin/mcp_config.json (%AppData%/devin/mcp_config.json on Windows). Older Windsurf builds used ~/.codeium/windsurf/mcp_config.json. The menu always opens the right one.
Step 2: Add the server
Set an environment variable named FYPNOW_API_KEY to your key, then add:
{
"mcpServers": {
"fypnow": {
"serverUrl": "https://api.fypnow.com/mcp",
"headers": {
"Authorization": "Bearer ${env:FYPNOW_API_KEY}"
}
}
}
}
Cascade expands ${env:FYPNOW_API_KEY} when it connects, so the key never sits in the file. url also works in place of serverUrl. Cascade supports OAuth for remote servers too, but the key route is the one FYPNow documents.
Step 3: Check it
Restart the MCP server from the same menu and confirm fypnow is listed. Then ask Cascade:
What's trending across niches this week?
What you can ask it
Cascade decides which tool to call. Good first prompts:
- "Which Beauty videos from the last 7 days got the most views for their follower count? List the top 10 with their hooks."
- "Search analysed hooks that mention a mistake, and save the five best as templates in
content/hooks.md." - "Which hashtags are picking up new creators in Gaming this week?" Counted by distinct creators, so one account posting 40 times doesn't count.
- "Analyze this video and tell me how long the hook is and where the cuts are: https://www.tiktok.com/@someone/video/123" Needs a read+write key.
- "Build a 7-day posting plan in
plan.mdfrom the open trends in my niche."
Trim the tool list
A read key loads fewer FYPNow tools than a read+write key (the MCP server page has the current list). If you run several servers, list the FYPNow tools you don't need in a disabledTools array on the fypnow entry. The catalogue reads (get_trending_videos, get_trending_hashtags, search_hooks, get_trends) are the ones most people keep.
What the data is
FYPNow follows public TikTok videos in niches defined by keywords and hashtags. Niches refresh on a schedule, so the newest videos may be a few days old. Rankings use the multiple: views compared with the creator's follower count. It never sees private analytics for any account.
Niches cover YouTube Shorts too. The same keywords are searched on Shorts, and a Short is ranked the same way, with subscribers in place of followers. To see one platform, tell Cascade, for example "only YouTube Shorts in Gaming". The trending-videos tool takes a platform filter. Shorts show views, likes and comments but no shares or saves, because YouTube does not publish those. Tracking a creator works for TikTok accounts only for now.
Troubleshooting
fypnowdoesn't appear after saving. Restart the app. A JSON error stops the whole file loading, so check commas and brackets, and check you edited the file the MCP menu opens.401 missing_api_key. Theheadersblock is missing or misspelled, orFYPNOW_API_KEYwasn't set when the app started. It must beAuthorizationwithBearerand a space before the key.401 invalid_api_key. Check you pasted the whole key. FYPNow keys start withfyp_sk_.403 write_scope_required. A read key can't analyse new videos or search trends. Create a read+write key for those.- A key ended up in git. Revoke it in Settings → API straight away and create a new one. Revoking takes effect on the next request.
Limits
- It reads and analyses. It does not post for you.
- A key acts on one workspace.
- Results describe what has happened to other videos. They are not a forecast.
Other guides
Setting this up in another editor too? See Cursor and VS Code. The Claude setup guide has more prompts and a note on speed, and the MCP server page lists every tool.
Frequently asked questions
Where is the Windsurf MCP config file?
In current builds, now called Devin Desktop, it is ~/.config/devin/mcp_config.json, or %AppData%/devin/mcp_config.json on Windows. Older Windsurf builds used ~/.codeium/windsurf/mcp_config.json. The Open MCP config file option in the Cascade MCP menu always opens the right one.
Is Windsurf the same as Devin Desktop?
Yes. Windsurf was renamed Devin Desktop, and its docs moved to docs.devin.ai. Cascade and the MCP setup work the same way.
Is it free to connect FYPNow to Windsurf?
MCP access is included on every paid FYPNow plan with no add-on. Creator and Starter include a 7-day free trial, and the trial counts.
Can Cascade analyse a TikTok video I give it?
Yes, with a read+write key. Pass the video link and it returns the hook, scene cuts, transcript and a read on why it travelled. A fresh analysis takes about a minute.
Start free trial
See why any TikTok or YouTube Short went viral with a frame-by-frame AI breakdown.
Prefer to explore first? Start free trial