Skip to main content

QBittorrent MCP Server

Project description

QBittorrent MCP

概述

本项目提供了一个通过MCP协议与QBittorrent WebUI进行交互的Python客户端,可以方便地管理QBittorrent中的种子。

安装

  1. 确保Python版本 >= 3.7
  2. 克隆本仓库
  3. 安装依赖:
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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qbittorrent_mcp-0.1.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qbittorrent_mcp-0.1.0-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file qbittorrent_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: qbittorrent_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for qbittorrent_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 97d3405bbb4442e32f2e37445864c0366bc2e0cbc0eee7b4a17ad29207915d0d
MD5 212a0c42734a880ef872bb0809c9c93a
BLAKE2b-256 303f678c8c1954339b662d5df8c4eb0d0996750cd1dfb1f27251010289381e05

See more details on using hashes here.

File details

Details for the file qbittorrent_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for qbittorrent_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f2378c5813fc40fcc37a789c1526e0a3d6ee751df3c680843b9ae13fbe8ddf4a
MD5 c87fca3fdccdc36eae9d0a01df7455b0
BLAKE2b-256 ea7e28a4e767002ac1c2cf13764f1b7e40a342ee60133a5f84f21812be407e2c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page