MediaCP Manual
    1. Getting Started
    2. Sales Questions
    3. Frequently Asked Questions
    4. Transcoder System Benchmarks
    5. Start your own streaming platform
    1. Change account currency
    2. Product Licensing
    1. Introduction
    2. Installation & Upgrade
      1. System Requirements
      2. Versions & Releases
      3. Installation
      4. Upgrading
      5. SSL Certificates
      6. Streaming Servers
        1. MediaCP Video
        2. Wowza Streaming Engine
        3. Flussonic Media Server
        4. Video Feature Comparison
        5. Icecast 2 / Icecast KH
        6. Shoutcast 2
    3. Billing Integration
      1. WiseCP Integration Guide
      2. WHMCS Integration Guide
      3. Clientexec Integration Guide
      4. Blesta Integration Guide
      5. Billing Platform Comparison
    4. Migrate from other software
      1. Migrate From Centovacast
      2. Migrate From AzuraCast
    5. Backup & Restoration
      1. Backup MediaCP
      2. Restore MediaCP
      3. Transfer to another server
    6. Administration
      1. MediaCP System Commands
      2. Admin Tools
      3. Custom Web Service Configurations
      4. Change MediaCP domain name
      5. Port 80 / 443 Proxy
      6. Move media to another hard disk
      7. Custom Language Translations
      8. Custom Facebook App
      9. Branding Your Panel
      10. Secure your server
      11. Setup CSF Firewall
      12. Troubleshooting Login Errors
      13. Reset Admin Password
    7. Scaling
      1. MediaCP CDN Capabilities
      2. Scale with Wowza and CloudFront CDN
      3. MediaCP Video with CloudFront CDN
      4. MediaCP Video with CDN Proxy
    8. Troubleshooting
      1. MySQL Database Troubleshooting
      2. Reporting Troubleshooting
      3. Troubleshooting Liquidsoap AutoDJ
      4. Video Relay Troubleshooting
      5. Disk Troubleshooting
      6. Grant access to support team
      7. Troubleshooting Wowza Streaming Engine
      8. FTP Troubleshooting
    9. AI Integration
    1. Introduction
    2. Administrators Dashboard
    3. System Configuration
      1. General
      2. Services
      3. Video Players
      4. Albums
      5. Email
      6. Plugins
      7. Statistics
      8. Backups
      9. Custom HTML
      10. Misc
    4. Customer Accounts
      1. Managing existing Customers
      2. Create a new Customer
      3. Deleting a Customer
      4. Send email to Customer
      5. Login as another Customer
      6. Reset Customer Password
    5. Reseller Accounts
      1. Reseller Plans
      2. Create a Reseller Account
    6. Administrator Accounts
      1. Create a new Administrator
    7. Media Services
      1. Creating a Media Service
      2. Deleting a Media Service
    8. Announcements
      1. Managing Announcements
      2. Creating Announcement
      3. Deleting Announcement
    9. Statistics
    10. Software Health
    11. Stream Events
    12. Software Updates
    13. Email Templates
    14. API
    1. Introduction
    2. Audio Operation Manual
      1. Basics 101
      2. Station Overview
      3. Media Library
      4. Playlists
        1. General Rotation
        2. Jingles & Advertising
        3. Scheduling
        4. Repeat Protection
      5. Live DJ Connections
      6. Live Stream Recording
      7. DJ Manager
      8. Fallback, Backup and Intro Files
      9. Country Blocking
      10. AutoDJ Crossfade
      11. Stream Proxy
      12. Audio Processing
      13. Stream Authentication
      14. Public Page
      15. HTML5 Player
      16. Widgets & Links
      17. Audio Stream Events
      18. Reporting
    3. Video Operation Manual
      1. Basics 101
      2. Service Overview
      3. File Manager
      4. Scheduling
      5. Streaming to Your Service
      6. Stream Targets
      7. GeoIP Country Locking
      8. Public Page
      9. Widgets & Links
      10. Video Stream Events
      11. Reporting
    4. Reseller Operations Manual
      1. Reseller Dashboard
      2. Customers
      3. Media Services
    5. AI Integration
    6. API
    1. Shoutcast 2 Admin Guide
    2. Custom Domain Names
    3. Wowza and Flussonic on same system
    4. Submit a feature request
    5. Build and Publish Custom Roku Channel App
    6. Responsible Disclosure
    7. Youtube Stream Publisher App
    1. Getting started with Audio Streaming
    2. Icecast Live Broadcasting
    3. Shoutcast 2 Live Broadcasting
    4. Broadcasting with AutoDJ
    5. DJ Accounts
    6. GeoIP Country Locking
    7. HTML5 Audio Player
    8. Mount Points
    9. Managing Your Media
    10. Managing Media Using FTP
    11. Statistics
    12. Shoutcast 2 Premium
    1. Getting started with video streaming
    2. Live Streaming Overview
    3. TV Station Overview
    4. Ondemand Video Streaming
    5. GeoIP Country Locking
    6. VAST Advertising
    7. Relay & IP Camera
    8. Stream Recording
    9. Connecting your encoder
    10. Preparing Your Media Files
    11. Managing Media Using FTP
    12. Understanding Video Playlists
    13. Embedding player on your website
    14. Smooth Streaming and Content Transition
    15. Video Transcoding (Adaptive Bitrate Streaming)
    16. Stream Watermark​
    17. DVR Rewind
    18. Statistics
    19. Facebook Live Streaming
    20. Youtube Stream Publishing
    21. Twitch Stream Publishing
    22. Shoutcast 2 Stream Publishing
    23. Icecast Stream Publishing
    24. RTMP Stream Publishing
    1. Cloud Video Overview
    2. Admin Manual - Cloud Video
      1. Team & Staff Members
      2. Plans & Customers
      3. WHMCS Billing Provisioning Module
      4. Login to your cloud platform
      5. Dashboard - A First Look
      6. Branding your platform
      7. Event Webhooks
      8. Activating VOD on Customer Plan
      9. API
    3. User Manual - Cloud Video
      1. Login to your video platform
      2. First Look
      3. Creating a Channel
      4. Channel Overview
      5. Broadcasting
      6. Broadcasting with OBS
      7. Stream Transcoding (ABR)
      8. Stream Watermarking
      9. Recording
      10. Media Content
      11. Live Events
      12. Live Paywall
      13. 30 Minute Rewind
      14. Fallback Video
      15. Video Players
      16. TV Channels - 24x7 UGC
        1. TV Event Scheduling
        2. Channel Guide Widgets
      17. Video on Demand
      18. Relay Channels
      19. VOD Playlists
      20. Publishing
      21. Bandwidth Utilisation
      22. Viewing Analytics
      23. Publish Zoom Meetings
      24. Advertising
      25. Restreaming IP Cameras
    4. Video Guide Series
    5. Streaming Best Practices
    6. Feature Comparison
    7. Roadmap & Release Notes

AI Integration

Last updated 6 minutes ago

We built AI Integration to make complex broadcasting and panel workflows faster and easier to discover. Instead of moving through several screens or learning API calls, operators can investigate audience behaviour, organize media, update playlists, monitor stations, and perform administrative work through a conversation. The quality of the result still depends on the AI model, your prompt, and the permissions you grant it.

MediaCP AI Integration connects your panel to AI assistants through a Model Context Protocol (MCP) server that ships with MediaCP for Unlimited subscriptions. It is compatible with Claude, Codex, the ChatGPT desktop app, LM Studio, Windsurf, and other clients that support remote MCP servers over Streamable HTTP.

System Requirements

  • An active MediaCP Unlimited subscription or Perpetual license. 
  • MediaCP 2.16 or newer
  • API Access and MCP Server enabled under System Config > Misc.
  • The MediaCP Port 80/443 Proxy service installed and enabled.
  • A panel URL that uses HTTPS and does not contain an explicit port, for example https://panel.example.com/ rather than https://panel.example.com:2020/.
  • A publicly reachable panel URL for cloud-hosted AI clients such as Claude.
  • An MCP-compatible AI client and a model with reliable tool-calling support.

Examples

The integration exposes tools for reporting, services, media, playlists, schedules, listeners and viewers, stream targets, users, announcements, DJs, jingles, events, and system statistics.

  • When do listeners spend the most time on My Hits Radio? Compare the last four weeks by day and hour.
  • Find the most popular tracks on My Hits Radio this month and propose a 25-track playlist. Show me the proposed tracks before creating it.
  • Show me what is playing now, the current listener count, and the status of every stream target for service 105.
  • Read the last 20 tracks played by service 105 and look for repetition or gaps that could explain the station complaint.
  • Draft a maintenance announcement for tomorrow at 10:00 AM. Show me the wording and audience settings before publishing it.

Connecting to your AI client

  1. Sign in to MediaCP.
  2. If you are an administrator, open System Config > Misc and confirm that API Access and MCP Server are enabled.
  3. Open Integrations from the side menu.
  4. Enable API access for your account if prompted.
  5. Copy the MCP Server URL and your Integration Key. The URL normally has this format:
    https://panel.example.com/mcp

Connect Claude

Claude custom connectors support remote MCP servers. See Claude’s custom connector guide for current plan and workspace controls.

  1. In an individual Claude account, open Customize > Connectors. For a Team or Enterprise workspace, an Owner must first open Organization settings > Connectors.

  2. Select Add custom connector. In an organization workspace, select Custom, then Web.

  3. Enter a name such as MediaCP and paste the MCP Server URL from the MediaCP Integrations page.

  4. Open Advanced settings and enter:

    SettingValue
    OAuth Client IDmediacp
    OAuth Client SecretYour MediaCP Integration Key
  5. Save the connector, select Connect, and complete the authorization flow.

  6. In a conversation, open the + menu, choose Connectors, and enable MediaCP.

If Claude asks for explicit OAuth endpoints, use:

Authorization URL: https://panel.example.com/mcp/authorize
Token URL:         https://panel.example.com/mcp/token

Claude connects from its cloud infrastructure, including when you use Claude Desktop. Your MediaCP URL must therefore be publicly reachable over HTTPS.

Connect Codex or ChatGPT desktop

Codex and the ChatGPT desktop app share MCP configuration and support Streamable HTTP with bearer-token authentication. See the official MCP configuration guide.

Option 1: Codex CLI

Set the Integration Key in an environment variable, then add MediaCP:

export MEDIACP_INTEGRATION_KEY="YOUR_INTEGRATION_KEY"
codex mcp add mediacp \
  --url "https://panel.example.com/mcp" \
  --bearer-token-env-var MEDIACP_INTEGRATION_KEY
codex mcp get mediacp

Make MEDIACP_INTEGRATION_KEY available to future Codex sessions through your operating system’s secure environment configuration. Do not commit the key to a repository.

Option 2: Codex configuration file

Add this to ~/.codex/config.toml:

[mcp_servers.mediacp]
url = "https://panel.example.com/mcp"
bearer_token_env_var = "MEDIACP_INTEGRATION_KEY"

Restart Codex or the ChatGPT desktop app after saving the configuration. In the ChatGPT desktop app, you can also open Settings > MCP servers, add a Streamable HTTP server, and enter the same URL. Use the shared configuration file when bearer-token settings are not shown in the interface.

ChatGPT web

ChatGPT web custom apps currently require an MCP-compliant OAuth 2.1 authorization flow with discovery metadata and PKCE. ChatGPT does not accept a custom static API key for this connection. The current MediaCP server provides a simpler client ID and secret exchange for Claude and does not yet implement all of ChatGPT web’s OAuth 2.1 requirements. Use Codex or the ChatGPT desktop app for the current MediaCP release. See OpenAI’s MCP authentication requirements for the web integration requirements.

Connect LM Studio

LM Studio can connect local models to remote MCP servers. Use a current LM Studio release and choose a model that is good at tool calling. See the LM Studio MCP guide for the latest interface.

  1. Open the Program tab in the right sidebar.

  2. Select Install > Edit mcp.json.

  3. Add the MediaCP server:

    {
      "mcpServers": {
        "mediacp": {
          "url": "https://panel.example.com/mcp",
          "headers": {
            "Authorization": "Bearer YOUR_INTEGRATION_KEY"
          }
        }
      }
    }
    
  4. Save the file. LM Studio should load the server and show its tools.

  5. Start a chat with a tool-capable model, enable the MediaCP tools, and approve calls when prompted.

This configuration stores the Integration Key in mcp.json. Protect the file with your operating system account permissions and never share or commit it.

Troubleshooting

The AI gives incomplete or poor answers

We have documented every MCP-exposed part of MediaCP internally so the AI receives detailed tool descriptions, parameters, natural-language usage guidance, and examples. There will always be room for improvement, and the integration is only as capable as the AI using it. Choose a model that performs well at everyday reasoning and tool-calling tasks, give it a clear goal, name the station or service, and include the time period you want analyzed.

Reporting requests are deliberately rate limited and a single reporting query covers no more than 31 days. Ask the AI to split longer comparisons into several periods instead of repeatedly retrying one large request.

The AI client cannot connect

  1. Confirm that the client is using the exact MCP Server URL shown on the MediaCP Integrations page. The URL must end in /mcp and must not include the panel’s old port number.

  2. Confirm that the header is Authorization: Bearer YOUR_INTEGRATION_KEY, with one space after Bearer.

  3. Confirm that API Access is enabled for both the system and the MediaCP user, and that MCP Server is enabled under System Config > Misc.

  4. Sign in as the root user over SSH and check all MediaCP services:

    mediacp status
    

    You can also check the MCP Server directly:

    mediacp status mcpserver
    
  5. From the MediaCP server, check the local health endpoint:

    curl http://127.0.0.1:3000/health
    

    A running server returns JSON with "status":"ok".

The MCP Server will not start, crashes, or has another problem

Logs are stored in:

/usr/local/mediacp/log/mcpserver/

Check the latest mcp-server-YYYY-MM-DD.logmcp-error-YYYY-MM-DD.log, and mcp-server.out files. To restart the service in foreground debug mode and display detailed requests and errors, run as root:

mediacp restart mcpserver debug

Press Ctrl+C after collecting the error, then start the service normally:

mediacp start mcpserver

Never publish debug output without reviewing it first because requests and error details may contain private station data.

Tools are missing or an action is denied

MediaCP filters tools according to the user level associated with the Integration Key. Customer keys receive customer-level tools, while reseller and administrator tools require the corresponding account permissions. Sign in as the intended MediaCP user, copy that user’s key from Integrations, and reconnect the AI client. 

Table of Contents