MCP Server for Red Bee Media OTT Platform - MCP Interface for Exposure APIs
Project description
Red Bee MCP
Model Context Protocol (MCP) client for Red Bee Media OTT Platform. Connect to Red Bee streaming services from any MCP client like Cursor.
๐ Quick Start
For End Users (Cursor, etc.)
1. Install the package
pip install redbee-mcp
2. Configure in Cursor
Add to your mcp.json:
{
"mcpServers": {
"redbee-mcp": {
"command": "redbee-mcp",
"args": ["--stdio"],
"env": {
"REDBEE_SERVER_URL": "http://51.20.4.56:8000"
}
}
}
}
3. Restart Cursor
You should see Red Bee MCP tools available!
That's it! Just like Figma MCP but for Red Bee Media.
๐ ๏ธ For Developers
Deploy the Server (AWS EC2)
git clone https://github.com/your-username/redbee-MCP.git
cd redbee-MCP
./start-aws.sh
Server will be available at http://your-ec2:8000
Publish the Client Package
# Build and publish to PyPI
pip install build twine
python -m build
twine upload dist/*
๐ Usage
Available Commands
redbee-mcp --help # Show help
redbee-mcp --test # Test server connection
redbee-mcp --stdio # Start MCP client (for Cursor)
redbee-mcp --server-url http://server:8000 --stdio # Custom server URL
MCP Tools Available
- Authentication: Login, anonymous sessions, logout
- Content Search: Search movies, TV shows, documentaries
- Asset Details: Get detailed information about content
- Playback: Get streaming URLs and playback information
- User Management: Profiles, preferences, account management
- Purchases: View subscriptions, transactions, payment methods
- System: Configuration, time, location, devices
Configuration Options
Custom Server URL in mcp.json
{
"redbee-mcp": {
"command": "redbee-mcp",
"args": ["--server-url", "http://your-server:8000", "--stdio"]
}
}
Via environment variable
export REDBEE_SERVER_URL=http://your-server:8000
redbee-mcp --stdio
Via command line
redbee-mcp --server-url http://your-server:8000 --stdio
Via mcp.json environment
{
"redbee-mcp": {
"command": "redbee-mcp",
"args": ["--stdio"],
"env": {
"REDBEE_SERVER_URL": "http://your-server:8000"
}
}
}
Test Connection
redbee-mcp --test
๐๏ธ Architecture
Any Machine (Cursor)
โ MCP stdio
redbee-mcp CLI (pip package)
โ HTTP API
Red Bee MCP Server (AWS EC2:8000)
โ HTTP API
Red Bee Media OTT Platform
๐ Comparison with Other MCPs
| Feature | Figma MCP | Red Bee MCP |
|---|---|---|
| Install | npm install figma-developer-mcp |
pip install redbee-mcp |
| Command | npx figma-developer-mcp |
redbee-mcp |
| Config | Pass API key as arg | Pass server URL via env |
| Transport | --stdio |
--stdio |
| Client | Node.js | Python |
Same simplicity, same workflow! ๐ฏ
๐ Team Deployment
For Admins
- Deploy server once on AWS EC2 using
./start-aws.sh - Share server URL with team (e.g.,
http://51.20.4.56:8000)
For Team Members
Everyone in your team just needs to:
- Install:
pip install redbee-mcp - Configure: Add the same server URL in
mcp.json - Use: Restart Cursor and enjoy!
The package automatically connects to your deployed Red Bee MCP server on AWS.
๐ Development
Local Development
For development from source:
git clone https://github.com/your-username/redbee-MCP.git
cd redbee-MCP
pip install -e . # Install in development mode
redbee-mcp --test # Test connection
redbee-mcp --help # Show all available commands
Project Structure
redbee-MCP/
โโโ src/redbee_mcp/
โ โโโ cli.py # CLI entry point (like figma-developer-mcp)
โ โโโ server.py # HTTP server (for AWS deployment)
โ โโโ client.py # Red Bee API client
โ โโโ models.py # Data models
โ โโโ tools/ # MCP tools implementation
โโโ start-aws.sh # AWS deployment script
โโโ deploy-aws.md # AWS deployment guide
โโโ pyproject.toml # Package configuration
๐ License
MIT License - see LICENSE file for details.
๐ Related
- Model Context Protocol
- Red Bee Media
- Figma MCP (inspiration)
Red Bee MCP: Bringing streaming content to your AI workflow ๐ฌ
Red Bee MCP Server
A Model Context Protocol (MCP) server for Red Bee Media OTT Platform API, enabling easy integration of Red Bee streaming services into AI applications.
๐ Installation and Usage
Installation via uvx (recommended)
uvx redbee-mcp --customer=YOUR_CUSTOMER --business-unit=YOUR_BUSINESS_UNIT
Configuration in Cursor/Claude Desktop
Add this configuration to your mcp.json file:
{
"mcpServers": {
"Red Bee Media": {
"command": "uvx",
"args": [
"redbee-mcp",
"--customer=YOUR_CUSTOMER",
"--business-unit=YOUR_BUSINESS_UNIT"
],
"env": {
"REDBEE_USERNAME": "your_optional_username",
"REDBEE_SESSION_TOKEN": "your_optional_token"
}
}
}
}
Local installation for development
pip install redbee-mcp
๐ Configuration
Required parameters
--customer: Red Bee Media customer identifier--business-unit: Business unit identifier
Optional parameters
--exposure-base-url: API base URL (default:https://exposure.api.redbee.live)--username: Username for authentication--session-token: Existing session token--device-id: Custom device identifier
Environment variables
All options can be configured via environment variables:
export REDBEE_CUSTOMER="mycompany"
export REDBEE_BUSINESS_UNIT="vod"
export REDBEE_USERNAME="my_username"
export REDBEE_SESSION_TOKEN="my_token"
๐ ๏ธ Available Tools
๐ Authentication
login_user- Login with username/passwordcreate_anonymous_session- Anonymous sessionvalidate_session_token- Token validationlogout_user- Logout
๐บ Content Management
search_content- Search multimedia contentget_asset_details- Asset detailsget_playback_info- Playback informationsearch_assets_autocomplete- Autocompleteget_epg_for_channel- TV guideget_episodes_for_season- Season episodesget_public_asset_details- Public detailsget_assets_by_tag- Assets by taglist_assets- Asset listing
๐ฅ User Management
signup_user- User registrationchange_user_password- Password changeget_user_profiles- User profilesadd_user_profile- Add profileselect_user_profile- Select profileget_user_preferences- User preferencesset_user_preferences- Update preferences
๐ณ Purchases and Transactions
get_account_purchases- Account purchasesget_account_transactions- Transactionsget_offerings- Available offeringspurchase_product_offering- Purchase offeringcancel_purchase_subscription- Cancel subscriptionget_stored_payment_methods- Payment methodsadd_payment_method- Add payment method
โ๏ธ System
get_system_config- System configurationget_system_time- System timeget_user_location- User locationget_active_channels- Active channelsget_user_devices- User devicesdelete_user_device- Delete device
๐ฏ Usage Examples
Content Search
# Via MCP in your AI application
"Search for all available action movies"
Authentication and User Management
# Create anonymous session
"Create an anonymous session for Red Bee"
# User login
"Log in the user with their credentials"
TV Guide and Programming
# Get TV guide
"Show TV guide for the main channel"
๐ง Development
Development installation
git clone https://github.com/tamsibesson/redbee-mcp.git
cd redbee-mcp
pip install -e ".[dev]"
Tests
pytest
Code formatting
black src/
isort src/
Type checking
mypy src/
๐ Documentation
๐ค Contributing
Contributions are welcome! Please:
- Fork the project
- Create a feature branch
- Commit your changes
- Push to the branch
- Open a Pull Request
๐ License
Distributed under MIT License. See LICENSE for more information.
๐ Acknowledgments
- Red Bee Media for their excellent API
- Anthropic for the MCP protocol
- The Python community for amazing tools
Red Bee MCP Server - Connect your streaming services to AI ๐ฌโจ
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.0.tar.gz.
File metadata
- Download URL: redbee_mcp-1.0.0.tar.gz
- Upload date:
- Size: 28.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f3a74010d9f39205e5b2cd1b60c340b5e8dd71e1d41ac10dfcb3607e1c5e06e
|
|
| MD5 |
11e814bf9516f5e0ca158d03acbed346
|
|
| BLAKE2b-256 |
4efa604172329a46f3b7a4c6c93c9353865b09e689ccf02f00c9b9b14af7772a
|
File details
Details for the file redbee_mcp-1.0.0-py3-none-any.whl.
File metadata
- Download URL: redbee_mcp-1.0.0-py3-none-any.whl
- Upload date:
- Size: 30.7 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 |
0b5cce333fc06b74e85dd59b9a720e36f11034bc214aa60362cf5dc5a52014af
|
|
| MD5 |
13be2326d7e3ce626ca417cbe04cc114
|
|
| BLAKE2b-256 |
19f2b222c40263290fe564e2185525a95c3b57a82a5d4720d0352ea1c4bb9c20
|