MCP Connector

Manage Restream Streams via Natural Language

MCP server that connects Claude to the Restream API for managing multi-platform streaming channels, controlling live streams, and accessing analytics through

Works with restream

91
Spark score
out of 100
Updated 4 months ago
Version 1.0.0
Models
claudeuniversal

Add to Favorites

Why it matters

Leverage natural language to manage your Restream streaming channels, control live streams, and access performance analytics. This MCP server integrates directly with the Restream API, simplifying complex streaming operations.

Outcomes

What it gets done

01

Manage user profiles and connected streaming channels.

02

Control stream settings, including title, description, and privacy.

03

Start and stop live streams with ease.

04

Retrieve and analyze stream performance data.

Install

Add it to your toolbox

Run in your project directory:

curl -fsSL https://spark.entire.vc/get/vb-restream | bash

Capabilities

Tools your agent gets

get_user_profile

Get authenticated user's profile information, including email, display name, and account data

list_channels

List all connected streaming channels/platforms with their connection status

get_channel

Get detailed information about a specific channel by ID

update_channel_status

Enable or disable a specific streaming channel

get_current_stream

Get information about the current/active stream including title, status, RTMP URL, and viewer count

update_stream_settings

Update current stream settings such as title, description, or privacy settings

get_stream_analytics

Get analytics and statistics for streams including viewer count and engagement metrics

start_stream

Start a new stream with additional settings

stop_stream

Stop the current active stream

Overview

Restream MCP Server

Restream MCP Server is a Model Context Protocol connector that enables Claude and other MCP clients to interact with the Restream API through natural language commands. It provides nine tools for managing streaming workflows: user profile retrieval, channel management across platforms like YouTube, Twitch, and Facebook, stream control (start/stop/update), and analytics access. Authentication uses OAuth client credentials for secure API access. Use this server when you need to manage multi-platform streaming operations through conversational AI-asking Claude to "list all my connected streaming channels," "update my stream title to 'Live Coding Session'," or "show me my streaming analytics." It enables control of Restream settings without switching contexts or navigating web dashboards. **When NOT to use:** If you need real-time video processing or encoding capabilities (this server only manages stream metadata and channel settings via API). Also avoid if you don't have Restream API credentials or aren't using platforms supported by

What it does

Restream MCP Server is a Model Context Protocol connector that enables Claude and other MCP clients to interact with the Restream API through natural language commands. It provides nine tools for managing streaming workflows: user profile retrieval, channel management across platforms like YouTube, Twitch, and Facebook, stream control (start/stop/update), and analytics access. Authentication uses OAuth client credentials for secure API access.

When to use - and when NOT to

Use this server when you need to manage multi-platform streaming operations through conversational AI-asking Claude to "list all my connected streaming channels," "update my stream title to 'Live Coding Session'," or "show me my streaming analytics." It enables control of Restream settings without switching contexts or navigating web dashboards.

When NOT to use: If you need real-time video processing or encoding capabilities (this server only manages stream metadata and channel settings via API). Also avoid if you don't have Restream API credentials or aren't using platforms supported by Restream's service.

Inputs and outputs

Inputs: You provide Restream API credentials (Client ID and Client Secret from the Restream Developer Portal), plus natural language commands through Claude. Tool-specific inputs include channel IDs, stream titles, descriptions, privacy settings (public/private/unlisted), and optional stream IDs for analytics queries.

Outputs: The server returns structured data including user profile information (email, display name, account details), channel lists with connection status, current stream details (title, status, RTMP URL, viewer count), analytics metrics (viewer counts, engagement data, performance statistics), and confirmation responses for control operations.

Integrations

This server integrates with:

  • Restream API v2: Core integration for all streaming operations, using endpoints for OAuth authentication, user profile management, channel control, stream lifecycle, and analytics retrieval
  • Claude Desktop: Primary MCP client, configured via claude_desktop_config.json on Windows (%APPDATA%\Claude\) or macOS (~/Library/Application Support/Claude/)
  • Streaming platforms: Manages channels on YouTube, Twitch, Facebook, and other platforms connected through your Restream account
  • MCP Inspector: Development tool for local testing using npx @modelcontextprotocol/inspector

Installation example:

npm install -g @shaktech786/restream-mcp-server

Claude Desktop configuration:

{
  "mcpServers": {
    "restream": {
      "command": "npx",
      "args": ["-y", "@shaktech786/restream-mcp-server"],
      "env": {
        "RESTREAM_CLIENT_ID": "your_client_id_here",
        "RESTREAM_CLIENT_SECRET": "your_client_secret_here",
        "RESTREAM_API_BASE_URL": "https://api.restream.io/v2"
      }
    }
  }
}

Who it's for

This server is for users who need to manage Restream streaming operations through MCP clients like Claude. It requires Node.js 18 or higher, Restream API credentials (Client ID and Client Secret), and configuration through environment variables or Claude Desktop config files.

Source README

Restream MCP Server

A Model Context Protocol (MCP) server that provides tools for interacting with the Restream API. This server enables Claude and other MCP clients to manage streaming channels, control streams, and access analytics through natural language.

Features

  • User Profile Management: Get authenticated user information
  • Channel Management: List, view, enable/disable streaming channels
  • Stream Control: Start, stop, and update stream settings
  • Analytics: Access streaming analytics and performance data
  • OAuth Authentication: Secure API access using client credentials

