How to Give Claude Social Media Data (MCP + API, 2026)

Published · 5 min read

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:

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

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

Other ways to connect

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.

Run these requests yourself

Every example on this page is a real call to the SocialLens API. A new account starts with 250 free reads, no card needed, and a read that fails is never charged.

Keep reading