AI tooling · October 2026

Instagram and TikTok Data in Claude and Cursor with MCP

Connect a hosted MCP server once, then ask your AI assistant questions like “which of these five creators actually gets engagement?” It answers with live public data, not guesses from its training set.

· 8 minute read

Ask a chat assistant how many followers a creator has and it will either refuse or confidently give you a number from its training data, which can be a year out of date. Ask it to compare engagement across ten accounts and it will invent the numbers.

The Model Context Protocol (MCP) fixes this. It lets the assistant call real tools while it works. GramScraper runs a hosted MCP server at https://gramscraper.com/mcp with 20 tools for public Instagram and TikTok data. You add one URL, log in once, and the assistant can look things up for you. You don’t write any code, and you don’t paste an API key into a config file.

Connect it

Claude (claude.ai and the desktop app)

Claude
Settings → Connectors → Add custom connector
Name: GramScraper
URL:  https://gramscraper.com/mcp
Choose Connect, then approve access on gramscraper.com.

Claude Code

Terminal
claude mcp add --transport http gramscraper https://gramscraper.com/mcp
# then run /mcp inside Claude Code and choose Authenticate

Cursor

~/.cursor/mcp.json
{
  "mcpServers": {
    "gramscraper": { "url": "https://gramscraper.com/mcp" }
  }
}

VS Code and any other client that supports remote MCP servers over HTTP work the same way: point it at the URL. The client opens a GramScraper page where you log in, or sign up for 100 free credits, and approve the connection. Behind the scenes this is standard OAuth 2.1. Approving creates an API key named MCP · <app name> on your account, so you can revoke it later from Account → API keys.

If your client doesn’t support OAuth, send a key in a header instead: Authorization: Bearer gs_your_api_key.

The tools

ToolWhat the assistant getsCredits
get_profileInstagram bio, follower/following/post counts, verification, category, links1
get_user_postsRecent feed posts with captions and engagement, about 12 per page2 / page
get_user_reelsRecent reels with view, like and comment counts2, then 1 / page
get_tagged_postsPosts the account is tagged in, which is useful for spotting brand collaborations2, then 1 / page
get_user_stories / get_user_highlightsLive stories, and pinned highlight reels3 each
get_post / get_post_commentsOne post or reel by URL, and its comments1 / 2
get_hashtag_top_posts / search_hashtagsTop posts under a hashtag, and hashtag search with post counts1 / page, 1
search_places / find_places_nearby / get_place_top_postsInstagram locations and the top posts tagged there1 each
tiktok_get_profileTikTok bio, followers, total likes, video count1
tiktok_get_user_videosA creator’s recent videos with plays, likes, shares and saves, newest first2, then 1 / page
tiktok_get_video / tiktok_get_video_commentsOne video’s plays, likes, shares, saves, hashtags and music, and its comments1, 1 / page
tiktok_get_hashtag / tiktok_get_hashtag_videosHashtag totals, and the popular videos under it1, 2 then 1 / page
get_credit_balanceCredits left on the accountFree

Each tool description includes its credit price, so the assistant can see what a call will cost before it makes it. Tool calls use the same balance and prices as the REST API.

Prompts that work well

The assistant decides which tools to call. Your job is to ask a question that needs real data. Some examples that work well:

Tip: say how much data you want (“the last 12 posts”, “one page of comments”). An assistant that isn’t given a limit may keep paging through results, and every page costs credits. Asking it to “check my credit balance first” is free.

Why the tools return less than the API

The REST API returns Instagram’s full response, often hundreds of fields per post. Passing all of that to a language model wastes its context window and makes the answers worse. The MCP tools return a trimmed record per item instead: username, caption (shortened), timestamps, likes, comments, plays and URLs. They also handle the steps you would otherwise do yourself. They accept usernames or profile URLs, look up the internal user ID when an endpoint needs one, and fold that ID into the pagination cursor so the next page doesn’t repeat the lookup.

If you need every raw field, for a data pipeline or a database, use the REST API directly. MCP works best when a person is asking questions. The REST API works best when code is consuming the data.

Limits worth knowing

Frequently asked questions

Do I need an API key to use the GramScraper MCP server?

No. Clients that support OAuth open a GramScraper login page and create a key for you when you approve the connection. Clients without OAuth can send an existing key as an Authorization: Bearer header.

Which AI assistants work with it?

Any MCP client that supports remote servers over HTTP, including Claude, Claude Code, Cursor and VS Code.

How much does it cost to use MCP?

Tool calls use your normal GramScraper credits at API prices, usually 1 to 3 credits per call. Checking your balance is free. New accounts get 100 free credits, and paid packs never expire.

How do I disconnect an assistant?

Revoke the key named "MCP · <app name>" under Account → API keys. The assistant loses access straight away.

Connect in under a minute

Add https://gramscraper.com/mcp to your assistant and sign up during the approval step. You get 100 free credits, which is enough to vet a handful of creators.

Create a free account →