foo-ai
MCP control for foobar2000. Control your music player with an AI assistant!
README
<p align=center> <a href="https://github.com/Bobini1/foo_ai/releases/latest"><img alt="GitHub Downloads (all assets, all releases)" src="https://img.shields.io/github/downloads/Bobini1/foo_ai/total"></a> </p>
foo_ai
AI MCP control for foobar2000. Control your music player with an AI assistant!
Overview
This component starts a local Model Context Protocol server. You can connect to it with any MCP client that supports SSE (tested with GitHub Copilot and Cursor).
The AI assistant can send requests to get information from the running music player or invoke actions like play, create playlists, change volume, etc.
Compatible with foobar v2.0+, x86 and x64.
Example tasks
- "Make a new 80s rock playlist and play it."
- "What's the name of the currently playing track?"
- "Add this track to my 'Favorites' playlist."
- "What's the oldest song in my library?"
- "Turn up the volume a bit."

Installation
- Download the latest release from the Releases page.
- Double-click the downloaded
.fb2k-componentfile to install the component. - Restart foobar2000 if it's running.
- By default, the server will be listening on
http://localhost:9910/sse. You can change the host and port in settings (Preferences > Tools > AI). - Add the URL from the previous step to your MCP client and voilà!
Available features
Tools
The server provides the following tools:
list_library: List all tracks in the library. Can specify a query string.list_playlists: List all playlists.list_playlist: List tracks in a specific playlist. Can specify a query string.list_current_track: Get information about the currently playing track.add_tracks: Add tracks to a playlist.remove_tracks: Remove tracks from a playlist.remove_all_tracks: Remove all tracks from a playlist.move_tracks: Move tracks within a playlist.set_active_playlist: Set the active playlist (the one shown in the UI).set_playing_playlist: Set the playing playlist (the one the fb2k picks tracks from).set_playback_state: Play or pause music.play_at_index: Play a track at a specific index in the active playlist.set_focus: Set the focus to a specific track in the active playlist (without playing it).create_playlist: Create a new playlist.rename_playlist: Rename a playlist.delete_playlist: Delete a playlist.set_volume: Set volume.toggle_mute: Toggle mute state.get_volume: Get current volume and mute state.
Resources
The server provides a few resources. They are provided to support subscriptions. When a client subscribes to a resource, it will receive updates whenever it is updated in the player.
This isn't a crucial feature as clients can always call the tools to get the latest info, but it can be useful for real-time updates, if your MCP client supports it.
The following resources are available:
current_track://.: Contains info about the current track: when it was last changed and it's playing/paused state.playlists://.: Contains the same info as thelist_playliststool - playlist names, track counts, last modification times, active/playing states, etc.volume://.: Contains the same info as theget_volumetool.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。