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.
- 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
Get the authenticated user profile information including email, display name, and account details.
List all connected streaming channels/platforms (YouTube, Twitch, Facebook, etc.) with their connection status.
Get detailed information about a specific channel by ID.
Parameters:
channelId(string, required): The ID of the channel to retrieve
Enable or disable a specific streaming channel.
Parameters:
channelId(string, required): The ID of the channel to updateenabled(boolean, required): Whether to enable (true) or disable (false) the channel
Get information about the current/active stream including title, status, RTMP URL, and viewer count.
Update settings for the current stream such as title, description, or privacy settings.
Parameters:
title(string, optional): The stream titledescription(string, optional): The stream descriptionprivacy(string, optional): The stream privacy setting (public, private, unlisted)
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
Start a new stream with optional settings.
Parameters:
title(string, optional): The stream titledescription(string, optional): The stream descriptionprivacy(string, optional): The stream privacy setting (public, private, unlisted)
Stop the current active stream.
- Node.js 18 or higher
- npm or yarn
- Restream API credentials (Client ID and Client Secret)
npm install -g @shaktech786/restream-mcp-serverOr install locally in your project:
npm install @shaktech786/restream-mcp-server- Clone this repository:
git clone https://github.com/shaktech786/restream-mcp-server.git
cd restream-mcp-server- Install dependencies:
npm install- Build the server:
npm run buildConfigure 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- Go to Restream Developer Portal
- Create a new application or use an existing one
- Copy your Client ID and Client Secret
- Add them to your
.envfile
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
{
"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"
}
}
}
}{
"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.
npm run devThis will watch for changes and rebuild automatically.
You can test the server locally using the MCP Inspector:
npx @modelcontextprotocol/inspector node dist/index.jsThis server uses the Restream API v2. The main endpoints include:
POST /oauth/token- AuthenticationGET /user/profile- Get user profileGET /user/channels- List channelsGET /user/channels/:id- Get channel detailsPATCH /user/channels/:id- Update channelGET /user/stream- Get current streamPATCH /user/stream- Update stream settingsPOST /user/stream/start- Start streamPOST /user/stream/stop- Stop streamGET /user/analytics- Get analytics
For complete API documentation, visit Restream Developer Portal.
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'"
If you encounter authentication errors:
- Verify your Client ID and Client Secret are correct
- Ensure the credentials have the necessary permissions
- Check that the API base URL is correct
If the server fails to connect:
- Make sure all dependencies are installed (
npm install) - Rebuild the server (
npm run build) - Check that Node.js version is 18 or higher
- Verify the path in Claude Desktop config is correct
- Never commit your
.envfile to version control - Keep your Client ID and Client Secret secure
- Regularly rotate your API credentials
- The
.gitignorefile is configured to exclude.env
MIT
Contributions are welcome! Please feel free to submit issues or pull requests.
For issues with the MCP server, please file an issue on GitHub.
For Restream API questions, visit the Restream Developer Portal.