Skip to main content
Glama
Torrent Search MCP Server

Torrent Search MCP Server

by philogicae

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
YGG_PASSKEYNoYour YggTorrent passkey for interacting with the API. Found in 'Mon compte' -> 'Mes paramètres' on the YggTorrent website.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": true
}
resources
{
  "subscribe": false,
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
available_sourcesB

Get the list of available torrent sources.

search_torrentsB

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 this?" reason.

  • If results are poor, irrelevant or too diverse, suggest specific keywords to improve the search.

popular_torrentsB

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.

get_torrentA

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.

authorize_webappA

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 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).

forward_torrentA

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=' 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).

torrent_webappA

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 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 after 5 minutes.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 7 tools

Disambiguation4/5

Most tools have clearly distinct roles: search_torrents is keyword search, popular_torrents is a ranked top listing, get_torrent resolves an id to a magnet, and forward_torrent pushes to Telegram. The only mild overlap is search_torrents vs popular_torrents, since both return ranked torrent lists, but the 'discovery vs query' distinction is spelled out. torrent_webapp vs authorize_webapp are related but clearly separated into presentation and pairing flows.

Naming Consistency4/5

All names are snake_case and readable, with most following a verb_noun pattern (search_torrents, get_torrent, authorize_webapp, forward_torrent). Three tools deviate as bare noun phrases (available_sources, popular_torrents, torrent_webapp), so the pattern is not fully predictable. The deviation is systematic and non-confusing rather than chaotic.

Tool Count5/5

Seven tools is well-scoped for a torrent search server, covering search, discovery, retrieval, sharing, and webapp authorization without filler. Each tool maps to a concrete step in the user workflow and none appear redundant.

Completeness4/5

The core lifecycle is covered: discover sources, search or browse popular results, fetch a magnet, and forward it to the chat, with an auth flow for the webapp. Minor gaps exist, such as no way to add/configure sources (available_sources is read-only) and no category or quality filtering exposed as a dedicated operation, but agents can work around these via search keywords.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues