Lenx MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Lenx MCP Server list my monitoring tasks"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Lenx MCP Server
MCP server bridging AI agents to the Lenx.ai social media monitoring API.
Installation
Run directly via npx (no local installation required):
npx @fastaai/lenx-mcpOr install globally:
npm install -g @fastaai/lenx-mcp
lenx-mcpRelated MCP server: Publora MVP MCP Server
Configuration
The server requires two environment variables:
Variable | Required | Description |
| Yes | Your Lenx API key |
| Yes | Your Lenx user ID |
| No | API base URL (default: |
Claude Code
Add to your Claude Code MCP configuration:
{
"mcpServers": {
"lenx": {
"command": "npx",
"args": ["-y", "@fastaai/lenx-mcp"],
"env": {
"LENX_API_KEY": "your-api-key",
"LENX_USER_ID": "your-user-id",
"LENX_BASE_URL": "https://open.lenx.ai"
}
}
}
}OpenCode
Add to your ~/.config/opencode/opencode.json:
{
"mcpServers": {
"lenx": {
"command": "npx",
"args": ["-y", "@fastaai/lenx-mcp"],
"env": {
"LENX_API_KEY": "your-api-key",
"LENX_USER_ID": "your-user-id"
}
}
}
}Available Tools
Tool | Description |
| List monitoring tasks with pagination |
| Get task details by ID |
| Create a live or adhoc task via a guided confirmation wizard (requires elicitation) |
| Update a task's name, search query, or prompts via a guided confirmation wizard (requires elicitation) |
| Delete a task after explicit confirmation (requires elicitation) |
| Get paginated post data for a task |
| Request CSV/XLSX export via email |
| Trigger an async data fetch for a task |
Note:
lenx_create_task,lenx_update_task, andlenx_delete_taskare interactive wizards that collect their input through MCP elicitation forms and require explicit confirmation before applying changes. The client must support elicitation; these tools will not work otherwise.
Development
# Install dependencies
npm install
# Run tests
npm test
# Build
npm run build
# Watch mode
npm run watchLicense
MIT
Available Tools
7 toolslenx_create_taskA
Create a new monitoring task (live or adhoc). Live tasks run continuously; adhoc tasks require a date_range.
Inputs: task_type (required), task_name (required), language (required), search_query (required), +1 more.
lenx_delete_taskA
Delete a monitoring task. Only the task owner can perform this operation.
Inputs: task_id (required).
lenx_export_task_dataA
Request a CSV or XLSX export of task post data. Results are sent to the specified email address.
Inputs: task_ids (required), unix_start (required), unix_end (required), columns (required), +8 more.
lenx_get_taskA
Retrieve configuration and metadata for a single monitoring task by ID.
Inputs: task_id (required).
lenx_get_task_dataB
Retrieve paginated social media post data for a specific task within a time range.
Inputs: task_id (required), from (required), to (required), size (required), +1 more.
lenx_list_tasksA
List monitoring tasks accessible to the authenticated user, with pagination support.
Inputs: page, size.
lenx_update_taskA
Update an existing task's name and/or search query configuration. At least one field is required.
Inputs: task_id (required), task_name, search_query.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool targets a distinct operation (create, delete, get, list, update, get data, export data) with no overlap. Descriptions clearly differentiate between task metadata and task post data.
All tool names follow the consistent pattern 'lenx_verb_noun' (e.g., lenx_create_task, lenx_list_tasks) using snake_case and clear verbs.
With 7 tools, the server covers essential CRUD operations, data retrieval, and export for monitoring tasks. The count feels well-scoped for a task management tool.
The tool surface provides full CRUD, listing, data retrieval, and export. Minor gaps like toggling task active state or getting export status are absent but do not severely impact core workflow.
Related MCP Connectors
Social media API for AI agents: publish, DMs, comments, Meta ads and leads.
Social media analytics, post insights, and competitor benchmarking for AI agents.
Connect any AI agent to 11+ social platforms: schedule, publish & track posts via hosted MCP.
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).
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with Metricool API for social media metrics, campaign data, and scheduling posts.Apache 2.0
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to create, schedule, and manage social media posts across 10 platforms via a unified API.-
- AlicenseNot gradedqualityDmaintenanceProvides social intelligence tools for AI agents to analyze competitor sentiment, trends, and brand mentions from X/Twitter data.MIT
- AlicenseAqualityDmaintenanceProvides AI agents with unified access to 21 social media platforms and 105 endpoints for retrieving profiles, posts, comments, search results, trending content, and analytics without per-platform authentication.4202 npmMIT