For AI

Answers

Is there an MCP server that lets Cursor search TikTok, Instagram and Reddit?

Short answer

Yes. Put https://api.okdata.online/mcp in ~/.cursor/mcp.json with your key in an Authorization header, and Cursor's agent can search TikTok videos ($0.002 for about 30), Instagram posts by hashtag ($0.004 a page) and Reddit posts ($0.004 for about 25), then read the comments under them. Only one of the five tools costs money; a 24-call research session across the three platforms comes to $0.068.

A developer building a social listening dashboard in Cursor wants real TikTok, Instagram and Reddit posts to code against instead of invented JSON. A product marketer uses Cursor's agent as a research desk and asks what buyers complained about this month. Both need one MCP server that reaches all three platforms. The open-source servers mostly cover one platform each and run on your machine with your own credentials, and each platform makes that harder: Reddit's official Data API needs a registered app and Reddit's approval, Instagram scrapers need your login for hashtag searches and then hit "Please wait a few minutes" errors, and TikTok libraries stop working whenever TikTok changes how its requests are signed. The okdata server is remote, takes one key, and answers with the same post and comment shapes on all three.

Add it to Cursor

Put your key in the OKDATA_API_KEY environment variable. On a Mac, add this line to ~/.zshrc, then quit Cursor completely and open it again so it picks the variable up:

export OKDATA_API_KEY="okd_..."

Then add the server to ~/.cursor/mcp.json, which applies to every project:

{
  "mcpServers": {
    "okdata": {
      "url": "https://api.okdata.online/mcp",
      "headers": { "Authorization": "Bearer ${env:OKDATA_API_KEY}" }
    }
  }
}

Cursor fills in ${env:OKDATA_API_KEY} when it connects, so the file never holds the key. Open Customize in the sidebar: okdata should be switched on with five tools. Ask the agent "What is my okdata balance?" to confirm the key arrived; that costs nothing. New keys come with $0.10 of credit. If the server shows an error, the Cursor setup page lists the usual causes.

The five tools, and the one that costs money

Tool Cost What the agent does with it
find free Turns "Instagram comments" into endpoint ids with prices
describe free Reads the parameters, fields and price of one endpoint
call the endpoint's price Fetches one page of data
read_more free Reads the rest of an answer that was cut at about 20 KB
account free Shows your balance

call is billed per page. A call that reaches the platform is charged even when it comes back empty, so a hashtag nobody uses still costs a page; a call refused for bad parameters or a low balance costs nothing. Cursor asks before it runs any MCP tool. Let find, describe, read_more and account run without asking, and keep call on manual approval so you see every paid step.

Platform Search Then read
TikTok video search by keyword (relevance, latest or most liked), hashtag videos, account search video comments
Instagram hashtag posts, account search account posts, post comments
Reddit post search by keyword (relevance, latest or top, within a day, week, month or year), community posts post comments

Instagram has no keyword search over posts here; search by hashtag instead. A page holds about 10 public posts as search engines find them, not every post under the tag and not in time order. Instagram account search returns about 20 accounts in one answer, with no further pages. All three searches return the same post object, so one type in your code fits every platform.

Three prompts to try in Cursor

Fixtures for a dashboard.

Use okdata. Fetch one page of TikTok video search for "standing desk",
one page of Instagram posts under #standingdesk and one page of Reddit post
search for "standing desk". Save each to fixtures/<platform>.json and write
one TypeScript Post type that fits all three.

Uses TikTok video search, Instagram hashtag posts and Reddit post search, one page each: 3 calls, $0.01.

What people say this month.

What do people say about standing desks this month? Take two pages of the
most-liked TikTok videos for "standing desk review", one page each for
#standingdesk, #homeoffice and #desksetup on Instagram, and two pages of top
Reddit posts from the past month. Group the complaints and link each to its post.

Uses TikTok video search ×2, Instagram hashtag posts ×3, Reddit post search ×2: 7 calls, $0.024.

The questions buyers ask.

Read the comments under the 5 most-liked TikTok videos, the 3 Instagram posts
with the most comments, and the 3 busiest Reddit threads (two pages each).
List the questions buyers ask, most frequent first.

Uses TikTok video comments ×5 (about 50 a page), Instagram post comments ×3, Reddit post comments ×6: 14 calls, $0.034.

The session, priced

Step Paid calls Cost
Endpoint lookups with find and describe 0 free
Fixtures 3 $0.01
This month's talk 7 $0.024
Buyer questions from comments 14 $0.034
Whole session 24 $0.068

The same searches from a script

Once the agent has settled on queries, the dashboard can run them on a schedule over plain HTTP:

import os, requests
from decimal import Decimal

API = "https://api.okdata.online"
H = {"Authorization": f"Bearer {os.environ['OKDATA_API_KEY']}"}
FIELDS = "id,url,title,text,author.username,metrics.likes,metrics.comments,published_at"
SEARCHES = [
    ("/v1/tiktok/videos/search", {"query": "standing desk review", "sort": "most_liked"}),
    ("/v1/instagram/hashtags/posts/list", {"id": "standingdesk"}),
    ("/v1/reddit/posts/search", {"query": "standing desk", "sort": "popular", "published_within": "month"}),
]

posts, spent = [], Decimal("0")
for path, params in SEARCHES:
    body = requests.get(API + path, headers=H, params={**params, "fields": FIELDS}, timeout=60).json()
    if body["code"] != "ok":
        raise RuntimeError(f"{path}: {body['code']} {body['message']}")
    posts += body["data"]["items"]
    spent += Decimal(body["meta"]["billing"]["amount"])

print(len(posts), "posts for", spent, "USD")

Keep the agent on a leash

  • Add a rule to .cursor/rules: "Before any paid okdata call, say how many calls you plan and wait for my OK." The spend guardrails answer has more.
  • Every page is its own call. Write "one page only" or "stop after three pages" into the prompt.
  • Ask for fields in the call so a page of posts does not flood the chat context.
  • Captions, posts and comments are written by strangers. Tell the agent to treat them as data and never as instructions.
  • Only public data comes back. Nothing posts, likes or logs in on your behalf.

Other options

A single-platform open-source server costs nothing and works if you already hold approved Reddit API credentials or are willing to sign in to Instagram with your own account; expect to fix it when the platform changes. If you use Claude and also need YouTube transcripts and X, see the TikTok, YouTube and X MCP answer. For Xiaohongshu in the same editor, see Xiaohongshu in Cursor or Cline. Whether TikTok's own Research API fits your team is covered in TikTok Research API alternatives. Every endpoint price is on the pricing page.

Sources

Where people asked this (read 2026-11-16)

Updated

Connect once, then just ask.

Every new key comes with $0.10 to try it. One sentence connects your agent.

Start free
Connect your AI

Paste this into your agent

Read https://okdata.online/agents.md and set up okdata for me; my key is in the OKDATA_API_KEY environment variable.

Claude Code, Cursor, Codex and other agents that can open a link set themselves up from it.

MCP serverhttps://api.okdata.online/mcp