@freeyourmusic/mcp
v11.3.0
Published
MCP (Model Context Protocol) server for FreeYourMusic: lets AI assistants use your FreeYourMusic account (transfers, library, playlist tools, insights, stats). Stdio transport. Needs FreeYourMusic Pro.
Readme
@freeyourmusic/mcp
An MCP (Model Context Protocol) server for FreeYourMusic. It lets an AI assistant (Claude Desktop, Claude Code, Cursor, Cline, …) use your FreeYourMusic account: connected services, library, transfers, sync, playlist tools, insights, stats and exports. It talks to the same API as the web app at freeyourmusic.com/app. The MCP server needs FreeYourMusic Pro. Stdio transport.
Install for an MCP host
# Claude Desktop
npx -y @freeyourmusic/mcp install --host=claude-desktop
# Claude Code
npx -y @freeyourmusic/mcp install --host=claude-code
# Cursor
npx -y @freeyourmusic/mcp install --host=cursor
# Cline
npx -y @freeyourmusic/mcp install --host=cline
# Print the JSON snippet (manual install)
npx -y @freeyourmusic/mcp install --host=printThen restart the host. The tools appear under the freeyourmusic server.
To test an RC release, add --env=rc: the entry is called freeyourmusic-staging, runs with
FYM_ENV=staging and talks to the RC servers. It can sit next to the production entry.
Sign-in
Ask the assistant to sign in: the tool fym_sign_in answers a code and a link to
freeyourmusic.com/app/cli. Open the link, check the code, sign in and tap Allow. The session is
shared with the CLI (~/.fym/credentials.json), so fym login in a terminal works too.
Tools
fym_status,fym_sign_in: the account, Pro and the connected services.fym_services_connect+fym_services_connect_status: connect a music service in the browser.- One tool for each operation of the FreeYourMusic web API (
fym_transfers_create,fym_library_tracks,fym_playlists_edits,fym_matches_pick,fym_insights_playlist,fym_stats_section_get,fym_premium_buy, …). Each tool's input schema is the API's own.
Every tool carries the MCP hints readOnlyHint and destructiveHint, so a host can ask before a
tool that deletes or replaces data. fym_queue_enqueue carries destructiveHint, because it can run
a delete.
Every write to a playlist joins the queue of the account: the tool answers the queue action at once,
and FreeYourMusic runs it on the server. fym_queue_get shows how it ended.
The MCP server is a Pro feature. The sign-in asks for an account with Pro. When Pro
ends, every tool except the account tools answers an error that says so; fym_premium_plans and
fym_premium_buy give the way to renew.
Account delete and sign-out-everywhere are CLI-only.
Error reporting
Published builds report unexpected failures to FreeYourMusic's Sentry project. Tokens, tool
arguments and request payloads are not attached. Development and test builds do not report. Set
FYM_DISABLE_TELEMETRY=1 to turn reporting off, or SENTRY_DSN to use your own destination. MCP
protocol output stays on stdout; diagnostics use stderr.
Maintainers
The version and the release branches are those of @freeyourmusic/cli (see its README). Checks:
pnpm tsc-lint:fym-mcp, pnpm lint:fym-mcp, pnpm test:fym-mcp.
