I wanted to ask Claude a simple question the other day: "How is Nike's latest TikTok doing, and what are people saying in the comments?"

It couldn't answer. Not because the question is hard, but because the assistant has no way to look. It can't open TikTok, and scraping it yourself means proxies, captchas and parsers that break every other week.

In this tutorial we'll fix that in about five minutes. We'll connect an AI assistant to an MCP server that reads public social media data, then use it for a small real task: checking how a brand's latest post is doing and summarizing its comments.

What you'll need

  • An MCP-capable assistant. I'll use Claude Code, but Claude Desktop, Cursor and VS Code work the same way (setup for each is below).
  • A free SocialAPI account. It starts with 100 free credits and no card, which is plenty for this tutorial.

That's it. Nothing to install, no API key to copy around.

Step 1. Add the MCP server

The server is remote and lives at https://api.socialapi.sh/mcp. In Claude Code, run:

claude mcp add --transport http socialapi https://api.socialapi.sh/mcp 

Using Cursor, VS Code or Claude Desktop instead?

Cursor, in ~/.cursor/mcp.json:

{ "mcpServers": { "socialapi": { "url": "https://api.socialapi.sh/mcp" } } } 

VS Code, in .vscode/mcp.json:

{ "servers": { "socialapi": { "type": "http", "url": "https://api.socialapi.sh/mcp" } } } 

Claude Desktop / claude.ai: Settings → Connectors → Add custom connector, and paste the URL.


Step 2. Sign in

In Claude Code, type /mcp, pick socialapi, and a browser window opens. Sign in, choose the workspace whose credits the assistant should spend, and click Allow.

To check it worked, just ask:

How many SocialAPI credits do I have left?

If it answers with a number, you're connected. (Checking the balance is free.)

Step 3. Ask your first question

Let's start small:

How many followers does Nike have on TikTok?

Here's what happens behind the scenes. The assistant doesn't know the API yet, so it searches first:

{ "tool": "find_endpoints", "query": "tiktok profile" } 

It gets back tiktok_profile with its parameters, and calls it:

{ "tool": "call_endpoint", "endpoint": "tiktok_profile", "arguments": { "handle": "nike" } } 

The answer looks like this (trimmed):

{ "data": { "username": "nike", "displayName": "Nike", "verified": true, "followers": 9440793, "following": 94, "likes": 51312842, "posts": 1131 } } 

And Claude replies with something like "Nike has about 9.4 million followers on TikTok." One credit spent. If you ask the same thing again within 15 minutes, it comes from the cache and costs nothing.

Step 4. Do something actually useful

Now the question I started with. Paste this in:

Look at Nike's 5 most recent TikToks. Which one has the best engagement? Then read the comments on that one and tell me, in a few bullets, what people are saying.

This takes the assistant three steps, and it figures them out on its own:

  1. Recent posts. It finds tiktok_profile_posts and reads the latest posts. Each post has the same fields: stats.views, stats.likes, stats.comments, stats.shares, and a ready-made stats.engagementRate.
  2. Pick the winner. It compares the engagement rates, which is just arithmetic on those numbers, so no guessing.
  3. Comments. It finds tiktok_post_comments, reads the comments on that post, and summarizes them.

What I like here is that I didn't have to tell it which endpoints exist or what they're called. It searched for what it needed.

The nice part is that the fields are the same on every platform. Swap "TikTok" for "YouTube", "Instagram" or "Reddit" in the prompt above and it still works, because a post always has stats.views and a comment always has text and author.

A few more prompts to try

  • "Summarize the top comments on this YouTube video", then paste a link
  • "What's hot on r/programming right now?"
  • "Get the transcript of this TikTok and list every product it mentions"
  • "Compare the last 10 posts of these two Instagram accounts"

Bonus: why the assistant searches first

You might wonder why the assistant calls find_endpoints instead of having one tool per endpoint.

Every MCP tool you expose sits in the model's context before you've even asked a question, at roughly 200 tokens each. An API that covers many platforms has hundreds of endpoints, so one-tool-per-endpoint would burn tens of thousands of tokens up front, and models get worse at choosing between dozens of look-alikes like tiktok_profile_posts and instagram_profile_posts.

So the server shows just three tools (find_endpoints, call_endpoint and get_credits), about 600 tokens in total, and the model searches for what it needs. If you're building your own MCP server over a large API, this pattern is worth stealing.

(If you only care about one or two platforms, you can also connect to https://api.socialapi.sh/mcp?platforms=tiktok,instagram and get one tool per endpoint for just those.)

Wrapping up

That's it: one command, one sign-in, and your assistant can read public social media. The full setup guide for every app is in the MCP docs.

If you try it, I'd love to hear what you ask it. Drop your favorite prompt in the comments.