VS Code MCP server setup for TikTok and Instagram research
Updated
Virlo is social listening for TikTok and Instagram Reels. The agent in VS Code's Chat view can edit files and run your tests, but it cannot look up what is trending on TikTok or Instagram Reels. Register Virlo as an MCP server in mcp.json and that agent can query trends, hooks, sounds and outlier videos from a database of 23.1M viral videos. VS Code is Microsoft's free code editor, which now ships with built-in AI chat and agent sessions.
- One http server entry in .vscode/mcp.json or your user profile
- VS Code prompts for the key once and keeps it in secret storage
- Works with a Copilot plan, a supported model provider or your own API key
Part of Virlo's AI assistant guides. Using Copilot in the terminal or on github.com too? See GitHub Copilot. Prefer an extension-based agent? See Cline.
How do I add an MCP server to VS Code?
Use the guided MCP: Add Server command or paste a config by hand. Both end with the same entry in an mcp.json file.
Step 1: Create your Virlo account for free
Step 2: Run MCP: Add Server
Open the Command Palette (Ctrl+Shift+P, or Cmd+Shift+P on a Mac), run MCP: Add Server, choose HTTP, paste the URL below and give it the ID virlo. Pick Workspace to write
.vscode/mcp.jsonfor this repo, or Global to store it in your user profile.Server URLhttps://dev.virlo.ai/api/mcp/mcpStep 3: Add the key as a password input
Open the file with MCP: Open Workspace Folder MCP Configuration (or MCP: Open User Configuration) and make it match this block. The
inputsentry tells VS Code to ask for your Virlo key the first time the server starts, so the key never sits in the JSON..vscode/mcp.json{ "inputs": [ { "type": "promptString", "id": "virlo-key", "description": "Virlo API key", "password": true } ], "servers": { "virlo": { "type": "http", "url": "https://dev.virlo.ai/api/mcp/mcp", "headers": { "Authorization": "Bearer ${input:virlo-key}" } } } }Step 4: Start the server and trust it
Click the Start CodeLens above "virlo", accept the trust prompt and paste a key from your Virlo API Keys page (it starts with virlo_tkn_). Rather sign in? Remove
inputsandheaders, and VS Code opens Virlo's authorization page in your browser on first connect instead.Step 5: Ask the agent in the Chat view
Open the Chat view, start an agent session, and check that virlo is ticked in the tools list. Then ask in plain English.
Your first promptUsing Virlo, list the 10 TikTok trends to copy with the most creators this week in [your niche] and save them to data/trends.json with name, stage and an example video URL.
Need the server in a Dev Container or over Remote SSH? Run MCP: Open Remote User Configuration and add the same entry there, because remote windows read their own mcp.json.
Workspace mcp.json vs user mcp.json vs Copilot config: where should Virlo live in VS Code?
| Location | How to open it | Top-level key | Use it for |
|---|---|---|---|
.vscode/mcp.json | MCP: Open Workspace Folder MCP Configuration | servers | Sharing Virlo with everyone who opens the repo; keys stay in password inputs |
User profile mcp.json | MCP: Open User Configuration | servers | Having Virlo in every folder you open on this machine |
Remote user mcp.json | MCP: Open Remote User Configuration | servers | Codespaces, Dev Containers and SSH windows |
~/.copilot/mcp-config.json | Written by copilot mcp add in Copilot CLI | mcpServers | One setup shared by Copilot CLI and the Copilot agent in VS Code |
Whichever file you pick, run MCP: List Servers to start, stop or restart virlo and read its output log.
What changes when the VS Code agent has Virlo?
| Task in the Chat view | Agent alone | Agent plus Virlo |
|---|---|---|
| Fill a prototype with social posts | Lorem ipsum captions and fake handles | Real TikTok and Instagram videos with views and creators |
| Brief the content team from the repo | Generic best practices | This week's trends to copy with what to keep and what to change |
| Pick audio for a product clip | Songs it remembers | Sounds climbing on TikTok and Reels in the last 7 days |
| Explain a viral competitor video | Guesswork from the title | Hook, on-screen text, format and Virality Score |
Which Virlo tool answers which question inside VS Code?
Each row pairs a question you might type in the Chat view with the Virlo tool the agent calls and today's live answer. The tool names show up in VS Code's tool-call confirmations, so you can see exactly what ran.
In Virlo's data, 659 creators posted the "My moon my man couple montage" trend in the last 7 days, the top answer the trends tool gives as of November 19, 2026.
As of November 19, 2026 at 13:07 UTC
| Question your app asks | Tool it calls | Top answer |
|---|---|---|
| Which format are most creators copying? | get_content_trends | My moon my man couple montage: 659 creators this week |
| Which sound is trending on Instagram Reels? | get_trending_sounds | "Flower In A Hurricane (feat. Tame Impala, SZA, King Gizzard & the Lizard Wizard) [From GTAVI: Original Score]": 75 Reels in 7 days |
| Which hook type wins most often on TikTok? | search_hooks | POV setup: 32.9% reach a Virality Score of 18+ |
| Which hook type wins most often on Instagram? | search_hooks | Comparison: 19.0% reach a Virality Score of 18+ |
| What is the second trend to copy? | get_content_trends | While they're out partying btw: 346 creators this week |
Every answer, not just the top one
Connect the server and the same tools return the full lists, filters and history.
Start for freeHow this sample is made
- Source
- Virlo's Trends to copy, Instagram sound rankings and daily hook snapshot: the same data the MCP tools read.
- Window
- Trends: creators in the last 7 days. Sounds: Reels in the last 7 days. Hooks: all hook-tagged videos in the latest snapshot. TikTok and Instagram only.
- Method
- Each row is the top item for that question, from the data the named tool reads.
- As of
- Trends November 19, 2026 at 13:07 UTC; sounds November 19, 2026 at 12:03 UTC; hooks November 19, 2026.
- Made by
- Numbers are pulled automatically from Virlo's data every hour; the text around them is written by the Virlo team.
Suggested citation: Source: Virlo, “VS Code MCP server setup for TikTok and Instagram research”, virlo.ai/vs-code
How does VS Code agent mode use Virlo tools?
When you start an agent session, VS Code hands the model every enabled tool from your MCP servers, Virlo's included. The model chooses which one to call for your request and VS Code asks you to confirm before the call runs, unless you have approved that tool for the session.
You can also point the agent at a tool directly by typing # in the chat box and picking a Virlo tool, which helps when a request could match several servers.
- Keep the number of active servers modest: switching off unrelated servers in the tools picker helps the agent pick Virlo for social questions.
- Ask for files, not chat text: "save to data/sounds.json" gives you something you can import, test and commit.
- Pair Virlo with your workspace: the agent can read your product docs and then search for videos that sell the same problem.
Setting up Virlo for a whole team in VS Code
Commit .vscode/mcp.json with the password input shown above. Each teammate gets the trust prompt and enters their own Virlo key when the server first starts, and VS Code stores it in its secret storage rather than the file.
Organisations that manage Copilot policies can restrict which MCP servers are allowed, so if virlo refuses to start on a work machine, ask whoever manages your Copilot settings to permit it.
Turning VS Code research into reusable prompt files
VS Code can store reusable prompts and custom instructions in your workspace, which suits research you repeat every week. Write one prompt file that asks the agent to pull trends, hooks and sounds from Virlo for your niche and save a dated brief, then run it each Monday instead of retyping the request.
Custom instructions help too. A short note such as "for social media questions, use the virlo tools, sort by Virality Score and link every source video" nudges the agent toward the right server and keeps its answers checkable. Commit both files beside .vscode/mcp.json and the whole team gets the same routine.
What can I ask the VS Code agent with Virlo turned on?
Type these in an agent session in the Chat view. Fill in the brackets.
Trend JSON
Fetch this week's Instagram Reels trends to copy in [your niche] from Virlo and write them to data/reels-trends.json.
Typed model
Pull one Virlo trend record for [your niche], then generate a TypeScript interface for it in src/types/trend.ts.
Hook table
Which hook types reach a Virality Score of 18+ most often on TikTok in [your niche]? Put the answer in docs/hooks.md as a table.
Sound picker
List the five sounds rising fastest on TikTok this week, with artist and video count, and add them to content/sounds.md.
Creator audit
Look up @[handle] on Instagram with Virlo and summarise which of their Reels beat their usual views and why.
Script from transcript
Get the transcript of [TikTok link], split it into hook, body and call to action, and write a version for [your product].
Landing page proof
Read src/pages/index.tsx and suggest three headline angles backed by TikTok videos about [problem] that outperformed.
Weekly brief
Combine Virlo trends, hooks and sounds for [your niche] into docs/weekly-brief.md with one source video per idea.
VS Code vs GitHub Copilot vs Cursor: which guide do I need?
People often say "VS Code" when they mean Copilot, and Cursor and Cline both live close to VS Code too. Here is how the four differ.
VS Code (this page)
Microsoft's editor. Its Chat view runs agent sessions that read MCP servers from mcp.json, whichever model provider you use.
GitHub Copilot
GitHub's AI service that powers chat in VS Code, plus Copilot CLI and the cloud agent on github.com, each with its own MCP setup.
Cursor
A separate editor forked from VS Code. It keeps servers in ~/.cursor/mcp.json under mcpServers.
Cline
An open-source agent extension you install inside VS Code. It has its own MCP Servers panel and settings file.
What are the limits?
- Virlo reads public TikTok and Instagram videos only. The VS Code agent can research with it, never post or sign in to social accounts.
- Servers in
.vscode/mcp.jsonneed your trust the first time they start; MCP: Reset Trust clears earlier decisions. - If tools look stale after a Virlo update, run MCP: Reset Cached Tools and restart the server.
- Trends to copy refresh hourly and are checked by the Virlo team before they appear.
- For what each Virlo plan includes, see pricing.
Frequently asked questions
How do I add a VS Code MCP server for TikTok data?
Run MCP: Add Server from the Command Palette, choose HTTP, paste https://dev.virlo.ai/api/mcp/mcp and name it virlo. VS Code writes the entry to mcp.json. Start the server, enter your Virlo key or sign in, then ask the agent in the Chat view a TikTok question.
What goes in .vscode/mcp.json for a remote server?
A servers object with one entry per server. For Virlo: "type": "http", the server URL as "url", and a headers object whose Authorization value is "Bearer ${input:virlo-key}". A matching promptString input with "password": true makes VS Code ask for the key instead of storing it in plain text.
What is VS Code agent mode?
It is the way the Chat view works when the model is allowed to act: it reads your workspace, edits files, runs terminal commands and calls MCP tools until the task is done, asking before risky steps. Recent VS Code releases call these agent sessions rather than a separate mode.
Do I need GitHub Copilot to use MCP in VS Code?
VS Code lets you run its agent with an existing GitHub Copilot plan, a supported model provider account or your own API key. Any of those can call Virlo, because the MCP server belongs to VS Code, not to one model. The GitHub Copilot guide covers Copilot-only surfaces.
Can VS Code sign in to an MCP server with OAuth?
Yes. When a remote server supports OAuth, VS Code opens a browser window to authorize on the first connection. Virlo supports dynamic client registration, so leave out the inputs and headers blocks and approve access on the Virlo page; no key needs to be copied anywhere.
Can VS Code see TikTok and Instagram videos?
Through Virlo, the agent receives the parts of a video it can reason about: spoken hook, on-screen text, format, views, Virality Score and, on TikTok, the full transcript. It still cannot watch the pixels, but that text is plenty for explaining a hit or drafting a script.
The virlo server will not start in VS Code. What should I check?
Open MCP: List Servers, select virlo and read the output log. Common causes are a key that does not start with virlo_tkn_, a trailing slash after /mcp, or a declined trust prompt. Fix the entry, then use Restart from the same list.
Can I share one Virlo setup across VS Code and Copilot CLI?
Yes. Copilot CLI saves servers to ~/.copilot/mcp-config.json, and VS Code reads that file for the Copilot agent alongside its own mcp.json. Add Virlo once with copilot mcp add and both surfaces see it. Remember that this file stores the header in plain text.
Can the VS Code agent post to Instagram through Virlo?
No. Virlo has no posting, commenting or account access of any kind; it only reads public TikTok and Instagram data. Use it to research and write inside VS Code, then publish from the social app or scheduler your team already uses.
Turn VS Code into a social research desk
Run MCP: Add Server, paste the Virlo URL and ask the agent what your niche is copying on TikTok this week.
More AI assistant guides
- AI assistant guides
- Claude
- Claude Code
- Cursor
- MCP server
- TikTok MCP server
- Instagram MCP server
- ChatGPT
- ChatGPT dots
- OpenAI Codex
- Gemini CLI
- Grok Build
- Claude Cowork
- n8n
- Zapier
- Grok Bot
- Muse
- Claude Duet
- Hermes Agent
- Kimi K3
- Cue
- Manus
- Perplexity Computer
- Paperclip
- OpenClaw
- NanoClaw
- DeepSeek
- AI agents CLI
- ChatGPT agent
- Perplexity
- Microsoft Copilot
- Le Chat
- Notion
- Slack
- Discord
- Telegram
- Google Sheets
- Windsurf
- GitHub Copilot
- Cline
- JetBrains
- Kiro
- Google Antigravity
- goose
- Warp
- OpenCode
- Zed
- Amp
- Factory Droid
- Raycast
- Lovable
- Replit
- Bolt.new
- v0
- Ollama
- LM Studio
- Open WebUI
- LibreChat
- Make
- Pipedream
- Gumloop
- Lindy
- Relevance AI
- Airtable
- ClickUp
- Dify
- Flowise
- LangChain
- CrewAI
- OpenAI Agents SDK
- Mastra
- Vercel AI SDK
- Claude Agent SDK