LibreTime MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_PORT | No | Optional port for the HTTP server. Defaults to 3000 for admin and 3001 for client. | |
| CORS_ORIGIN | No | Optional CORS origin to lock CORS to a specific origin. Defaults to reflecting any origin. | |
| MCP_API_KEY | No | Secret API key that HTTP clients must send as a Bearer token. Required for HTTP mode. | |
| UPLOAD_PORT | No | Port for the stdio-mode sidecar upload HTTP server. Defaults to 4000. | 4000 |
| LIBRETIME_URL | No | The URL of your LibreTime instance, e.g. https://your-instance.example.com. | |
| LIBRETIME_PASS | No | The LibreTime API password. | |
| LIBRETIME_USER | No | The LibreTime API username. | |
| LIBRETIME_API_KEY | No | The general.api_key value from LibreTime config.yml. Required for file uploads; omit for read-only client. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_showsA | List all shows registered in LibreTime. Returns each show's id, name, description, and genre. |
| get_showA | Get details of a single LibreTime show by ID. |
| get_show_instancesA | List scheduled instances of a show. Optionally filter by show ID or date range. |
| get_scheduleB | Get the broadcast schedule for a date range. Use starts_after and starts_before to filter by date (ISO 8601 format, e.g. 2024-06-01T00:00:00Z). |
| get_stream_stateA | Check whether the PowerFM station is currently broadcasting live. |
| get_station_infoC | Get basic station information such as the station name. |
| get_playout_historyB | Get the history of tracks that have played on PowerFM. Enriches each entry with track title and artist from the file library. Use starts and ends to filter by time range (ISO 8601). |
| get_usersB | List all LibreTime users (presenters and admins). Returns id, username, name, and role. Roles: G = Guest, H = Host, P = Manager, A = Admin. |
| get_hostsA | Get all show-to-host assignments. Enriches each entry with user details so you can see which presenter hosts which show by name. |
| create_showA | Create a new show in LibreTime. Returns the created show with its ID, which can be used to schedule instances. |
| schedule_fileA | Schedule an uploaded file into a show instance at a specific time. Fetches the file duration automatically to calculate the end time. Use get_show_instances to find the instance ID for the show slot you want to fill. |
| search_filesA | Search the LibreTime media library. Optionally filter by genre. Returns file id, name, track title, artist, album, length, and mime type. |
| upload_fileA | Upload an audio file to the LibreTime media library. Provide a URL to fetch the file from, or a local file path when running in stdio mode. When neither is given, opens a file picker. Optionally pre-fill metadata such as track title, artist, album, and genre. |
| update_file_metadataB | Update metadata for a file already in the LibreTime library (track title, artist, album, genre). |
| delete_fileC | Delete a file from the LibreTime media library by its ID. |
| get_playlistsB | List all playlists in the LibreTime media library. |
| create_playlistA | Create a new playlist in LibreTime. Returns the playlist ID for use with add_to_playlist. |
| get_playlist_contentsC | List the contents of a playlist. |
| add_to_playlistA | Add a file or stream to a playlist. Use get_playlist_contents to check the current contents and determine the next position. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| on_air_now | Check what is currently on air and what is coming up next |
| station_status | Full station overview — stream state, current schedule, and configuration |
| show_overview | Get a full overview of a specific show including upcoming instances |
| upload_and_schedule | Upload an audio file and schedule it into a show |
| manage_playlist | View or manage playlists — list all playlists or inspect a specific one |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| ui://libretime/upload-file.html |
TDQS
Scored across 19 tools
Most tools target a distinct resource+action (shows, files, playlists, users, playout). However, get_schedule and get_show_instances both concern scheduled slots and could be confused, and get_shows vs get_show is a subtle singular/plural distinction that requires reading descriptions to distinguish.
Uniform snake_case verb_noun pattern throughout: get_*, create_*, update_*, delete_*, upload_*, search_*, schedule_*, add_to_*. The lone domain-specific verb (schedule_file) and add_to_playlist fit the natural language of the action and don't break the pattern.
19 tools cover a broad radio-station domain (shows, scheduling, media library, playlists, hosts, live state), so the size is justified rather than padded. It sits near the upper end of comfortable scoping but each tool maps to a real operation.
Media files have near-full lifecycle (search/upload/update/delete) and playlists can be created and populated, but there are notable gaps: no update_show or delete_show, no cancel/delete of scheduled instances, no remove_from_playlist, and no delete_playlist. These dead ends could force agents to abandon common maintenance tasks.