magnet-ai
Detects a local Deluge client and sends magnet links to it for download.
Detects and configures a local qBittorrent client, sends magnet links to it, and can use its search plugins as additional indexers.
Detects a local Transmission client and sends magnet links to it for download.
Detects installed Wine layers such as CrossOver, Whisky, or Homebrew wine and uses them to install or run Windows software, including adding vendor runtimes to bottles.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
magnet.ai
pipx install magnet-ai && pipx ensurepath && magnet-ai-setup --apply --install-app不想碰终端?把仓库丢给你的 agent,让它自己装。 复制这一句:
读 https://github.com/Kmrnn9888/magnet.ai 里的 AGENTS.md,把它装好并跑起来 (非交互环境 --install-app 要带 --no-downloader),装完把 127.0.0.1:8125 这个地址给我。
BT / magnet search + AI installer for macOS. Say what you want in one line; it searches the indexers you have, drops the releases your machine can't run, ranks by seeders and your actual hardware, and hands you one magnet. Once downloaded, it opens the folder, reads what's inside, and installs it step by step. macOS only, zero dependencies, no account.
它跟「直接开个 BT 站搜一下」的区别就三条:
只给你这台机器能跑的。 每条结果直接标出你这台的 CPU 架构 / 内存 / macOS 版本能不能跑,不用下完 20G 才发现装不了。
下完不是结束。 它打开那个文件夹,看清里面是 dmg、pkg、分卷还是只有补丁,写好步骤一步步装,装成功就把这套手法记住。
不注册、不上云、不联网也能用。 内置三个直连源;AI 关掉时按原词直搜、安装走本地规则,零第三方依赖。
一个跑在本机的资源雷达。中间一个输入框:说一句你要什么,它去你配的索引器里找, 标出哪些在你这台机器上根本跑不了,按种子好坏排好,点一下交给下载器。下完之后, 它自己进那个文件夹看清楚里面是什么,写好步骤,一步步装,装成功了就把这套手法 记住。
不配任何东西也能用:内置三个直连源,AI 关掉时搜索按原词直搜、安装按本地规则走。
长什么样
一句话搜,它把结果排好,每条直接告诉你「这台机器能不能跑」:

首页是它自己搜出来的推荐墙——每个 App 一张卡,标着原生还是要走 CrossOver:

