Sociallens MCP
MCP server giving AI assistants public social media profile, post and comment data
Sociallens MCP is a freemium MCP server for social media analytics. It runs locally on your machine and is started by your AI client.
- Pricing
- Freemium
- Platforms
- CLI, API, macOS
- Runs
- Locally
- What it can do
- Can change data (1 tool)
- Access
- Needs a secret key or token
Similar MCP servers
Install
You install MCP servers on a computer. Send yourself the link.
Add with the CLI
Run in a terminal
claude mcp add sociallens-mcp --env SOCIALLENS_API_KEY='<SOCIALLENS_API_KEY>' -- npx -y sociallens-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"sociallens-mcp": {
"command": "npx",
"args": [
"-y",
"sociallens-mcp"
],
"env": {
"SOCIALLENS_API_KEY": "<SOCIALLENS_API_KEY>"
}
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"sociallens-mcp": {
"command": "npx",
"args": [
"-y",
"sociallens-mcp"
],
"env": {
"SOCIALLENS_API_KEY": "<SOCIALLENS_API_KEY>"
}
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"sociallens-mcp": {
"command": "npx",
"args": [
"-y",
"sociallens-mcp"
],
"env": {
"SOCIALLENS_API_KEY": "<SOCIALLENS_API_KEY>"
}
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"sociallens-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"sociallens-mcp"
],
"env": {
"SOCIALLENS_API_KEY": "<SOCIALLENS_API_KEY>"
}
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add sociallens-mcp --env SOCIALLENS_API_KEY='<SOCIALLENS_API_KEY>' -- npx -y sociallens-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.sociallens-mcp]
command = "npx"
args = ["-y", "sociallens-mcp"]
env = { SOCIALLENS_API_KEY = "<SOCIALLENS_API_KEY>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"sociallens-mcp": {
"command": "npx",
"args": [
"-y",
"sociallens-mcp"
],
"env": {
"SOCIALLENS_API_KEY": "<SOCIALLENS_API_KEY>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "sociallens-mcp": { "command": "npx", "args": [ "-y", "sociallens-mcp" ], "env": { "SOCIALLENS_API_KEY": "<SOCIALLENS_API_KEY>" } } } }Or run: gemini mcp add -s user -e SOCIALLENS_API_KEY='<SOCIALLENS_API_KEY>' sociallens-mcp npx -- -y sociallens-mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "sociallens-mcp": { "command": "npx", "args": [ "-y", "sociallens-mcp" ], "env": { "SOCIALLENS_API_KEY": "<SOCIALLENS_API_KEY>" } } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "sociallens-mcp": { "command": "npx", "args": [ "-y", "sociallens-mcp" ], "env": { "SOCIALLENS_API_KEY": "<SOCIALLENS_API_KEY>" } } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "sociallens-mcp": { "command": "npx", "args": [ "-y", "sociallens-mcp" ], "env": { "SOCIALLENS_API_KEY": "<SOCIALLENS_API_KEY>" } } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "sociallens-mcp": { "command": "npx", "args": [ "-y", "sociallens-mcp" ], "env": { "SOCIALLENS_API_KEY": "<SOCIALLENS_API_KEY>" } } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "sociallens-mcp": { "command": "npx", "args": [ "-y", "sociallens-mcp" ], "env": { "SOCIALLENS_API_KEY": "<SOCIALLENS_API_KEY>" } } } }The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.
Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "sociallens-mcp": { "command": "npx", "args": [ "-y", "sociallens-mcp" ], "env": { "SOCIALLENS_API_KEY": "<SOCIALLENS_API_KEY>" } } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "sociallens-mcp": { "command": "npx", "args": [ "-y", "sociallens-mcp" ], "env": { "SOCIALLENS_API_KEY": "<SOCIALLENS_API_KEY>" } } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
Configuration
SOCIALLENS_API_KEYYour SocialLens API key (sk_live_...). Free at https://sociallens.dev/registerRequiredSOCIALLENS_API_BASEOptional. Override API base URL. Defaults to https://api.sociallens.dev
About Sociallens MCP
Sociallens MCP connects Claude Desktop, Cursor and other MCP clients to public social media data from 17 networks. Instead of guessing at a creator's follower count or a post's reach, the assistant calls a tool and gets the current figure back from the source.
The server wraps the SocialLens API. Tools cover profile lookups, single post metrics, recent posts, comments, followers and following on TikTok, search, video transcripts, audience demographics, public contact emails and ad library searches. Each tool maps to a specific network subset, so the assistant knows which platforms a request can reach.
It suits researchers, marketers and developers who want an assistant to answer questions about public accounts without writing their own scraping code. A SocialLens API key is required, and each successful call uses one credit from a free starting balance of 250.
Tools this server provides (12)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 1 of 12 tools changes data.
From the server's own tool labels and tool names; not verified by us.
- get_profileName suggests: reads
- Profile with follower and subscriber counts, bio, verification and links
- get_postName suggests: reads
- Single post or video metrics, caption and media
- list_profile_postsName suggests: reads
- Recent posts for a profile, paginated
- list_post_commentsName suggests: reads
- Comments on a post or video, paginated
- list_followersName suggests: reads
- Followers of a profile on TikTok, paginated
- list_followingName suggests: reads
- Accounts a profile follows on TikTok, paginated
- searchName suggests: reads
- Search users or videos by query
- transcribe_postName suggests: changes
- Transcript or captions of a video
- get_demographicsName suggests: reads
- Audience demographics on TikTok
- find_emailsName suggests: reads
- Public contact emails listed on a profile
- search_adsName suggests: reads
- Search a platform's public ad library
- check_api_keyName suggests: reads
- Verify the key and see remaining credits
What it does
- Profile lookups across networks
- Retrieves public profile details such as follower counts, bio, verification status and links for accounts on 17 platforms.
- Post and comment metrics
- Returns likes, views, comments and shares for a single post, plus public comments on supported networks.
- Video transcripts
- Pulls captions or transcripts for videos on YouTube, TikTok, Instagram, X, Reddit, Facebook and Rumble.
- Ad library search
- Searches public ad libraries for Facebook, LinkedIn, TikTok and Google.
- Free credit check
- A key-check tool reports the remaining credit balance without spending any credits.
Good for
- Asking an assistant for a creator's current follower count on a given platform
- Comparing post performance across accounts during a campaign review
- Pulling public comments on a video to summarise audience reaction
- Checking which public ads a competitor is running on Meta or TikTok
- Collecting public contact emails listed on creator profiles for outreach
Pricing
Freemium
250 free reads on signup; then pay-as-you-go credit packs
Prices change. Check sociallens.dev before you buy.
Sociallens MCP FAQ
Which clients can use the server?
The README gives setup steps for Claude Desktop and Cursor, and says any other MCP client can run it over stdio with the API key in the environment.
How are credits charged?
Each successful 200 response costs one credit, and errors cost nothing. New accounts get 250 free reads, and paid credits never expire.
Which environment variable is required?
SOCIALLENS_API_KEY is required. SOCIALLENS_API_BASE is optional and defaults to https://api.sociallens.dev.
Is the server open source?
The repository is released under the MIT licence.
Is Sociallens MCP free?
Sociallens MCP has a free plan, with paid plans for more usage or features.
How do I add Sociallens MCP to Claude Code?
Run this command in your terminal: claude mcp add sociallens-mcp --env SOCIALLENS_API_KEY='<SOCIALLENS_API_KEY>' -- npx -y sociallens-mcp
What are the best alternatives to Sociallens MCP?
The closest alternatives to Sociallens MCP are SocialAPI, SocialToAI.app, Klupt Instagram API, SocialListeningAPI and XTikAPI Social Media Data MCP.
Where this comes from
- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

