fypnow
← Back to blog
opencodemcpaitiktok

How to Connect TikTok Data to OpenCode (MCP Setup, 2026)

FYPNow Team··3 min read

OpenCode keeps your research and your writing in the same terminal session. Adding FYPNow gives it TikTok data to work from: top videos in a niche, the hooks that opened them, and the hashtags more creators are using. It can then turn that into scripts or a plan in your repo. You run one command and sign in. There's no key to paste.

What you need

  • OpenCode, installed.
  • A FYPNow workspace on a paid plan. Creator and Starter include a 7-day free trial.

Step 1: Add the server

Run this in your project folder:

opencode mcp add fypnow --url https://api.fypnow.com/mcp

The command writes the server to the project configuration. To use it in every project, add --global:

opencode mcp add fypnow --global --url https://api.fypnow.com/mcp

Step 2: Check the connection

opencode mcp list

If the list says needs authentication, open OpenCode, run /mcps, select fypnow, and sign in on the FYPNow screen. Choose the workspace, and choose read only if you only want research.

When the list shows fypnow connected, the server is ready.

Step 3: Ask a question

What's trending across niches this week?

What you can ask it

  • "What are the top videos in the Crypto niche this week, and what hooks do they use?"
  • "Search analysed hooks that promise a result, and save the best five as templates in hooks.md."
  • "Which hashtags gained the most new creators in Fitness this week?"
  • "List open trends across my niches, with an example video for each."
  • "Analyze https://www.tiktok.com/@someone/video/123 and tell me where the cuts are." Needs read and write access. A new analysis takes about a minute.

Keep the list short

OpenCode says MCP tools use up your model context, so add only the servers you need. A read-only FYPNow connection loads 25 tools; read and write loads 40.

What the data is

FYPNow tracks public TikTok videos in niches defined by keywords and hashtags. Niches refresh on a schedule, so the newest videos can be a few days old. Niche rankings use the multiple, which is views compared with follower count. It never includes private analytics for any account.

Troubleshooting

  • opencode mcp list doesn't show fypnow. You may have added it to another project. Run the add command again in this folder, or add it with --global.
  • It stays on needs authentication. Run /mcps again and finish the sign-in in the browser. If the browser doesn't open, copy the link OpenCode shows.
  • Every call fails with a permission error. The connection may be bound to a workspace without an active paid plan. Sign in again and pick another workspace.
  • write_scope_required. You chose read only. Sign in again with write access to analyse new videos or search trends.

Limits

  • It reads and analyses. It does not post for you.
  • A connection acts on one workspace. You can revoke it in Settings → API.
  • Results describe what has happened to other videos. They are not a forecast.

The same server works in Claude Code, Codex CLI and Gemini CLI. The Claude setup guide has more prompts, and the MCP server page lists every tool.

Frequently asked questions

How do I add FYPNow to OpenCode?

Run opencode mcp add fypnow --url https://api.fypnow.com/mcp, then opencode mcp list to check it. OpenCode uses OAuth for remote servers by default.

How do I sign in to FYPNow in OpenCode?

If the list says needs authentication, open OpenCode, run /mcps, select fypnow, and sign in.

Do I need an API key for OpenCode?

No. OpenCode signs in to remote servers with OAuth, so you approve the connection on a FYPNow screen and no key is stored in your project.

Can I turn the FYPNow tools off without removing the server?

Yes. Set enabled to false on the fypnow entry in your OpenCode config. The entry stays, and the tools stop loading until you turn it back on.

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.

Start your 7-day free trial to analyze this video.

Prefer to explore first? Start free trial