Skip to main content
Glama

lautfm-mcp

An MCP server that provides access to the laut.fm Radioadmin API.

Requirements

  • Node.js 18 or later

  • A valid laut.fm Radioadmin API token

Related MCP server: ukraine.com.ua MCP

Setup

1. Install dependencies

npm install

2. Build

npm run build

3. Configure your MCP client

Add the server to your MCP client configuration (e.g. Claude Desktop claude_desktop_config.json):

{
  "mcpServers": {
    "lautfm": {
      "command": "node",
      "args": ["/absolute/path/to/lautfm-mcp/dist/index.js"],
      "env": {
        "LAUTFM_TOKEN": "your-radioadmin-api-token-here"
      }
    }
  }
}

Generate a token by calling https://radioadmin.laut.fm/login?callback_url=LautfmMCP

Environment Variables

Variable

Required

Description

LAUTFM_TOKEN

✅ Yes

Your laut.fm Radioadmin API bearer token. The server will exit immediately if this is not set.

Authentication & Origin

Every request to the Radioadmin API is sent with:

  • Authorization: Bearer <LAUTFM_TOKEN>

  • Origin: LautfmMCP

Available Tools

General

Tool

Description

get_server_status

Check the laut.fm Radioadmin API server status

Station

Tool

Description

list_stations

List all stations accessible with the current token

get_station

Get detailed information about a specific station

update_station

Update station information (description, format, djs, location, website, social links, genres)

get_station_state

Check if a station is active and playing on a streaming server

activate_station

Activate a station — triggers a playlist export and starts streaming

get_current_playlist

Get the currently playing playlist and its tracks

get_listener_stats

Get listener statistics (current listeners, position, switchons log, TLH log)

Users

Tool

Description

get_station_users

List all users of a station

add_station_user

Add a user with a given role to a station (sends an invitation)

update_station_user_role

Change the role of a user on a station

remove_station_user

Remove a user from a station

Playlists

Tool

Description

get_playlists

List all playlists for a station

add_playlist

Add a new playlist to a station

get_playlist

Get information for a single playlist including its entries

update_playlist

Modify an existing playlist

delete_playlist

Delete a playlist (the rotation playlist cannot be deleted)

add_track_to_playlist

Append a single track to a playlist

get_playlist_tracks

Get all tracks for a playlist

delete_track_from_playlist

Delete all occurrences of a track from a playlist

Schedule

Tool

Description

get_schedule

Get the schedule for a station

update_schedule

Modify the schedule for a station

Tracks

Tool

Description

search_tracks

Search tracks using various filters (deprecated endpoint)

get_tracks_by_ids

Get track information for one or more track IDs

update_track

Update metadata for a track

delete_track

Delete an own track from a station

get_track_stats

Get current day track statistics

get_track_stats_period

Get track statistics for a specific period (24h or yyyy-mm-dd)

get_track_tags_for_ids

Get tags for one or more specific tracks

add_track_tags

Add tags to one or more tracks

remove_track_tags

Remove tags from one or more tracks

get_all_track_tags

Get all tags used across all tracks for a station

get_incomplete_tracks

Get tracks with incomplete uploads

get_queued_tracks

Get tracks queued for processing

Live

Tool

Description

get_live_connection_info

Get live streaming connection information (server, port, mountpoint, bitrate, etc.)

get_live_password

Get the live streaming password for a station

Automation Algorithms

Tool

Description

get_automation_algorithm

View the definition of a specific automation algorithm

create_automation_algorithm

Create a new automation algorithm for shuffling tracks

update_automation_algorithm

Update the function used by an existing automation algorithm

delete_automation_algorithm

Delete an automation algorithm

Excluded Endpoints

The following API endpoints are not exposed as MCP tools because they involve binary data transfer which is not suitable for the MCP text protocol:

  • POST /stations/{station_id}/tracks — MP3 file upload

  • PUT /stations/{station_id}/images/{image_type} — Image upload (logo, website, background)

  • GET /stations/{station_id}/tracks/{track_id}/prelisten — Returns audio/mpeg binary stream

Additionally, all App-tagged endpoints (which use Firebase JWT authentication) are excluded as they serve a different use case.

Development

# Watch mode (recompiles on change)
npm run dev

# Build once
npm run build

# Run directly (requires LAUTFM_TOKEN to be set)
LAUTFM_TOKEN=your-token node dist/index.js

Project Structure

src/
├── index.ts          # MCP server entry point
├── client.ts         # HTTP client with auth + Origin header
└── tools/
    ├── general.ts    # General tools (server status)
    ├── stations.ts   # Station tools
    ├── users.ts      # User management tools
    ├── playlists.ts  # Playlist tools
    ├── schedule.ts   # Schedule tools
    ├── tracks.ts     # Track tools
    ├── live.ts       # Live streaming tools
    └── automation.ts # Automation algorithm tools

Available Tools

40 tools
activate_stationA

Activate a station — triggers a playlist export and starts the station on a streaming server if assigned and not running

Inputs: station_id (required).

add_playlistC

