Skip to main content
Glama
hubbertj

iptorrents MCP Server

by hubbertj

iptorrents MCP 服务器

用于从 iptorrents.com 搜索和下载种子的 MCP (Model Context Protocol) 服务器。

功能

  • 带有过滤和排序功能的种子搜索

  • 基于浏览器 Cookie 的身份验证(由于 Cloudflare Turnstile 的存在,不支持自动登录)

  • 种子元数据提取(做种数、下载数、大小、分类等)

  • Freeleech(免费下载)检测

Related MCP server: RuTracker MCP Server

安装

pip install -e .

使用方法

设置 iptorrents 身份验证的环境变量:

export IPTORRENTS_UID="<your_uid_cookie>"
export IPTORRENTS_PASS="<your_pass_cookie>"
export IPTORRENTS_CF_CLEARANCE="<cf_clearance_if_needed>"

从 iptorrents.com 获取 Cookie:

  1. 在浏览器中打开 https://iptorrents.com

  2. 登录

  3. 打开开发者工具 (F12)

  4. 进入“存储” (Storage) → “Cookie” → iptorrents.com

  5. 复制 uid、pass 和 cf_clearance 的值

运行服务器:

python -m iptorrents_mcp.main

工具

在 iptorrents.com 上搜索种子

参数:

  • query (string, 必填): 搜索关键词

  • limit (integer): 最大结果数(默认:10)

  • sort (string): 排序字段 (seeders, leechers, size, downloads, name, age)

示例:

search_iptorrents("The Office", limit=5, sort="seeders")

基于

灵感来源于 https://github.com/evanpurkhiser/iptorrents-cli - 这是实现正确 iptorrents API 交互的参考实现。

Related MCP Connectors

Related MCP Servers

  • F
    license
    A
    quality
    D
    maintenance
    Enables 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.
    7
    3
    -
  • F
    license
    Not graded
    quality
    B
    maintenance
    Allows users to search and browse torrents on rutracker.org, retrieving detailed metadata including magnet links and file lists. It automatically handles authentication by extracting session cookies from the Brave browser on macOS.
    -
  • F
    license
    A
    quality
    D
    maintenance
    Enables searching torrents, fetching metadata, and downloading torrent files from c411.org. It provides tools for accessing torrent comments and detailed infoHash metadata while maintaining authenticated sessions.
    4
    4
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables searching and downloading torrents from YggTorrent via MCP tools such as search_torrents, get_torrent_details, get_magnet_link, and download_torrent_file.
    MIT