截图是我自己在用的那台机器,拍的时候界面还叫 RADAR,现在统一成 magnet.ai 了; 分类也比公开版多(建筑、游戏那些是我自己加的)。你装完之后墙上是
magnet-ai-setup搜到的 macOS 原生软件。
Related MCP server: M-Team MCP Server
跑起来
pipx(推荐,从 PyPI 装)
pipx install magnet-ai
magnet-ai-setup --apply --install-app没装 pipx 就先 brew install pipx && pipx ensurepath(或者
python3 -m pip install --user pipx)。
从仓库跑(改代码、或者想要 app 带自定义图标时)
git clone https://github.com/Kmrnn9888/magnet.ai && cd magnet.ai
python3 -m magnet_ai.setup # 体检:这台机器缺什么,只读不写
python3 -m magnet_ai.setup --apply --install-app # 配好 + 装成 /Applications/magnet.ai.app这一条会把该做的都做了:认机器、认本机的 agent CLI、装成
/Applications/magnet.ai.app;如果这台机器一个下载器都没有,会问你一句要不要装
qBittorrent,同意就装上、打开局域网接口、配好,之后点「加入下载」是后台请求,
不弹窗不抢焦点。不想让它碰下载器加 --no-downloader;不想被问加 --yes。
装完之后在启动台双击 magnet.ai:不弹终端、不占 Dock,浏览器自己开页面。
已经装过 app、只想补下载器那一步:
magnet-ai-setup --configure-qbittorrent --apply它只做一件事:让 qBittorrent 认自己本机这个接口(会退出应用、只补缺的键、先存
.bak、再打开)。要重来一遍就加 --yes。要 macOS 12+ / Python 3.9(系统自带就够),
零第三方依赖。
editable 安装(开发用)
python3 -m venv .venv && . .venv/bin/activate
pip install -e ".[dev]" # 四个命令入口 + 测试依赖
magnet-ai-setup --apply --install-app状态:
magnet-ai0.6.0 已经在 PyPI 上(pipx install magnet-ai可用)。 之后的版本走.github/workflows/publish.yml(tag 触发 + trusted publisher)。
要 macOS 12+ / Python 3.9(系统自带就够),零第三方依赖。仓库里直接跑还可以用
./radar(等价于 python3 -m magnet_ai.server)。
第一次运行会在 ~/.magnet-ai/ 里生成 machine.json(这台机器是什么)、
config.json(你的设置)和 bootstrap.json(下载器那一步的进度,页面轮询它)。老版本用的是 ~/.radar/,升级后第一次运行会自动拷一份
过去、旧目录原样留着。magnet-ai-setup 会把本机的 agent CLI(claude / codex /
gemini / opencode)自动认出来写进 ai.cmd——它自己就是那个 AI,不用另外买 key。
想开机会自己起来:系统设置 → 通用 → 登录项 → 加 magnet.ai。
给 agent 用(MCP)
它同时是个 MCP server,一个文件,没有依赖。在 Claude Desktop / Cursor 的配置里加三行:
{
"mcpServers": {
"magnet-ai": { "command": "magnet-ai-mcp" }
}
}给 agent 的工具:
工具 | 干什么 |
| 一句话进,排好序的磁力列表出(含做种数、体积、这台机器能不能跑) |
| 把磁力交给本机下载器 |
| 传一个下载好的文件夹,出安装步骤; |
| 这台机器是什么,用来回答「我这台能不能跑」 |
用 agent 的时候你不需要打开网页——它在后台跑,agent 调它。
四样东西,不配也能跑(但会素)
要配的 | 不配会怎样 |
AI | 搜索按原词直搜(中文名基本搜不到),安装按 dmg/pkg/zip/exe 的固定套路走。设置页填个 key,或者把 |
索引器 | 只用内置的三个直连源(TPB / torrents-csv / RarBg)。有 qBittorrent 的话它自带的搜索插件会被自动发现 |
下载器 | 自动找 qBittorrent / Transmission / Motrix / Folx / Deluge / Vuze;一个都没有就把磁力复制到剪贴板。装 qBittorrent 与否、要不要开接口,装的时候会问你一次;开了之后递种子是后台请求,不弹窗、不抢焦点 |
wine 层 | 自动找 CrossOver / Whisky / Homebrew wine。都没有就装不了 Windows 版软件,Mac 原生的一样能装 |
三个设计决定
模型只提案,不执行。 它写出来的每一步都要过闸:动作必须在白名单里,路径必须是 包内此刻真实存在、
realpath之后仍然在包内的相对路径(符号链接逃逸也算越界), 后缀要对得上。编的路径、绝对路径、..、后缀不符的一律丢弃;丢空了就退回不依赖 AI 的确定性方案。判断不交给模型。 内核反作弊、Denuvo、Linux 包、只有补丁没有本体——这些是
rules.py里的硬规则,命中直接标红,模型只在你筛过的结果里挑。不绑定任何一家。 换下载器、换 wine 层、换 AI 后端,都是改表里一行。
装之前你会看到什么
install_folder默认只出方案。要真装得显式apply=true;想先看它会跑哪几条命令, 用dry_run=true,输出的就是逐条 argv,不碰磁盘。每个
.pkg装之前先pkgutil --check-signature,签名主体写进日志(没人签的也照 实说)。要硬性拒绝未签名的包,设MAGNET_AI_REQUIRE_SIGNED_PKG=1。.dmg一律只读挂载(hdiutil attach -readonly -noautoopen),卸载在finally里。脚本类补丁不经过 shell:直接执行,没有下位解释器才退回
/bin/sh。
它不带什么
不带索引器清单,不带磁力链,不带任何内容。catalog.json 和 essentials.json
在你本地生成,不进仓库。innoextract 用 brew install innoextract 装(比塞一个
exe 进仓库干净);VC6 运行库这类东西放在 ~/.magnet-ai/vendor/ 就会被自动补进瓶。
已知的边界
只在 macOS 上跑过。安装动作是
hdiutil/installer/ditto/osascript。Highball 只认不管:它能被检测到、能替你打开,但它没有命令行,建瓶和往里装 exe 只能你在它的界面里点。我不写一段假装能替你点的代码。
qBittorrent 的自动配置要退出应用再改配置,所以你在下载时它不会替你关掉—— 挑没在下东西的时候装,或者装完自己手动跑一次
--configure-qbittorrent。GUI 向导式安装器仍然要你自己点「下一步」,它只是把安装器启动起来并等它退出。
平台能不能跑这件事,现在是一张「要求表」加你本机的硬件算出来的结论,不是实测。
从 pip 安装时包里不带
assets/icon.png,所以--install-app生成的 app 没有 自定义图标(结构完整、能开);想要图标就从仓库跑。
开发
python3 -m venv .venv && . .venv/bin/activate
pip install -e ".[dev]"
pytest # 单测 + 真实跑一遍四个入口(沙箱 HOME,不碰你的 ~/.magnet-ai)
ruff check .
python -m build && twine check dist/*报 bug 请附 magnet-ai-setup --json 的输出和 ~/.magnet-ai/logs/ 里对应的那份日志。
免责
本项目只做检索与安装编排:不托管、不提供、不上传任何资源,也不替你判断某个资源的 合法性。索引器、磁力链和下载到的内容都由你自己选择,随之而来的版权与安全风险由使用 者自负。装任何来路不明的软件之前,先想清楚你在信谁。
License
MIT。仓库名是 magnet.ai,包名是 magnet-ai,数据目录是 ~/.magnet-ai——同一个东西。
什么情况下你会用到它
在 Mac 上想找某个软件 / 电影 / 剧 / 书 / 音乐,但不知道去哪搜、搜出来一堆看不懂的版本
qBittorrent 的搜索框搜不到中文资源,或者搜出来全是死种
下载下来是一个文件夹,里面套着 dmg、还有 pkg、还有补丁,不知道先点哪个
装完发现「这个游戏/软件我这台机器根本跑不动」,白下了 20G
常见问题
Mac 上怎么搜 BT / 磁力资源?
用这个。它是本机跑的一个面板,不依赖任何网站,搜索走你本机已有的索引器 (qBittorrent 的搜索插件)加三个公开直连源。
一定要装 qBittorrent 吗?
不一定。它认 qBittorrent / Transmission / Motrix / Folx / Deluge / Vuze,
一个都没有就把磁力复制到剪贴板,你自己贴。一个都没有时它会问一句要不要装
qBittorrent,--no-downloader 可以整段跳过。
要 API key 吗?
不要。它能直接调用你本机已有的 agent CLI(claude / codex / gemini / opencode), 那个 CLI 就是它的 AI,不用另外买。
支持 Windows 软件吗?
Mac 原生优先。Windows 版要靠 wine 层(CrossOver / Whisky),装了就能跑,没装就标红。
会不会上传我的东西?
不会。全程 127.0.0.1,没有账号、没有云端,配置和数据都在 ~/.magnet-ai/。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Search and get install details on MCP servers, right from your agent -- a unified marketplace index.
Agent-driven search: build, import, tune, search, and score result quality — all over MCP.
Search MCP servers, agent skills, tools and agents, with an install command for each.
Search, inspect and download subtitles for movies and TV from OpenSubtitles.com.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables interaction with qBittorrent through its Web API to search for torrents using search plugins and manage downloads. Supports torrent searching, downloading via URLs/magnet links, and torrent management operations like pause, resume, and delete.73-
- AlicenseAqualityDmaintenanceEnables AI assistants to interact with the M-Team private torrent tracker API for searching resources, retrieving torrent details, and downloading torrent files. It provides a bridge for Model Context Protocol clients to manage and access private tracker content through natural language.316 PyPI11MIT
- FlicenseNot gradedqualityDmaintenanceEnables searching and downloading torrents from iptorrents.com using browser cookie-based authentication, with features like filtering, sorting, and freeleech detection.-
- AlicenseNot gradedqualityCmaintenanceEnables an agent to submit magnet links to a Transmission daemon and monitor their download progress, including pausing, resuming, and listing torrents with verdicts like downloading, stalled, or complete.MIT