QBittorrent MCP
概述
本项目提供了一个通过MCP协议与QBittorrent WebUI进行交互的Python客户端,可以方便地管理QBittorrent中的种子。
安装
- 确保Python版本 >= 3.7
- 克隆本仓库
- 安装依赖:
pip install -r requirements.txt
配置
在qbittorrent-mcp.py中配置QBittorrent WebUI连接信息:
- 主机地址
- 端口号
- 用户名
- 密码
功能
- 连接QBittorrent WebUI
- 获取种子列表
- 暂停/恢复种子
- 删除种子
- 添加磁力链接
使用
# 连接QBittorrent
await connect(host, port, username, password)
# 获取种子列表
torrents = await list_torrents()
# 暂停种子
await pause_torrent(torrent_hash)
# 恢复种子
await resume_torrent(torrent_hash)
# 删除种子
await delete_torrent(torrent_hash)
# 添加磁力链接
await add_magnet(magnet_url)
依赖
- httpx
- mcp
许可证
MIT License
Metadata
Release files for qbittorrent-mcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| qbittorrent_mcp-0.1.0.tar.gz | 2.3 kB | Without provenance | Details for qbittorrent_mcp-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qbittorrent_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for qbittorrent_mcp-0.1.0-py3-none-any.whl |
Total release size: 4.8 kB
Release files / qbittorrent_mcp-0.1.0.tar.gz
| Download URL | qbittorrent_mcp-0.1.0.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
97d3405bbb4442e32f2e37445864c0366bc2e0cbc0eee7b4a17ad29207915d0d
|
|
BLAKE2b-256 checksum How to use checksums |
303f678c8c1954339b662d5df8c4eb0d0996750cd1dfb1f27251010289381e05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.6
|
Release files / qbittorrent_mcp-0.1.0-py3-none-any.whl
| Download URL | qbittorrent_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f2378c5813fc40fcc37a789c1526e0a3d6ee751df3c680843b9ae13fbe8ddf4a
|
|
BLAKE2b-256 checksum How to use checksums |
ea7e28a4e767002ac1c2cf13764f1b7e40a342ee60133a5f84f21812be407e2c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.6
|
Security for qbittorrent-mcp 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.