Upnext

io.github.tothienbao6a0由 GitHub 账号 tothienbao6a0 发布v0.3.1更新于 Oct 24, 2026

One audio queue across Spotify, the browser, local files and whatever is already playing.

已验证STDIO仅桌面效率与工作流媒体与设计

概览

AI 生成的概览

本地 MCP 服务器,为助手提供跨 Spotify、浏览器标签页、本地文件和当前正在播放内容的统一音频队列。

可以做什么
  • 查看播放状态:了解队列中以及机器其他位置正在播放的内容,并列出带条目标识的队列
  • 加入队列:添加链接、文件路径、Spotify URI 或文字描述,或把当前正在播放的内容收进队列
  • 控制播放:播放、暂停、下一首,并在来源支持时跳转到指定位置
  • 编辑队列:按标识移动和删除条目,并在支持搜索的来源中搜索
  • 检查配置:报告已接入哪些后端以及它们能做什么
适用场景
适合希望助手回答当前在放什么、并在不打断当前曲目的前提下把音乐或音频排入队列的场景,尤其是桌面机器上同时使用 Spotify、浏览器和本地音乐文件夹的混合来源环境。
运行要求
以 stdio 方式在本机运行,通常通过 npx 启动 upnext-mcp 这个 npm 包,因此需要 Node.js。可通过命令行参数指定音乐库路径,也可通过 SPOTIFY_TOKEN 环境变量提供 Spotify Web 令牌,以便把描述解析为曲目。仅限桌面端,无网页版。
安装前请注意
可选的 SPOTIFY_TOKEN 环境变量属于凭据,应避免写入共享配置。服务器会改变本机的播放与队列状态,包括暂停、跳过、重排和删除条目。未配置搜索来源时,文字描述无法解析为曲目,可能找不到目标内容。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Upnext,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

upnext-mcp

[npm] [license]

An MCP server for your machine's audio. One queue across Spotify, the browser, local files, and whatever is already playing.

json
{  "mcpServers": {    "upnext": {      "command": "npx",      "args": ["-y", "upnext-mcp", "--library", "/Users/me/Music"]    }  }}

Drop that in Claude Desktop, Cursor, Windsurf, or anything else that speaks MCP.

What it lets an agent do

you:  what am I listening to?      → ❚❚ Acquired — Jensen Huang (Google Chrome)
you:  let that finish, then play Bad Habit      → adopted "Acquired — Jensen Huang" as q_0001        up next:          q_0001  Acquired — Jensen Huang          q_0002  Bad Habit — Steve Lacy

The first line reads a browser tab — no extension. The second puts it in the queue as a real entry, so the agent adds to what someone is doing rather than cutting across it.

Tools

tool
media_nowwhat's playing, in the queue and elsewhere on the machine
media_queuethe queue, with the id of each entry
media_enqueueadd a link, file path, Spotify URI, or a plain description
media_play · media_pause · media_nexttransport
media_seekjump to a position — says so plainly if the source can't
media_move · media_removereorder and drop, by id
media_searchsearch the sources that can search
media_adopt_currentput what's already playing into the queue
media_setupwhat's wired here, and what it can do

Every mutation is addressed by id, and every response includes the queue with ids in it. That's deliberate: a model working from positions races anything else touching the queue, and by the time its call lands, position 2 is a different song.

It tells the model the truth

Two places where this behaves differently from most tool servers, both for the same reason — a model that gets a silent no-op will confidently tell the user it worked.

media_seek on a source that can't seek returns a sentence, not an error:

the current source (spotify-desktop) cannot seek. Nothing changed.

media_search with nothing wired to search explains itself:

nothing found for "bad habit". playing through: spotify-desktop, nowplaying, local titles will NOT resolve: nothing wired here can search…

Titles need a searcher

A link says exactly what to play. A description has to be looked up, and not every backend can. The Spotify desktop app plays a URI you hand it but cannot search a catalogue — so on a plain Mac setup, media_enqueue with "bad habit" has nothing to resolve against.

Give it one of these:

jsonc
// index a music folder"args": ["-y", "upnext-mcp", "--library", "/Users/me/Music"]
// or a Spotify Web token, via the environment"env": { "SPOTIFY_TOKEN": "..." }

media_setup will tell you which you have.

Embedding it instead

If your product already has a queue, expose that one rather than starting a second that competes with it:

ts
import { createServer } from 'upnext-mcp';import { serveStdio } from '@modelcontextprotocol/server/stdio';
serveStdio(() => createServer(myExistingRuntime));

This package is a transport, and nothing more — ordering, capability negotiation, resolution and reconciliation all happen in upnext-core. It lives apart because a transport is an opinion, and nobody importing the runtime should inherit this one.


Full docs: https://github.com/tothienbao6a0/upnext · Apache-2.0

来源:packages/mcp/README.md,提交 93a48da

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.3.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分