MCP Server for Red Bee Media OTT Platform - MCP Interface for Exposure APIs
Project description
Red Bee MCP Server
Model Context Protocol (MCP) Server for Red Bee Media OTT Platform
Connect to Red Bee Media streaming services directly from any MCP-compatible client like Claude Desktop, Cursor, or other AI tools. This server provides 33 tools for authentication, content search, user management, purchases, and system operations.
๐ Quick Start
Option 1: Using uvx (Recommended)
The easiest way to use Red Bee MCP is with uvx (requires no installation):
# Test the server
uvx redbee-mcp --help
Option 2: Using pip
pip install redbee-mcp
๐ Configuration
For Claude Desktop
Add to your Claude Desktop MCP configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"redbee-mcp": {
"command": "uvx",
"args": ["redbee-mcp"],
"env": {
"REDBEE_CUSTOMER": "CUSTOMER_NAME",
"REDBEE_BUSINESS_UNIT": "BUSINESS_UNIT_NAME"
}
}
}
}
For Cursor
Add to your Cursor MCP settings:
{
"mcpServers": {
"redbee-mcp": {
"command": "uvx",
"args": ["redbee-mcp"],
"env": {
"REDBEE_CUSTOMER": "CUSTOMER_NAME",
"REDBEE_BUSINESS_UNIT": "BUSINESS_UNIT_NAME"
}
}
}
}
Alternative: If you installed with pip
{
"mcpServers": {
"redbee-mcp": {
"command": "redbee-mcp",
"env": {
"REDBEE_CUSTOMER": "CUSTOMER_NAME",
"REDBEE_BUSINESS_UNIT": "BUSINESS_UNIT_NAME"
}
}
}
}
๐ง Environment Variables
| Variable | Required | Description | Example |
|---|---|---|---|
REDBEE_CUSTOMER |
โ Yes | Red Bee customer identifier | CUSTOMER_NAME |
REDBEE_BUSINESS_UNIT |
โ Yes | Red Bee business unit | BUSINESS_UNIT_NAME |
REDBEE_EXPOSURE_BASE_URL |
โ No | API base URL | https://exposure.api.redbee.live |
REDBEE_USERNAME |
โ No | Username for authentication | user@example.com |
REDBEE_PASSWORD |
โ No | Password for authentication | password123 |
REDBEE_SESSION_TOKEN |
โ No | Existing session token | eyJhbGciOiJIUzI1... |
REDBEE_DEVICE_ID |
โ No | Device identifier | web-browser-123 |
REDBEE_CONFIG_ID |
โ No | Configuration ID | sandwich |
REDBEE_TIMEOUT |
โ No | Request timeout in seconds | 30 |
Example with authentication
{
"mcpServers": {
"redbee-mcp": {
"command": "uvx",
"args": ["redbee-mcp"],
"env": {
"REDBEE_CUSTOMER": "YOUR_CUSTOMER_NAME",
"REDBEE_BUSINESS_UNIT": "YOUR_BUSINESS_UNIT_NAME",
"REDBEE_USERNAME": "your_username",
"REDBEE_PASSWORD": "your_password"
}
}
}
}
๐ ๏ธ Available Tools (33 total)
๐ Authentication (4 tools)
login_user- Authenticate with username/passwordcreate_anonymous_session- Create anonymous sessionvalidate_session_token- Validate existing sessionlogout_user- Logout and invalidate session
๐บ Content Management (9 tools)
search_content- Search for movies, TV shows, documentariesget_asset_details- Get detailed asset informationget_public_asset_details- Get public asset details (no auth)get_playback_info- Get streaming URLs and playback infosearch_assets_autocomplete- Autocomplete search suggestionsget_epg_for_channel- Get Electronic Program Guideget_episodes_for_season- Get all episodes in a seasonget_assets_by_tag- Get assets by tag typelist_assets- List assets with filters
๐ค User Management (6 tools)
signup_user- Create new user accountchange_user_password- Change user passwordget_user_profiles- Get user profilesadd_user_profile- Add new user profileselect_user_profile- Select active profileget_user_preferences- Get user preferencesset_user_preferences- Set user preferences
๐ณ Purchases & Transactions (7 tools)
get_account_purchases- Get user purchasesget_account_transactions- Get transaction historyget_offerings- Get available product offeringspurchase_product_offering- Purchase a productcancel_purchase_subscription- Cancel subscriptionget_stored_payment_methods- Get saved payment methodsadd_payment_method- Add new payment method
โ๏ธ System Operations (7 tools)
get_system_config- Get platform configurationget_system_time- Get server timeget_user_location- Get user location by IPget_active_channels- Get active TV channelsget_user_devices- Get registered devicesdelete_user_device- Delete a device
๐งช Testing
Test the server locally
# Using uvx
uvx redbee-mcp
# Using pip installation
redbee-mcp
# With environment variables
REDBEE_CUSTOMER=CUSTOMER_NAME REDBEE_BUSINESS_UNIT=BUSINESS_UNIT_NAME uvx redbee-mcp
Test MCP protocol manually
# Initialize and list tools
echo '{"jsonrpc": "2.0", "id": 1, "method": "initialize", "params": {"protocolVersion": "2024-11-05", "capabilities": {"roots": {"listChanged": true}}, "clientInfo": {"name": "test", "version": "1.0.0"}}}
{"jsonrpc": "2.0", "method": "notifications/initialized"}
{"jsonrpc": "2.0", "id": 2, "method": "tools/list", "params": {}}' | uvx redbee-mcp
๐ Usage Examples
Search for content
Ask your AI assistant:
"Search for French documentaries about nature"
The assistant will use the search_content tool with appropriate parameters.
Get streaming information
"Get the playback URL for asset ID 12345"
The assistant will use get_playback_info to retrieve streaming details.
Manage user profiles
"Show me all user profiles and create a new one called 'Kids'"
The assistant will use get_user_profiles and add_user_profile.
๐ Development
Local development
git clone https://github.com/tamsibesson/redbee-mcp.git
cd redbee-mcp
pip install -e .
redbee-mcp
Run tests
# Test MCP protocol
python -c "
import asyncio
from src.redbee_mcp.server import get_available_tools
print(f'Available tools: {len(asyncio.run(get_available_tools()))}')
"
Project structure
redbee-mcp/
โโโ src/redbee_mcp/
โ โโโ __init__.py
โ โโโ __main__.py # Entry point
โ โโโ server.py # MCP server implementation
โ โโโ client.py # Red Bee API client
โ โโโ models.py # Data models
โ โโโ tools/ # MCP tools
โ โโโ auth.py # Authentication tools
โ โโโ content.py # Content management tools
โ โโโ user_management.py # User tools
โ โโโ purchases.py # Purchase tools
โ โโโ system.py # System tools
โโโ pyproject.toml # Package configuration
โโโ README.md
๐ค Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
๐ License
MIT License - see LICENSE file for details.
๐ Links
- PyPI Package: https://pypi.org/project/redbee-mcp/
- Red Bee Media: https://www.redbeemedia.com/
- Model Context Protocol: https://modelcontextprotocol.io/
- Exposure API Documentation: https://exposure.api.redbee.live/docs
๐ Support
For issues and questions:
- Create an issue on GitHub
- Check the Red Bee Media documentation
- Review the MCP specification
Made with โค๏ธ for the Red Bee Media community
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file redbee_mcp-1.0.4.tar.gz.
File metadata
- Download URL: redbee_mcp-1.0.4.tar.gz
- Upload date:
- Size: 26.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7197b8157a7c816edd659e5c6cc2ead4031ab3e1743cdd6d6e6b193225c03457
|
|
| MD5 |
c62d2e439659e7e309cd48a769335f31
|
|
| BLAKE2b-256 |
59c83829fc0a986608616c586acb3a879eaa48c8773afe97ae53ac2406a21825
|
File details
Details for the file redbee_mcp-1.0.4-py3-none-any.whl.
File metadata
- Download URL: redbee_mcp-1.0.4-py3-none-any.whl
- Upload date:
- Size: 29.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1b2483c6594ef067549582263a4b3fbba9f6a12e4a20ced9b2eb61fdde646f3
|
|
| MD5 |
8e4fedda01a238f06ec44bf745179aad
|
|
| BLAKE2b-256 |
226929b6cdd8df1b055b186d9e198e13222208c299f1c4f2738014abab3c095a
|