How to Give Claude Social Media Data (MCP + API, 2026)
The short version
Claude does not know how many followers an account has right now. It answers from training data and guesses. You give it the live number with the SocialLens (sociallens.dev) API, and there are two clean ways to connect, depending on where you use Claude:
- Claude Desktop, Claude Code or Cursor: add the SocialLens MCP server. You paste one config block, and the social tools appear in Claude.
- Your own app on the Claude API: define the call as a tool and Claude asks for it when it needs a number.
Both read the same public data from 17 networks. Pick the one that matches how you use Claude.
What Claude can read once it is connected
| You ask | The tool | What comes back |
|---|---|---|
| How many followers does this account have? | get_profile |
Followers or subscribers, bio, verified flag, links |
| How did this post or video do? (with the URL) | get_post |
Likes, views, comments, author, caption |
| What has this account posted lately? | list_profile_posts |
Recent posts with their counters |
| What are people saying under this post? | list_post_comments |
Public comments with author and likes |
| Find accounts or videos about a topic | search |
Matching users or videos |
| What is said in this video? | transcribe_post |
The transcript or captions |
Profiles work on 17 networks: Instagram, TikTok, X, Reddit, YouTube, Facebook, LinkedIn, Threads, Pinterest, Telegram, Bluesky, Truth Social, Cosmos, SoundCloud, Kwai, GitHub and Spotify. Every tool returns the JSON of the API unchanged, so Claude reads real fields.
What you need
A SocialLens API key. Create a free account to get one: 250 free reads, no credit card. The key is on your keys page and starts with sk_live_.
Path 1: Claude Desktop, Claude Code or Cursor (MCP)
The SocialLens MCP server is an open source package that runs with one command, npx -y sociallens-mcp. You add it to your client config once.
In Claude Desktop, open Settings, then Developer, then Edit Config, and add:
{
"mcpServers": {
"sociallens": {
"command": "npx",
"args": ["-y", "sociallens-mcp"],
"env": {
"SOCIALLENS_API_KEY": "sk_live_YOUR_KEY"
}
}
}
}
Restart Claude Desktop. The SocialLens tools appear, and you ask in plain language. In Cursor the same block goes in ~/.cursor/mcp.json. In Claude Code you add it with claude mcp add --env SOCIALLENS_API_KEY=sk_live_YOUR_KEY --transport stdio sociallens -- npx -y sociallens-mcp.
The key lives in the config, never in the prompt. You need Node.js 18 or newer, which npx uses to fetch and run the server.
Path 2: your own app on the Claude API (tool use)
If you build the assistant yourself, declare one tool and run the HTTP call in your handler when Claude asks for it. The tool definition:
{
"name": "get_social_profile",
"description": "Read a public social media profile: follower count, bio, verified flag.",
"input_schema": {
"type": "object",
"properties": {
"platform": {"type": "string", "description": "instagram, tiktok, x, youtube, and more"},
"username": {"type": "string"}
},
"required": ["platform", "username"]
}
}
When Claude returns a tool_use block, your code calls GET https://api.sociallens.dev/v1/profile with the two parameters and your key in the Authorization: Bearer header, then sends the JSON back as the tool result. The full schema for every endpoint is in the docs and the OpenAPI file.
Ask a question and watch it work
With the MCP server connected, ask Claude:
How many followers does @nasa have on TikTok?
Claude picks get_profile and calls it with platform tiktok and username nasa. A real SocialLens response, trimmed:
{
"exists": true,
"username": "nasa",
"platform": "tiktok",
"verified": true,
"followers": 2262158,
"is_exact": true,
"following": 23,
"likes": 12095924,
"videos": 70,
"fetched_at": "2026-11-30T02:36:42Z"
}
Claude answers with followers and can cite fetched_at as the time of the read.
What each call costs
- One successful read is 1 credit. A follower count or a post lookup is 1 call.
- Paginated tools cost 1 credit per page.
- Checking your key is free, and errors are never charged.
A new account has 250 free reads. After that, credits are prepaid and never expire, starting at $19 for 8,000 reads, which is $0.0024 per read. See the pricing page.
Honest scope
- Public data, read only. The server reads public profiles and posts, needs no login to any network, and cannot post, follow or message.
- Not every tool covers every network. Profiles work on all 17 networks. Single posts work on all except LinkedIn. Comments cover TikTok, Instagram, YouTube, Facebook and Reddit. Follower lists are TikTok only.
- YouTube rounds its numbers. The response marks
is_exactas false, so Claude should say "about" instead of an exact figure. - MCP is a local server. It runs on your machine over stdio. There is no URL to paste into claude.ai in the browser.
Other ways to connect
- ChatGPT. It uses a Custom GPT with an Action, not MCP. See How to Give ChatGPT Social Media Data.
- No code tools and automations. One GET request with a Bearer key fits Zapier, n8n and Make. See Social Media Data for AI Agents and No Code Tools.
Frequently asked questions
How do I give Claude live social media data?
In Claude Desktop, Claude Code or Cursor, add the SocialLens MCP server with the config block above and your key. In your own app on the Claude API, declare a tool and call the API in the handler.
Do I need to write code?
No, if you use Claude Desktop, Claude Code or Cursor: you paste a config block. Yes, if you build your own app on the Claude API, where you run the HTTP call in your tool handler.
Does Claude need my Instagram or TikTok login?
No. It reads public data through the SocialLens API. The only credential is your SocialLens key.
Which networks can Claude read?
Profiles on 17 networks, including Instagram, TikTok, X, YouTube, Facebook, LinkedIn, Threads, Pinterest and Bluesky. Posts work on all except LinkedIn, and comments on TikTok, Instagram, YouTube, Facebook and Reddit.
How much does it cost?
One credit per successful read, one per page on paginated tools. Checking your key is free and errors are not charged. A new account starts with 250 free reads.