AIOZ MCP Server
The AIOZ MCP Server is a Model Context Protocol (MCP) (opens in a new tab) server for connecting MCP-compatible Super Intelligence clients to AIOZ Stream media and live streaming operations.
Use this page to build and run the server locally, review the tools it exposes, and connect clients such as Cursor, Claude CLI, ChatGPT, or VS Code.
MCP clients connect over SSE at https://mcp.aiozstream.network/sse?api_key=<BASE64URL_STREAM_CREDENTIALS>.
When to use this page
Use this page if you want to:
- Count videos and audios in an AIOZ Stream account from a Super Intelligence client.
- List videos or retrieve playback URLs by video name.
- Create a live stream key for broadcasting.
- Configure an MCP client to call AIOZ Stream tools.
Prerequisites
- A valid AIOZ Stream (opens in a new tab) account.
- AIOZ Stream public key and secret key from the API Keys page (opens in a new tab).
- An MCP-compatible client, such as Cursor, Claude CLI, ChatGPT connectors, or VS Code with GitHub Copilot Agent mode.
Keep your AIOZ Stream API credentials private. Do not paste them into shared chats, public repositories, screenshots, or prompts that may be visible to other users.
Connection URL and api_key
Connect MCP clients to:
https://mcp.aiozstream.network/sse?api_key=<BASE64URL_STREAM_CREDENTIALS>Create <BASE64URL_STREAM_CREDENTIALS> as follows:
-
Open the AIOZ Stream API Keys page (opens in a new tab) and copy your public key and secret key.
-
Create this JSON object with the exact field names shown below:
{ "publicKey": "<PUBLIC_KEY>", "secretKey": "<SECRET_KEY>" } -
Encode the complete JSON string with base64url, without padding. The encoded result is the
api_keyvalue.
For example, with Node.js:
node -e 'const value={publicKey:process.env.AIOZ_STREAM_PUBLIC_KEY,secretKey:process.env.AIOZ_STREAM_SECRET_KEY}; console.log(Buffer.from(JSON.stringify(value)).toString("base64url"))'Set AIOZ_STREAM_PUBLIC_KEY and AIOZ_STREAM_SECRET_KEY in your local
environment before running the command. Never commit either credential or the
encoded api_key.
Available MCP tools
The server exposes the following tools to connected MCP clients. All tools use
AIOZ Stream credentials from the SSE api_key query parameter. Do not pass
publicKey or secretKey as tool arguments.
count-total-media
Returns the total number of videos and audios in an AIOZ Stream account.
This tool has no arguments. It uses credentials from the SSE api_key query
parameter.
Count all videos and audios in my AIOZ Stream account.Show me the total media count for my AIOZ Stream account.get-video-urls
Searches for a video by name and returns its playback and asset URLs.
| Parameter | Type | Required | Description |
|---|---|---|---|
videoName | string | Yes | Name, or partial name, of the video to search |
The response groups matching playback and asset URLs by media ID.
Find playback and asset URLs for the video named "Product demo Q4".Get the video URLs for anything matching "launch teaser".get-list-video
Returns a list of all videos in an AIOZ Stream account.
This tool has no arguments. It uses credentials from the SSE api_key query
parameter.
List all videos in my AIOZ Stream account.Show me my current video library in AIOZ Stream.create-livestream-key
Creates a live stream key in an AIOZ Stream account.
| Parameter | Type | Required | Description |
|---|---|---|---|
keyName | string | Yes | Display name for the live key |
Create a live stream key named "Friday webinar".Set up a stream key called "OBS test stream" for my next broadcast.get-analytics-data
Retrieves analytics data for an AIOZ Stream account over a date range.
| Parameter | Type | Required | Description |
|---|---|---|---|
fromDate | string | Yes | Start date in dd/mm/yyyy format |
toDate | string | Yes | End date in dd/mm/yyyy format |
Get analytics data from 01/09/2026 to 07/09/2026.Retrieve analytics data for my account from 01/08/2026 to 31/08/2026.get-aggregated-metrics
Retrieves aggregated view or watch time metrics for video or audio over a date range.
| Parameter | Type | Required | Description |
|---|---|---|---|
fromDate | string | Yes | Start date in dd/mm/yyyy format |
toDate | string | Yes | End date in dd/mm/yyyy format |
mediaType | string | Yes | Must be exactly video or audio |
metricType | string | Yes | Must be exactly view or watch_time |
Get aggregated metrics from 01/09/2026 to 30/09/2026 for mediaType video and metricType view.Show aggregated metrics from 01/08/2026 to 31/08/2026 for mediaType audio and metricType watch_time.get-breakdown-metrics
Retrieves breakdown metrics for video or audio over a date range by a supported metric type.
| Parameter | Type | Required | Description |
|---|---|---|---|
fromDate | string | Yes | Start date in dd/mm/yyyy format |
toDate | string | Yes | End date in dd/mm/yyyy format |
mediaType | string | Yes | Must be exactly video or audio |
metricType | string | Yes | Must be exactly DeviceType, Browser, OperatorSystem, or Country |
Get breakdown metrics from 01/09/2026 to 30/09/2026 for mediaType video and metricType Country.Show breakdown metrics from 15/08/2026 to 31/08/2026 for mediaType audio and metricType Browser.get-balance
Retrieves the balance for an AIOZ Stream account.
This tool has no arguments. It uses credentials from the SSE api_key query
parameter.
Get the balance for my AIOZ Stream account.Show my current AIOZ Stream balance.get-data-consumed
Retrieves data consumed by an AIOZ Stream account over a date range.
| Parameter | Type | Required | Description |
|---|---|---|---|
fromDate | string | Yes | Start date in dd/mm/yyyy format |
toDate | string | Yes | End date in dd/mm/yyyy format |
Get data consumed from 01/09/2026 to 30/09/2026.Show data consumed by my AIOZ Stream account from 10/08/2026 to 20/08/2026.Configure MCP clients
Choose the client you want to connect. The examples below use the AIOZ Stream MCP endpoint.
Cursor supports MCP through its MCP settings file.
- Press
Ctrl + Shift + Pon Windows/Linux orCmd + Shift + Pon macOS. - Type Open MCP Settings and press Enter.
- Cursor opens
mcp.json, usually located at~/.cursor/mcp.json.
Add the aioz-mcp-server entry inside mcpServers:
{
"mcpServers": {
"aioz-mcp-server": {
"url": "https://mcp.aiozstream.network/sse?api_key=<BASE64URL_STREAM_CREDENTIALS>"
}
}
}- Save the file.
- Open Cursor Chat with
Ctrl + L. - Try a prompt such as: "Count the total number of videos in my AIOZ Stream account".