torrent-search-mcp
v4.7.0Torrent 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…
| Parameter | Type | Description |
|---|---|---|
query * | string | Optimized 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 * | string | User's overall intention (e.g. 'latest episode of Sample Show'). |
popular_torrents Popular Torrents
Get the most popular torrents right now across providers with an official top listing. Output is grouped per source (thepiratebay.org, uindex.org, 1337x.to, eztvx.to, yts.vg, nyaa.si), keeping up to `per_source` results per site, each site's entries pre-ranked by swarm health. # Response Requirements: - Recommend the **top 5-10** results maximum, focused on latest releases. - For each recommendation, include: Filename, Size, Seeds/Leechs, Date, Source, and a 1-sentence "Why this?" reason.
| Parameter | Type | Description |
|---|---|---|
per_source | integer | How many top results to keep per source (default 20). |
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.
| Parameter | Type | Description |
|---|---|---|
torrent_id * | string | Torrent 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).
| Parameter | Type | Description |
|---|---|---|
chat_id * | string | The owner's Telegram chat id the webapp access is bound to. |
code * | string | Pairing 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).
| Parameter | Type | Description |
|---|---|---|
chat_id * | string | The owner's Telegram chat id the torrent is sent to. |
filename * | string | Exact torrent filename shown in the search results. |
magnet_link * | string | Magnet 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… |
seeders | Optional seeder count. | |
size | Optional 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…