sociallens
Configures the integration setup, allowing a Slack platform connection to be enabled or disabled with a webhook URL for delivering social-media search and agent-run results.
sociallens
sociallens talks to Rolli IQ's social-media search and analytics API: keyword, user, and expert searches and the posts they find, the topic tree, agent runs, agent schedules, integration setup, and account usage. One binary serves a command-line interface and a stdio MCP server.
An API token is required. Set ROLLI_API_TOKEN before use; when
it is missing or blank, every tool fails with an error before any
request is made. ROLLI_USER_ID is optional and defaults to
rolli-mcp; its value is sent with every request. The API base
URL can be overridden with SOCIALENS_API_URL; when it is not
set, calls go to https://api.rolli.ai.
One difference from the original server is worth knowing up
front: the original waits, polling until a search completes
(which can take up to ten minutes). sociallens makes a single
request per tool call and returns whatever status and results
the API reports at that moment; call the matching get_* tool
again to check on a search that is still running.
Install
npx @reneturcios/sociallens get_usageOr run the container image:
docker run -i ghcr.io/cloudcorprecords/sociallensThe container defaults to the MCP server (see below). Pass CLI arguments to use it as a CLI instead.
Related MCP server: @fopost/mcp
CLI
The subcommands mirror the MCP tool names:
export ROLLI_API_TOKEN=...
sociallens list_keyword_searches --status completed
sociallens keyword_search --query "electric vehicles" --platforms x,reddit
sociallens get_keyword_search --id ks1
sociallens get_keyword_search_posts --id ks1
sociallens list_user_searches
sociallens user_search --query "@someone"
sociallens list_expert_searches
sociallens expert_search --query "climate science"
sociallens get_topic_tree
sociallens list_agent_runs --status running
sociallens start_agent_run --agent-id ag1 --input "weekly roundup"
sociallens create_agent_schedule --agent-id ag1 --cron-expression "0 9 * * *" --name daily
sociallens pause_agent_schedule --id s1
sociallens list_agent_schedule_runs --id s1
sociallens get_integration_setup
sociallens update_integration_setup --platform slack --enabled true
sociallens get_usage
sociallens --versionResults print the upstream JSON payload. Exit codes: 0 on
success, 1 when a call fails (including a missing token or an
upstream API error), 2 for usage errors.
MCP server
One bin serves both faces. The mcp subcommand starts a stdio
MCP server:
npx -y @reneturcios/sociallens mcpMCP client configuration:
{
"mcpServers": {
"sociallens": {
"command": "npx",
"args": ["-y", "@reneturcios/sociallens", "mcp"],
"env": { "ROLLI_API_TOKEN": "..." }
}
}
}Tools
Tool | Input | What it does |
|
| List keyword searches. |
|
| Start a keyword search. |
|
| Get one keyword search. |
|
| List user searches. |
|
| Start a user search. |
|
| Get one user search. |
|
| List expert searches. |
|
| Start an expert search. |
|
| Get one expert search. |
| (none) | Get the topic tree. |
|
| Get a keyword search's posts. |
|
| Get a user search's posts. |
|
| List agent runs. |
|
| Start an agent run. |
|
| Get one agent run. |
|
| Cancel an agent run. |
|
| Re-run an agent run. |
|
| Update an agent run. |
|
| Delete an agent run. |
|
| List agent schedules. |
|
| Create an agent schedule. |
|
| Get one agent schedule. |
|
| Update an agent schedule. |
|
| Delete an agent schedule. |
|
| Pause an agent schedule. |
|
| Resume an agent schedule. |
|
| List a schedule's runs. |
| (none) | Get the integration setup. |
|
| Update the integration setup. |
| (none) | Get account usage. |
platforms is an array of platform names. Dates use
YYYY-MM-DD form as start_date / end_date.
Development
npm install
npm run build # tsc -> dist/
npm test # node test runner over test/*.test.ts, no network (fake fetch fixtures)
npm run dev # run the CLI from source via tsxLicense
MIT — see LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Create, schedule, and publish social posts, manage accounts, and read analytics as MCP tools.
Run social media with agents. Connect over MCP to plan, write, and post to every network.
Agent-first social media publishing, scheduling, analytics, and unified inbox API + 16-tool MCP server across 18 social platforms (X, LinkedIn, Instagram, YouTube, TikTok, Threads, Bluesky, Reddit, Telegram, Discord, Mastodon, Facebook, Pinterest).
Social media data for AI agents: one MCP address, 18 platforms. Pay per call; failed calls are free.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides unified access to social media data across nine networks (Instagram, TikTok, YouTube, etc.) through a set of MCP tools for profiles, posts, search, and comments, backed by the SocialBridge API.-

@fopost/mcpofficial
AlicenseAqualityBmaintenanceEnables managing social media posts, accounts, and AI-powered content features from any MCP client, including scheduling, publishing, analysis, and AI caption generation.1443 npmMIT- AlicenseNot gradedqualityCmaintenanceEnables retrieval and management of social media data from Instagram, TikTok, YouTube, X, and Facebook through MCP tools, supporting extractions, search, discovery, batches, schedules, and saved results.52 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to post, schedule, thread, delete, and analyze social media posts across platforms like X, Bluesky, LinkedIn, and Instagram through a single MCP interface.143 npmMIT