Available Tools

1. get_user_profile

Get the authenticated user profile information including email, display name, and account details.

2. list_channels

List all connected streaming channels/platforms (YouTube, Twitch, Facebook, etc.) with their connection status.

3. get_channel

Get detailed information about a specific channel by ID.

Parameters:

  • channelId (string, required): The ID of the channel to retrieve

4. update_channel_status

Enable or disable a specific streaming channel.

Parameters:

  • channelId (string, required): The ID of the channel to update
  • enabled (boolean, required): Whether to enable (true) or disable (false) the channel

5. get_current_stream

Get information about the current/active stream including title, status, RTMP URL, and viewer count.

6. update_stream_settings

Update settings for the current stream such as title, description, or privacy settings.

Parameters:

  • title (string, optional): The stream title
  • description (string, optional): The stream description
  • privacy (string, optional): The stream privacy setting (public, private, unlisted)

7. get_stream_analytics

Get analytics and statistics for streams including viewer counts, engagement metrics, and performance data.

Parameters:

  • streamId (string, optional): Optional stream ID to get analytics for a specific stream

8. start_stream

Start a new stream with optional settings.

Parameters:

  • title (string, optional): The stream title
  • description (string, optional): The stream description
  • privacy (string, optional): The stream privacy setting (public, private, unlisted)

9. stop_stream

Stop the current active stream.

Installation

Prerequisites

  • Node.js 18 or higher
  • npm or yarn
  • Restream API credentials (Client ID and Client Secret)

Option 1: Install from npm (Recommended)

npm install -g @shaktech786/restream-mcp-server

Or install locally in your project:

npm install @shaktech786/restream-mcp-server

Option 2: Install from Source

  1. Clone this repository:
git clone https://github.com/shaktech786/restream-mcp-server.git
cd restream-mcp-server
  1. Install dependencies:
npm install
  1. Build the server:
npm run build

Configuration

Configure your Restream API credentials either through environment variables or in your Claude Desktop config:

Environment Variables (.env file):

RESTREAM_CLIENT_ID=your_client_id_here
RESTREAM_CLIENT_SECRET=your_client_secret_here
RESTREAM_API_BASE_URL=https://api.restream.io/v2

Getting Restream API Credentials

  1. Go to Restream Developer Portal
  2. Create a new application or use an existing one
  3. Copy your Client ID and Client Secret
  4. Add them to your .env file

Usage with Claude Desktop

To use this MCP server with Claude Desktop, add it to your Claude Desktop configuration file:

Windows: %APPDATA%\Claude\claude_desktop_config.json

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

If installed via npm:

{
  "mcpServers": {
    "restream": {
      "command": "npx",
      "args": ["-y", "@shaktech786/restream-mcp-server"],
      "env": {
        "RESTREAM_CLIENT_ID": "your_client_id_here",
        "RESTREAM_CLIENT_SECRET": "your_client_secret_here",
        "RESTREAM_API_BASE_URL": "https://api.restream.io/v2"
      }
    }
  }
}

If installed from source:

{
  "mcpServers": {
    "restream": {
      "command": "node",
      "args": ["/absolute/path/to/restream-mcp-server/dist/index.js"],
      "env": {
        "RESTREAM_CLIENT_ID": "your_client_id_here",
        "RESTREAM_CLIENT_SECRET": "your_client_secret_here",
        "RESTREAM_API_BASE_URL": "https://api.restream.io/v2"
      }
    }
  }
}

Restart Claude Desktop after saving the configuration.

Development

Running in Development Mode

npm run dev

This will watch for changes and rebuild automatically.

Testing the Server

You can test the server locally using the MCP Inspector:

npx @modelcontextprotocol/inspector node dist/index.js

API Endpoints Reference

This server uses the Restream API v2. The main endpoints include:

  • POST /oauth/token - Authentication
  • GET /user/profile - Get user profile
  • GET /user/channels - List channels
  • GET /user/channels/:id - Get channel details
  • PATCH /user/channels/:id - Update channel
  • GET /user/stream - Get current stream
  • PATCH /user/stream - Update stream settings
  • POST /user/stream/start - Start stream
  • POST /user/stream/stop - Stop stream
  • GET /user/analytics - Get analytics

For complete API documentation, visit Restream Developer Portal.

Example Usage with Claude

Once configured, you can ask Claude to:

  • "List all my connected streaming channels"
  • "Get my current stream information"
  • "Update my stream title to 'Live Coding Session'"
  • "Enable my YouTube channel"
  • "Show me my streaming analytics"
  • "Start a new stream with title 'Gaming Night'"

Troubleshooting

Authentication Errors

If you encounter authentication errors:

  1. Verify your Client ID and Client Secret are correct
  2. Ensure the credentials have the necessary permissions
  3. Check that the API base URL is correct

Connection Issues

If the server fails to connect:

  1. Make sure all dependencies are installed (npm install)
  2. Rebuild the server (npm run build)
  3. Check that Node.js version is 18 or higher
  4. Verify the path in Claude Desktop config is correct

Security Notes

  • Never commit your .env file to version control
  • Keep your Client ID and Client Secret secure
  • Regularly rotate your API credentials
  • The .gitignore file is configured to exclude .env

FAQ

Common questions

Discussion

Questions & comments · 0

Sign In Sign in to leave a comment.