Add a new playlist to a station. Requires at minimum a title and color (full 6-digit hex, e.g. #ff0000)

Inputs: color (required), title (required), station_id (required), shuffled, +2 more.

add_station_userA

Add a user with a given role to a station (sends an invitation)

Inputs: role (required), email (required), station_id (required).

add_track_tagsC

Add tags to one or more tracks

Inputs: tags (required), track_ids (required), station_id (required).

add_track_to_playlistB

Append a single track to a playlist. The track must not already be in the playlist.

Inputs: track_id (required), station_id (required), playlist_id (required).

create_automation_algorithmC

Create a new automation algorithm for shuffling tracks

Inputs: body (required), name (required).

delete_automation_algorithmC

Delete an automation algorithm

Inputs: name (required).

delete_playlistA

Delete a single playlist for a station. The rotation playlist cannot be deleted.

Inputs: station_id (required), playlist_id (required).

delete_trackC

Delete an own track from a station

Inputs: track_id (required), station_id (required).

delete_track_from_playlistB

Delete all occurrences of a track from a playlist

Inputs: track_id (required), station_id (required), playlist_id (required).

get_all_track_tagsA

Get all tags used across all tracks for a station

Inputs: station_id (required).

get_automation_algorithmB

View the definition of a specific automation algorithm

Inputs: name (required).

get_current_playlistA

Get the currently playing playlist and its tracks for a station

Inputs: station_id (required).

get_incomplete_tracksC

Get tracks with incomplete uploads for a station

Inputs: station_id (required).

get_listener_statsB

Get listener statistics for a station (current listeners, position, switchons log, TLH log)

Inputs: station_id (required).

get_live_connection_infoC

Get live streaming connection information for a station (server, port, mountpoint, bitrate, samplerate, format, etc.)

Inputs: station_id (required).

get_live_passwordB

Get the live streaming password for a station

Inputs: station_id (required).

get_playlistC

Get information for a single playlist including its entries

Inputs: station_id (required), playlist_id (required).

get_playlistsB

List all playlists for a station

Inputs: station_id (required).

get_playlist_tracksB

Get all tracks for a playlist (tracks are unique and not necessarily in playlist order)

Inputs: station_id (required), playlist_id (required).

get_queued_tracksC

Get tracks that are queued for processing for a station

Inputs: station_id (required).

get_scheduleC

Get the schedule for a station

Inputs: station_id (required).

get_server_statusA

Check the laut.fm Radioadmin API server status

Inputs: no named parameters.

get_stationB

Get detailed information about a specific station

Inputs: station_id (required).

get_station_stateB

Check if a station is active and playing on a streaming server

Inputs: station_id (required).

get_station_usersC

List all users of a station

Inputs: station_id (required).

get_tracks_by_idsC

Get track information for one or more track IDs (comma-separated list)

Inputs: track_ids (required), station_id (required).

get_track_statsC

Get current day track statistics (play time, listener count, live flag) for a station

Inputs: station_id (required).

get_track_stats_periodC

Get track statistics for a specific period. Use '24h' for the last 24 hours or a date in 'yyyy-mm-dd' format.

Inputs: period (required), station_id (required).

get_track_tags_for_idsC

Get tags for one or more specific tracks

Inputs: track_ids (required), station_id (required).

list_stationsA

List all stations accessible with the current token

Inputs: no named parameters.

remove_station_userC

Remove a user from a station

Inputs: user_id (required), station_id (required).

remove_track_tagsC

Remove tags from one or more tracks

Inputs: tags (required), track_ids (required), station_id (required).

search_tracksC

Search tracks for a station using various filters. Note: this endpoint is deprecated and will be replaced in a future version.

Inputs: station_id (required), own, type, album, +15 more.

update_automation_algorithmC

Update the function used by an existing automation algorithm

Inputs: body (required), name (required).

update_playlistC

Modify an existing playlist for a station

Inputs: station_id (required), playlist_id (required), color, title, +3 more.

update_scheduleA

Modify the schedule for a station. You cannot add an entry for the Base Playlist into entries. If you change the base_playlist_id, any entries containing that ID will be deleted.

Inputs: station_id (required), entries, base_playlist_id.

update_stationC

Update station information (description, format, djs, location, website, twitter_name, facebook_page, instagram_name, genres)

Inputs: station_id (required), djs, format, genres, +6 more.

update_station_user_roleC

Change the role of a user on a station

Inputs: role (required), user_id (required), station_id (required).

update_trackC

Update metadata for a track

Inputs: track_id (required), station_id (required), type, album, +6 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 40 tools

    Disambiguation4/5

    The tools are largely distinct, with clear resource+action separation across playlists, tracks, schedules, users, automation, and live info. A few pairs like get_track_stats/get_track_stats_period and get_all_track_tags/get_track_tags_for_ids could momentarily confuse, but descriptions disambiguate.

    Naming Consistency4/5

    All names use snake_case with a verb_noun structure, which is highly predictable. Minor inconsistencies exist in verb choice: creation uses both add_ (add_playlist) and create_ (create_automation_algorithm), and deletion uses both remove_ (remove_station_user) and delete_ (delete_playlist).

    Tool Count2/5

    With 40 tools, the surface is well beyond the recommended 3-15 range and likely increases cognitive load and misselection risk. Although the domain is broad, this count feels excessive for an MCP server.

    Completeness4/5

    The surface covers CRUD for playlists, tracks, automation, users, and schedules, plus live info and stats. Missing track creation/upload and station creation/deletion are notable gaps for full lifecycle coverage, though they may be outside the API scope.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      An MCP server for the Last.fm API that enables LLM agents to access music data including user profiles, listening history, top charts, search, and artist/album/track metadata.
      16
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      MCP server that wraps the Radio Browser API to search radio stations, list countries, and discover genres. Enables AI agents to find and browse radio stations without authentication.
      284 npm
      MIT