This document will guide you through setting up and running the Tasker MCP integration, including instructions for installing dependencies, preparing servers, and updating tasks.
- Import
dist/mcp_server.prj.xmlinto your Tasker app. - After importing, run the
MCP generate_api_keytask to generate an API key for secure access.
CLI Server:
- From the
dist/folder, select the correct CLI server binary for your device's architecture, such astasker-mcp-server-cli-aarch64. - Copy both the binary and the
toolDescriptions.jsonfile to your device (phone or PC). - Rename the binary to
mcp-serverafter copying.
Example:
Using scp:
scp dist/tasker-mcp-server-cli-aarch64 user@phone_ip:/data/data/com.termux/files/home/mcp-serverUsing adb push:
adb push dist/tasker-mcp-server-cli-aarch64 /data/data/com.termux/files/home/mcp-server- Run the server in SSE mode with:
./mcp-server --tools /path/to/toolDescriptions.json --tasker-api-key=tk_... --mode sse- Or call it through the stdio transport:
payload='{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "tasker_flash_text", "arguments": { "text": "Hi" } } }'
echo $payload | ./mcp-server --tools /path/to/toolDescriptions.json --tasker-api-key=tk_...The tasker-mcp-server-cli application accepts the following flags: