How to Give Cursor Social Media Data (MCP, 2026)
The short version
Cursor is a coding editor with an AI that can call tools. On its own it does not know live social numbers, but you can hand it the SocialLens (sociallens.dev) API through an MCP server. After a one time setup, you ask Cursor in plain language, or tell it to use the data in the code it writes, and it reads real follower counts, post metrics and comments from 17 networks.
What Cursor can read once it is connected
| You ask Cursor | The tool | What comes back |
|---|---|---|
| How many followers does this account have? | get_profile |
Followers or subscribers, bio, verified flag |
| How did this post or video do? (with the URL) | get_post |
Likes, views, comments, author, caption |
| List this account's recent posts | list_profile_posts |
Recent posts with their counters |
| Pull comments on this post | list_post_comments |
Public comments with author and likes |
| Search for accounts or videos on a topic | search |
Matching users or videos |
Profiles work on 17 networks, from Instagram, TikTok, X, YouTube and Facebook to Threads, Pinterest and Bluesky. Every tool returns the JSON of the API unchanged.
What you need
- Node.js 18 or newer, which
npxuses to run the server. - 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_.
Add the server to Cursor
Open Settings, then MCP, then Add new MCP server, or edit the file ~/.cursor/mcp.json for all projects (or .cursor/mcp.json inside one project), and add:
{
"mcpServers": {
"sociallens": {
"command": "npx",
"args": ["-y", "sociallens-mcp"],
"env": {
"SOCIALLENS_API_KEY": "sk_live_YOUR_KEY"
}
}
}
}
Cursor starts the server and lists the SocialLens tools. The key stays in the config, never in a prompt. The server is the open source SocialLens MCP package, run with npx, so there is nothing to clone or build.
Two ways to use it in Cursor
- Ask in chat. "How many followers does @nasa have on TikTok?" Cursor calls
get_profileand answers with the live number. - Build it into your code. "Write a script that reads the follower count for these ten accounts and writes a CSV." Cursor uses the tool to get each number, or writes the HTTP call into the script with your key, and runs it.
A real response
Asked for the NASA TikTok profile, the tool returns a SocialLens response like this, trimmed to the main fields:
{
"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"
}
Cursor 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.
- It runs locally. The server runs on your machine over stdio. There is no hosted URL to paste in.
Other ways to connect
- Claude Desktop and Claude Code use the same MCP block. See How to Give Claude Social Media Data.
- ChatGPT uses a Custom GPT with an Action. See How to Give ChatGPT Social Media Data.
- Not sure which to pick? See Social Media Data for AI Agents: MCP vs API vs Function Calling.
Frequently asked questions
How do I give Cursor live social media data?
Add the SocialLens MCP server to Cursor in Settings, MCP, Add new MCP server, or in ~/.cursor/mcp.json, with the config block above and your key. Then ask in chat or have Cursor build the call into your code.
Does Cursor need my Instagram or TikTok login?
No. It reads public data through the SocialLens API. The only credential is your SocialLens key in the config.
Which networks can it 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.