Restream MCP Server

Restream MCP Server

Enables management of multi-platform streaming through the Restream API, allowing control of streaming channels, stream settings, and access to analytics across platforms like YouTube, Twitch, and Facebook through natural language.

Category
访问服务器

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

License

MIT

Contributing

Contributions are welcome! Please feel free to submit issues or pull requests.

Support

For issues with the MCP server, please file an issue on GitHub.

For Restream API questions, visit the Restream Developer Portal.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选