torrent-search-mcp

v4.7.0
torrent-search-mcp Checked 12 hours ago Published 2 days ago

Torrent Search MCP Server

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

available_sources Available Sources

Get the list of available torrent sources.

search_torrents Search Torrents

Perform an advanced torrent search across multiple providers. # Result Analysis & Ranking: 1. **Quality**: Prefer 1080p or 4k, over 720p. 2. **Efficiency**: Prefer h265/HEVC for better quality/size ratio. 3. **Health**: Maximize seeders + leechers. 4. **Size**: Prefer smaller files within the same quality bracket. 5. **Language**: Ultimately, if multiple equivalent options are available, choose the one with more languages. # Response Requirements: - Recommend the **top 3-5** results maximum. - For each recommendation, include: Filename, Size, Seeds/Leechs, Date, Source, and a 1-sentence "Why…

ParameterTypeDescription
query *stringOptimized search keywords, lowercase and space-separated. Strip generic terms (movie, torrent, download), filler words (the, a, of) and technical tags (1080p, h265, bluray) unless explicitly requested…
user_intent *stringUser's overall intention (e.g. 'latest episode of Sample Show').

get_torrent Get Torrent

Get the magnet link for a specific torrent by id. The result is wrapped in the untrusted-data fence: the magnet is the fenced value itself, the notice and tag lines are not part of the link.

ParameterTypeDescription
torrent_id *stringTorrent ID returned by a previous search_torrents or popular_torrents call.

authorize_webapp Authorize Webapp

Authorize a browser on the Torrent Search webapp via its pairing code. The code comes from an user interaction on the webapp: they click "Open in Telegram", scan the QR code, or copy the prompt message, which sends "Authorize <CODE> for Torrent Search" to you. Take the code from that message and call this tool with it and the user's Telegram chat id. Codes are single-use and expire after 5 minutes. After approval the user MUST go back to the webapp: the browser polls and completes the authentication there (it shows "Access granted" and unlocks the app permanently).

ParameterTypeDescription
chat_id *stringThe owner's Telegram chat id the webapp access is bound to.
code *stringPairing code shown in the webapp 'Telegram Access' gate.

forward_torrent Forward Torrent

Send a torrent (filename + magnet) to the user's Telegram chat. The forward goes through the Torrent Search REST API, which owns the Telegram bot token; when PRUNE_MAGNET_LINKS is enabled the magnet is pruned to 'magnet:?xt=urn:btih:HASH&dn=<filename>' before sending. Requires TORRENT_SEARCH_API_KEY (same value as the API server) and TORRENT_SEARCH_API_URL. Forwards are rate-limited per chat (20/min).

ParameterTypeDescription
chat_id *stringThe owner's Telegram chat id the torrent is sent to.
filename *stringExact torrent filename shown in the search results.
magnet_link *stringMagnet link of the torrent (from get_torrent, or from a search run with INCLUDE_LINKS=true), as the bare magnet: drop the untrusted-data notice and tag lines, they are not part of the link and would b…
seedersOptional seeder count.
sizeOptional human-readable size (e.g. '1.2 GiB').

torrent_webapp Torrent Webapp

Present the Torrent Search webapp and its Telegram pairing access system. Returns the webapp URL and how to get authorized by you. Tell the user to open the URL: on first visit the site shows a pairing dialog with a QR code and buttons ("Open in Telegram", "t.me" fallback, "Copy Prompt"). Ask the user to scan the QR code, click "Open in Telegram", or copy the prompt message and send it to you in the Telegram chat. That message ("Authorize <CODE> for Torrent Search") carries the code; when it arrives, extract it and call authorize_webapp with it and the user's Telegram chat id. Codes expire af…