@tarslab/action-mcp
v1.0.3
Published
MCP Server for controlling video playback via EMQX
Maintainers
Readme
Action MCP Server
This is an MCP server that controls video playback on client devices via EMQX (MQTT).
Features
- play_video: Sends a command to play a specific video.
- stop_video: Sends a command to stop video playback.
Prerequisites
- Node.js >= 18
- Docker & Docker Compose (for running EMQX locally)
Quick Start with EMQX
Start the EMQX broker:
docker-compose up -dThis will start EMQX with the default credentials
admin/public, which matches the default.envconfiguration.Install dependencies and build:
npm install npm run buildRun the MCP Inspector to test:
npm run inspector
Configuration
- Copy
.envfile (created automatically) and update the values:EMQX_API_URL=http://localhost:18083/api/v5/publish EMQX_APP_ID=admin EMQX_APP_SECRET=public
Installation
npm install
npm run buildUsage
Running the Server
npm startIntegration with Claude Desktop or other MCP Clients
Add the following configuration to your MCP client settings:
{
"mcpServers": {
"video-control": {
"command": "node",
"args": ["/path/to/action-mcp/dist/index.js"],
"env": {
"EMQX_API_URL": "http://localhost:18083/api/v5/publish",
"EMQX_APP_ID": "admin",
"EMQX_APP_SECRET": "public"
}
}
}
}Development
npm run dev