Recording Scope output with the MCP server
Scope exposes recording controls through its MCP (Model Context Protocol) server, so you can start, stop, and download recordings without touching the browser. This is useful for batch workflows, CI pipelines, or automating Scope from an AI assistant like Claude.Prerequisites
- Scope running in server mode (or with the MCP server enabled)
- An MCP client configured to connect to Scope’s MCP endpoint
See the
.mcp.json file in the Scope repository root for the default endpoint configuration. Make sure your MCP client points to the same address.Available MCP tools
start_recording
Starts capturing Scope’s output to an MP4 file. Recording happens headlessly via the HeadlessRecorder, so no active WebRTC session is required.
stop_recording
Stops the active headless recording session.
download_recording
Returns the recorded MP4 file content (base64-encoded) or a download URL.
Output format is MP4 (H.264), encoded using PyAV. The frame rate matches Scope’s inference throughput rather than a fixed FPS target.
connect_to_cloud
Connect Scope to a remote cloud inference backend (e.g. Livepeer).
disconnect_from_cloud
Disconnect from the active cloud backend.
get_cloud_status
Returns the current cloud connection status.
REST API equivalent
The same recording endpoints are available over HTTP if you prefer to usecurl or a script.
Replace
<port> with your Scope server’s port. Check your server startup logs for the actual port number.Example: Automate a timed recording
Using the Scope MCP server from Claude Desktop or another MCP client:Connect to the cloud (optional)
If you want remote inference, call
connect_to_cloud with your API key and user ID.Troubleshooting
Recording returns an empty file
Recording returns an empty file
Make sure a pipeline is actively streaming before calling
start_recording. The recorder captures inference output, so there must be frames being generated.MCP tools are not available
MCP tools are not available
Verify that the MCP server is enabled in your Scope configuration. Check the
.mcp.json file in the repository root for the correct endpoint configuration.Cannot connect to cloud
Cannot connect to cloud
Double-check your API key and user ID. Make sure your machine has internet access and can reach the Livepeer backend.
See also
Remote Inference
Run Scope pipelines on cloud-hosted GPUs without local hardware
Reporting Issues
Use logs and the built-in bug reporter if something goes wrong