Lenx MCP Server
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-mcpConfiguration
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
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ThinkCol/lenx-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server