# Sociallens MCP

> Sociallens MCP is a freemium MCP server for social media analytics. MCP server giving AI assistants public social media profile, post and comment data. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** CLI, API, macOS, Windows, Linux
- **Website:** https://sociallens.dev/agents
- **Repository:** https://github.com/sociallensapi/sociallens-mcp
- **MCP Registry name:** dev.sociallens/sociallens-mcp
- **Categories:** [social media analytics](https://ai-powered.com/categories/social-media-analytics)
- **Listing updated:** 2026-12-04

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add sociallens-mcp --env SOCIALLENS_API_KEY='<SOCIALLENS_API_KEY>' -- npx -y sociallens-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "sociallens-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sociallens-mcp"
      ],
      "env": {
        "SOCIALLENS_API_KEY": "<SOCIALLENS_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```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.

### Cursor (~/.cursor/mcp.json)

```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.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add sociallens-mcp --env SOCIALLENS_API_KEY='<SOCIALLENS_API_KEY>' -- npx -y sociallens-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.sociallens-mcp]
command = "npx"
args = ["-y", "sociallens-mcp"]
env = { SOCIALLENS_API_KEY = "<SOCIALLENS_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```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 (~/.config/devin/mcp_config.json)

```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 (cline_mcp_settings.json)

```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 (Zed settings.json)

```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 (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "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.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```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 (~/.kiro/settings/mcp.json)

```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.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "sociallens-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sociallens-mcp"
      ],
      "env": {
        "SOCIALLENS_API_KEY": "<SOCIALLENS_API_KEY>"
      }
    }
  }
}
```

## Tools

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_profile` (name suggests: reads): Profile with follower and subscriber counts, bio, verification and links
- `get_post` (name suggests: reads): Single post or video metrics, caption and media
- `list_profile_posts` (name suggests: reads): Recent posts for a profile, paginated
- `list_post_comments` (name suggests: reads): Comments on a post or video, paginated
- `list_followers` (name suggests: reads): Followers of a profile on TikTok, paginated
- `list_following` (name suggests: reads): Accounts a profile follows on TikTok, paginated
- `search` (name suggests: reads): Search users or videos by query
- `transcribe_post` (name suggests: changes): Transcript or captions of a video
- `get_demographics` (name suggests: reads): Audience demographics on TikTok
- `find_emails` (name suggests: reads): Public contact emails listed on a profile
- `search_ads` (name suggests: reads): Search a platform's public ad library
- `check_api_key` (name suggests: reads): Verify the key and see remaining credits

## 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.

## Alternatives

- [SocialAPI](https://ai-powered.com/mcp/socialapi-2): SocialAPI is a freemium MCP server for social media analytics.
- [SocialToAI.app](https://ai-powered.com/mcp/socialtoai-app): SocialToAI.app is a freemium MCP server for social media analytics.
- [Klupt Instagram API](https://ai-powered.com/mcp/klupt-instagram-api): Klupt Instagram API is a paid MCP server for social media analytics.
- [SocialListeningAPI](https://ai-powered.com/mcp/sociallisteningapi): SocialListeningAPI is a paid MCP server for social media analytics.
- [XTikAPI Social Media Data MCP](https://ai-powered.com/mcp/xtikapi-social-media-data-mcp): XTikAPI Social Media Data MCP is a paid MCP server for marketing and seo.
- [TikTok MCP Server (profiles and videos)](https://ai-powered.com/mcp/tiktok-mcp-server-profiles-and-videos): TikTok MCP Server (profiles and videos) is a paid MCP server for social media analytics.
- [Social Research MCP](https://ai-powered.com/mcp/social-research-mcp): Social Research MCP is a freemium MCP server for social media analytics.
- [Telegram Public Channel Messages MCP](https://ai-powered.com/mcp/telegram-public-channel-messages-mcp): Telegram Public Channel Messages MCP is a free MCP server for social media analytics.

---
Source: https://ai-powered.com/mcp/sociallens-mcp
