How to Connect TikTok Data to VS Code (MCP Setup, 2026)
Most people who write TikTok scripts in VS Code still research in a browser tab, then paste numbers into Copilot Chat and lose half the context. Connecting the FYPNow MCP server lets Copilot's agent fetch the data itself: this week's top videos in a niche, the hooks that opened them, the hashtags more creators are picking up. You keep writing in the editor, and the research arrives where the drafts are.
What you need
- VS Code with GitHub Copilot agent mode, or another MCP-aware extension.
- 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: Store the key in an environment variable
Set FYPNOW_API_KEY in your system environment with the key as the value, then restart VS Code.
Step 2: Add the server
Create .vscode/mcp.json in your project:
{
"servers": {
"fypnow": {
"type": "http",
"url": "https://api.fypnow.com/mcp",
"headers": {
"Authorization": "Bearer ${env:FYPNOW_API_KEY}"
}
}
}
}
Note the top-level key is servers, not mcpServers.
You can also run MCP: Add Server from the Command Palette, choose HTTP, and paste the URL.
Step 3: Check it
The server should show as running. If it stays Pending, check the URL is reachable, then open the Output panel and choose MCP for the reason.
Then ask Copilot:
What's trending across niches this week?
What you can ask it
Switch Copilot Chat to agent mode, then try:
- "Use fypnow: what are the top videos in the Personal Finance niche this week, and what hooks open them?" Ranked by views compared with follower count, with the hook for each.
- "Find analysed hooks of the question type and put five of them in a table in
research.md." - "What open trends are there in Food right now? Show the example videos and the hashtag they share." Trends come with a daily series and example video links.
- "Is #booktok growing? Give me its daily video count and median multiple." One hashtag, with a daily series and its top videos.
- "Write a 30-second script in the format of the best-performing Fitness video this week."
Copilot asks before it runs a tool the first time. Approve it for the session so it doesn't ask on every call.
What the data is
The answers come from FYPNow's catalogue of public TikTok videos, grouped into niches that refresh on a schedule. A video's multiple is its views divided by its creator's follower count, which is how a 2,000-follower account with 400,000 views ranks above a celebrity post. It does not include private analytics for any account, yours included.
Troubleshooting
- The server stays Pending or shows an error. Open the Output panel, choose MCP, and read the last lines. A missing
"type": "http"or a trailing comma in the JSON are the usual causes. 401 missing_api_key. VS Code did not seeFYPNOW_API_KEY. Set it, then quit VS Code fully. Reloading the window is not enough.401 invalid_api_keyorrevoked_api_key. Create a new key in Settings → API. Keys start withfyp_sk_and are shown once.403 write_scope_required. A read key tried a write tool, such as analysing a new video or searching trends. Use a read+write key for those.- No tools in the tools list. Check you are in agent mode, not ask mode, and that the server is enabled in the tools picker.
Limits
- It reads and analyses. It does not post for you.
- A key acts on one workspace, against that workspace's plan limits.
- Results describe what has happened to other videos. They are not a forecast.
Other guides
The same server works in Cursor, Windsurf and Cline, which also runs inside VS Code. For the OAuth route and more prompts, read the Claude setup guide. Every tool is listed on the MCP server page.
Frequently asked questions
Where does VS Code keep MCP servers?
A workspace server goes in .vscode/mcp.json. A user-level server is added with the MCP: Open User Configuration command.
Why do I need type http in VS Code?
Without it, VS Code can treat the entry as a local program to launch. The entry needs type http for a remote server.
Does this work with Copilot's free plan?
MCP tools run in Copilot's agent mode. Check GitHub's current plan page for which Copilot plans include agent mode and MCP. The FYPNow side needs a paid FYPNow plan or a trial.
Can I share the mcp.json file with my team?
Yes, because it reads the key from an environment variable and holds no secret. Each person sets FYPNOW_API_KEY on their own machine with their own key.
Start free trial
See why any TikTok or YouTube Short went viral with a frame-by-frame AI breakdown. 7-day free trial, then plans from $19/mo.
Prefer to explore first? Start free trial