mcpField
S
sociallens

sociallens

Local
github.com/CloudCorpRecordsSocial Media0Updated 1w ago

About sociallens

sociallens provides CLI and MCP access to Rolli IQ social search and analytics, including keyword, user, and expert searches, agents, schedules, and account usage. Each call returns the API's current status rather than polling until completion.

Key features

  1. 01Search by keyword, user, and expert
  2. 02Retrieve search results and posts
  3. 03Manage agent runs and schedules
  4. 04Configure integrations and inspect usage
  5. 05CLI and stdio MCP server

Use cases

  1. 01Find social posts matching keywords
  2. 02Search for users or experts
  3. 03Start and manage agent runs
  4. 04Check scheduled runs and account usage

MCP support

Exposes Rolli IQ search, analytics, agent, schedule, integration, and usage operations as tools through a stdio MCP server. Each call makes one API request; running searches can be checked again with the corresponding get tool.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"cloudcorprecords-sociallens": {
"command": "npx",
"args": [
"-y",
"@reneturcios/sociallens"
]
}
}
}
Run commandnpx -y @reneturcios/sociallens

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@reneturcios/sociallens0.1.0
ocighcr.io/cloudcorprecords/sociallens:0.1.0

Tools

30

Saved tool list · updated 1w ago

ParameterTypeRequiredDescription
statusstringNoStatus filter for the listed items.

Details

From the project README

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_usage

Or run the container image:

docker run -i ghcr.io/cloudcorprecords/sociallens

The container defaults to the MCP server (see below). Pass CLI arguments to use it as a CLI instead.

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

Results 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 mcp

MCP client configuration:

{
  "mcpServers": {
    "sociallens": {
      "command": "npx",
      "args": ["-y", "@reneturcios/sociallens", "mcp"],
      "env": { "ROLLI_API_TOKEN": "..." }
    }
  }
}
Tools
ToolInputWhat it does
list_keyword_searchesstatus (optional)List keyword searches.
keyword_searchquery (required), platforms, start_date, end_dateStart a keyword search.
get_keyword_searchid (required)Get one keyword search.
list_user_searchesstatus (optional)List user searches.
user_searchquery (required), platforms, start_date, end_dateStart a user search.
get_user_searchid (required)Get one user search.
list_expert_searchesstatus (optional)List expert searches.
expert_searchquery (required), platforms, start_date, end_dateStart an expert search.
get_expert_searchid (required)Get one expert search.
get_topic_tree(none)Get the topic tree.
get_keyword_search_postsid (required)Get a keyword search's posts.
get_user_search_postsid (required)Get a user search's posts.
list_agent_runsstatus (optional)List agent runs.
start_agent_runagent_id (required), inputStart an agent run.
get_agent_runid (required)Get one agent run.
cancel_agent_runid (required)Cancel an agent run.
rerun_agent_runid (required)Re-run an agent run.
update_agent_runid (required), name, statusUpdate an agent run.
delete_agent_runid (required)Delete an agent run.
list_agent_schedulesstatus (optional)List agent schedules.
create_agent_scheduleagent_id, cron_expression (both required), nameCreate an agent schedule.
get_agent_scheduleid (required)Get one agent schedule.
update_agent_scheduleid (required), name, cron_expression, agent_idUpdate an agent schedule.
delete_agent_scheduleid (required)Delete an agent schedule.
pause_agent_scheduleid (required)Pause an agent schedule.
resume_agent_scheduleid (required)Resume an agent schedule.
list_agent_schedule_runsid (required), statusList a schedule's runs.
get_integration_setup(none)Get the integration setup.
update_integration_setupplatform, webhook_url, enabledUpdate the integration setup.
get_usage(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 tsx

License

MIT — see LICENSE.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.