Red Bee MCP Server
Model Context Protocol (MCP) Server for Red Bee Media OTT Platform
Connect to Red Bee Media streaming services from MCP-compatible clients like Claude Desktop, or integrate via HTTP/SSE for web applications. This server provides 33 tools for authentication, content search, user management, purchases, and system operations.
๐ New: HTTP/SSE Mode
Version 1.4.0 now supports multiple operating modes:
Stdio Mode (original): For local AI agents like Claude Desktop
HTTP Mode: REST API with JSON-RPC for web integration
SSE Mode: Server-Sent Events for real-time communication
Both Modes: Run stdio and HTTP simultaneously
๐ Quick Start
Option 1: Using uvx (Recommended)
Option 2: Using pip
๐ Configuration
For Claude Desktop (Stdio Mode)
Add to your Claude Desktop MCP configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
For Web Applications (HTTP Mode)
Start the HTTP server:
The server will be available at http://localhost:8000 with these endpoints:
Method | URL | Description |
GET |
| API information |
GET |
| Server health check |
POST |
| JSON-RPC MCP requests |
GET |
| Server-Sent Events stream |
๐ HTTP/SSE API Usage
Example HTTP Requests
Health Check
List Available Tools
Search Content
Web Integration Example
Server-Sent Events
Connect to real-time event stream:
๐ง Environment Variables
Variable | Required | Description | Example |
| โ Yes | Red Bee customer identifier |
|
| โ Yes | Red Bee business unit |
|
| โ No | API base URL |
|
| โ No | Username for authentication |
|
| โ No | Password for authentication |
|
| โ No | Existing session token |
|
| โ No | Device identifier |
|
| โ No | Configuration ID |
|
| โ No | Request timeout in seconds |
|
Available Tools
๐ Authentication
login_user- Authenticate with username/passwordcreate_anonymous_session- Create anonymous sessionvalidate_session_token- Validate existing sessionlogout_user- Logout and invalidate session
๐บ Content Management
get_public_asset_details- Get asset details via public endpoint (no auth)search_content_v2- Search V2: free text query in asset fields (including descriptions)get_asset_details- Get detailed asset informationget_playback_info- Get streaming URLs and playback infosearch_assets_autocomplete- Autocomplete search suggestionsget_epg_for_channel- Get Electronic Program Guide for a channelget_episodes_for_season- Get all episodes in a seasonget_assets_by_tag- Get assets by tag type (e.g., origin)list_assets- List assets with advanced filterssearch_multi_v3- Multi-search for assets, tags, and participantsget_asset_collection_entries- Get collection entries for an asset collectionget_asset_thumbnail- Get thumbnail URL for an asset at a specific timeget_seasons_for_series- Get all seasons for a TV series
๐ค User Management
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
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
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 HTTP Server
Test Stdio Mode
Test MCP Protocol Manually
๐๏ธ Architecture
Multi-Mode Design
The server is architected with clean separation of concerns:
McpHandler: Core business logic shared between all modes
Stdio Server: Traditional MCP stdio interface for AI agents
HTTP Server: FastAPI-based REST/SSE interface for web apps
CLI: Multi-mode command line interface
File Structure
๐ Usage Examples
Search for French Movies (Stdio Mode)
Ask your AI assistant:
"Search for French documentaries about nature"
Search for Content (HTTP Mode)
Get TV Show Information
User Authentication
๐ Production Deployment
Docker
Environment Setup
Systemd Service
๐ Security Considerations
CORS Configuration
For production HTTP deployments, configure CORS properly in http_server.py:
๐ API Reference
The Red Bee MCP Server provides access to Red Bee Media Exposure API through:
MCP Tools: For AI agents and local applications
HTTP/JSON-RPC: For web applications and remote integration
Server-Sent Events: For real-time updates
Each tool includes:
Input validation with required and optional parameters
Comprehensive error handling and messages
Type safety for all inputs and outputs
Detailed documentation and examples
๐ ๏ธ Development
Requirements
Python 3.8+
MCP SDK
aiohttp for HTTP requests
pydantic for data validation
FastAPI and uvicorn for HTTP mode
Local Development
๐ License
MIT License - see LICENSE file for details.
๐ Support
For issues and questions:
GitHub Issues: https://github.com/tamsibesson/redbee-mcp/issues
Red Bee Media Documentation: https://www.redbeemedia.com/