MCP Server
A Model Context Protocol (MCP) server for interacting with LiveLike's engagement platform. This server enables AI assistants to manage LiveLike programs and interactive widgets through a standardized interface. LiveLike MCP is available as part of NPM package
Key Features
- Program Management: Create, read, update, and delete LiveLike programs
- Interactive Widgets: Manage text quiz, image quiz, text poll, image poll, text prediction, image prediction, emoji slider, text ask, alert, image number prediction, image number prediction follow-up, text prediction follow-up, image prediction follow-up widgets
- Scheduling: Schedule widgets to be published at specific times
- Engagement Tracking: Monitor user interactions and engagement metrics
- Standardized Interface: MCP-compliant API for easy integration with AI assistants
Pre-requisite
- Node.js 20.x or newer
- VS Code, Cursor, Windsurf, Claude Desktop, or any other MCP client
- LiveLike API credentials (client ID and access token)
Installation
Install Node
- We recommend installing node using nvm
- Once
nvm
is installed, use nvm to install latest Node 20.x.x version, set the installed version as current node version and set it as default node version by running below command.
nvm install 20 && nvm use 20 && nvm alias default 20
MCP Client Config
For Windows platform, referserver config issues for command
where PATH
env var is not needed to be set as part of MCP server config
Cursor
- Open Cursor Settings → MCP
- Click Add new global MCP server
- Add an entry for the LiveLike MCP, following the pattern below:
{
"mcpServers": {
"livelike": {
"command": "npx",
"args": ["-y", "@livelike/mcp"],
"env": {
"LIVELIKE_CLIENT_ID": "your_client_id",
"LIVELIKE_ACCESS_TOKEN": "your_access_token",
}
}
}
}
{
"mcpServers": {
"livelike": {
"command": "cmd.exe",
"args": ["/c", "npx", "-y", "@livelike/mcp"],
"env": {
"LIVELIKE_CLIENT_ID": "your_client_id",
"LIVELIKE_ACCESS_TOKEN": "your_access_token",
}
}
}
}
Claude Desktop
- Open Settings → Developer
- Click Edit Config
- Open claude_desktop_config.json
- Add the following configuration:
{
"mcpServers": {
"livelike": {
"command": "npx",
"args": ["-y", "@livelike/mcp"],
"env": {
"LIVELIKE_CLIENT_ID": "your_client_id",
"LIVELIKE_ACCESS_TOKEN": "your_access_token",
}
}
}
}
{
"mcpServers": {
"livelike": {
"command": "cmd.exe",
"args": ["/c", "npx", "-y", "@livelike/mcp"],
"env": {
"LIVELIKE_CLIENT_ID": "your_client_id",
"LIVELIKE_ACCESS_TOKEN": "your_access_token",
}
}
}
}
Windsurf
- from the Windsurf Settings > Cascade > Plugins section.
{
"mcpServers": {
"livelike": {
"command": "npx",
"args": ["-y", "@livelike/mcp"],
"env": {
"LIVELIKE_CLIENT_ID": "your_client_id",
"LIVELIKE_ACCESS_TOKEN": "your_access_token",
}
}
}
}
{
"mcpServers": {
"livelike": {
"command": "cmd.exe",
"args": ["/c", "npx", "-y", "@livelike/mcp"],
"env": {
"LIVELIKE_CLIENT_ID": "your_client_id",
"LIVELIKE_ACCESS_TOKEN": "your_access_token",
}
}
}
}
VSCode
- Open User Settings (JSON)
- Add an MCP entry:
{
"servers": {
"livelike": {
"command": "npx",
"args": ["-y", "@livelike/mcp"],
"env": {
"LIVELIKE_CLIENT_ID": "your_client_id",
"LIVELIKE_ACCESS_TOKEN": "your_access_token",
}
}
}
}
{
"servers": {
"livelike": {
"command": "cmd.exe",
"args": ["/c", "npx", "-y", "@livelike/mcp"],
"env": {
"LIVELIKE_CLIENT_ID": "your_client_id",
"LIVELIKE_ACCESS_TOKEN": "your_access_token",
}
}
}
}
Configuration
Environment Variables
Set these environment variables before starting the server:
LIVELIKE_CLIENT_ID=your_client_id
Your LiveLike Client ID
LIVELIKE_ACCESS_TOKEN=your_access_token
Your LiveLike Admin Access Token
Available Tools
Program Management
list_programs
: Retrieve a list of programs with filtering and paginationget_program
: Get details of a specific programcreate_program
: Create a new programupdate_program
: Modify an existing programdelete_program
: Remove a programprogram_action
: Mark a program as started or stopped
Widget Management
list_widgets
: Retrieve a list of widgets with filtering and paginationget_widget
: Get details of a specific widgetdelete_widget
: Remove a widgetschedule_widget
: Schedule a widget to be published at a specific time
Text Quiz Widgets
create_text_quiz_widget
: Create a new text quiz widgetupdate_text_quiz_widget
: Modify an existing text quiz widget
Text Poll Widgets
create_text_poll_widget
: Create a new text poll widgetupdate_text_poll_widget
: Modify an existing text poll widget
Image Quiz Widgets
create_image_quiz_widget
: Create a new image quiz widgetupdate_image_quiz_widget
: Modify an existing image quiz widget
Image Poll Widgets
create_image_poll_widget
: Create a new image poll widgetupdate_image_poll_widget
: Modify an existing image poll widget
Text Prediction Widgets
create_text_prediction_widget
: Create a new text prediction widgetupdate_text_prediction_widget
: Modify an existing text prediction widgetpublish_text_prediction_followup_widget
: Publish text prediction followup widget after updating with correct prediction
Image Number Prediction Widgets
create_image_number_prediction_widget
: Create a new image number prediction widgetupdate_image_number_prediction_widget
: Modify an existing image number prediction widgetpublish_number_prediction_followup_widget
: Publish number prediction followup widget after updating with correct prediction
Troubleshooting
Common Issues
-
for server related issue like npx command not found or node not found
Identify
npx
andNode
binaries pathGet the
npx
path and installed node versionbin
pathwhich npx
eg:
/Users/<user-account-name>/.nvm/versions/node/v20.19.2/bin/npx
- use
/Users/<user-account-name>/.nvm/versions/node/v20.19.2/bin/npx
as mcp server command (referred as<npx_path>
in below mcp client config) - add node bin path
/Users/<user-account-name>/.nvm/versions/node/v20.19.2/bin
toPATH
env var (referred as<node_bin_path>
in below mcp client config) -
"livelike": { "command": "<npx_path>/npx", "args": ["-y", "@livelike/mcp"], "env": { "LIVELIKE_CLIENT_ID": "your_client_id", "LIVELIKE_ACCESS_TOKEN": "your_access_token", "PATH": "<node_bin_path>:/usr/local/bin:/usr/bin:/bin" } }
- use
-
Server Config Issues
- For windows platform, use below config, refer related blog for mode details.
{ "command": "cmd.exe", "args": ["/c", "npx", "-y", "@livelike/mcp"], "env": { "LIVELIKE_CLIENT_ID": "your_client_id", "LIVELIKE_ACCESS_TOKEN": "your_access_token" } }
-
Authentication Errors
- Verify
LIVELIKE_CLIENT_ID
andLIVELIKE_ACCESS_TOKEN
are correct - Ensure the credentials have the necessary permissions
- Verify
-
Connection Issues
- Check if the LiveLike API is accessible from your network
Updated about 8 hours ago