Skip to main content
Glama
TorrentClaw-MCP

TorrentClaw-MCP

Official
by torrentclaw

torrentclaw-mcp

npm version License: MIT CI Node.js

Model Context Protocol server for TorrentClaw — giving AI assistants the ability to search movies and TV shows, find torrents with magnet links, check streaming availability, and explore cast/crew metadata.

torrentclaw-mcp is developed by TorrentClaw as part of its open-source ecosystem. It wraps the TorrentClaw API into the MCP standard so that any compatible AI assistant (Claude, GPT, etc.) can access the platform's search and discovery features natively.

Quick Start

npx torrentclaw-mcp

No API key required (optional for higher rate limits).

Related MCP server: Arr Suite MCP Server

What can it do?

Tools

Tool

Description

search_content

Search movies/shows with filters (query, type, genre, year, rating, quality, language, audio, HDR, season, episode, sort). Returns torrents, magnet links, and optional streaming info.

autocomplete

Type-ahead search suggestions (up to 8 results). Use to validate titles before a full search.

get_popular

Get popular content ranked by user clicks

get_recent

Get recently added content

get_watch_providers

Streaming availability by country (Netflix, Disney+, etc.)

get_credits

Cast and director for a title

get_torrent_url

Get .torrent file download URL from info hash

track_interaction

Track user interaction with a torrent (magnet click, download, copy)

submit_scan_request

Submit a torrent for audio/video quality analysis via TrueSpec

get_scan_status

Check the status of a torrent scan request

Resources

URI

Description

torrentclaw://stats

Catalog statistics (content/torrent counts by source)

Prompts

Prompt

Description

search_movie

Search for a movie by title and get torrents + streaming

search_show

Search for a TV show by title and get torrents

whats_new

Discover recently added movies and TV shows

where_to_watch

Find where to stream, rent, or buy a title

Configuration

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "torrentclaw": {
      "command": "npx",
      "args": ["-y", "torrentclaw-mcp"]
    }
  }
}

Claude Code

Add to .mcp.json or ~/.claude/settings.json:

{
  "mcpServers": {
    "torrentclaw": {
      "command": "npx",
      "args": ["-y", "torrentclaw-mcp"]
    }
  }
}

Environment Variables

Variable

Default

Description

TORRENTCLAW_API_URL

https://torrentclaw.com

Base URL of the TorrentClaw API

TORRENTCLAW_API_KEY

(none)

Optional API key for authenticated access (higher rate limits)

Project Structure

.
├── src/
│   ├── index.ts              # MCP server entry point
│   ├── config.ts             # Configuration & URL validation
│   ├── api-client.ts         # TorrentClaw API client with caching
│   ├── types.ts              # TypeScript interfaces for API responses
│   ├── prompts.ts            # MCP prompt definitions
│   ├── tools/                # MCP tool implementations
│   │   ├── search-content.ts
│   │   ├── autocomplete.ts
│   │   ├── get-popular.ts
│   │   ├── get-recent.ts
│   │   ├── get-watch-providers.ts
│   │   ├── get-credits.ts
│   │   ├── get-torrent-url.ts
│   │   ├── track-interaction.ts
│   │   └── scan-request.ts
│   ├── formatters/           # Output formatting
│   │   ├── content.ts
│   │   ├── providers.ts
│   │   └── credits.ts
│   └── resources/            # MCP resources
│       └── stats.ts
├── tests/                    # Test suite (vitest)
├── .github/workflows/        # CI/CD (lint, build, test, release)
├── lefthook.yml              # Git hooks (commit lint, prettier, tsc)
├── Makefile                  # Dev workflow (build, test, lint, fmt)
├── CONTRIBUTING.md           # Contribution guidelines
├── LICENSE                   # MIT
└── README.md

Development

git clone https://github.com/torrentclaw/torrentclaw-mcp.git
cd torrentclaw-mcp
make install-tools
make hooks
make build && make test

Test with MCP Inspector:

npx @modelcontextprotocol/inspector node build/index.js

About TorrentClaw

TorrentClaw is an open platform focused on improving the quality and reliability of torrent metadata. Our mission is to make torrent search engines more accurate and the torrent ecosystem healthier — by building tools that verify, enrich, and standardize metadata across the network.

torrentclaw-mcp is part of the TorrentClaw open-source ecosystem, alongside TrueSpec (torrent metadata verification).

Contributing

See CONTRIBUTING.md for guidelines.

License

MIT License — see LICENSE for details.

Available Tools

10 tools
autocompleteA

Get type-ahead search suggestions for movies and TV shows. Use this to validate or disambiguate a title before calling search_content. Returns up to 8 suggestions with id, title, year, and content type. Much faster than a full search.

Inputs: query (required).

get_creditsA

Get the director and top 10 cast members (with character names) for a movie or TV show. Use when the user asks about actors, cast, director, or 'who is in' a title. Requires content_id from search_content results.

Inputs: content_id (required).

get_recentA

Get the most recently added movies and TV shows, sorted by addition date. Use when the user asks 'what's new', 'latest additions', or 'recently added'. Returns a paginated list with title, year, type, ratings, date added, and content_id. Note: results do NOT include torrents — to get torrents for a title, call search_content with its name.

Inputs: limit, page, locale.

get_scan_statusA

Check the status of a torrent audio/video scan request. Returns the current scan status (pending, scanning, completed, failed). Use after submit_scan_request.

Inputs: info_hash (required).

get_torrent_urlA

Get a direct .torrent file download URL from an info_hash. Use when the user specifically wants a .torrent file rather than a magnet link (magnet links are already in search_content results). Returns a single URL the user can open in their browser or torrent client.

Inputs: info_hash (required).

get_watch_providersA

Check where a movie or TV show is available to stream, rent, or buy (Netflix, Disney+, Amazon Prime, etc.) in a specific country. Requires content_id from search_content results. Note: if you passed country to search_content, streaming info is already in those results — use this tool only for a different country or to get more detail. Returns grouped providers: Stream (subscription), Free, Rent, Buy.

Inputs: content_id (required), country.

search_contentA

Search for movies and TV shows by title, genre, year, rating, or quality. Returns matching content with metadata (title, year, genres, IMDb/TMDB ratings) and torrent download options (magnet links, quality, seeders, file size). This is the primary tool — use it first when a user asks to find, download, or learn about a movie or TV show. Results include a content_id needed by get_watch_providers and get_credits. For TV shows, you can filter by season/episode. Season/episode can also be auto-detected from the query (e.g. 'Bluey s01e05'). IMPORTANT: When presenting results to users, make magnet links clickable using markdown format Download, include the contentUrl for browsing all seasons/episodes, and present the information in a user-friendly format rather than raw tables.

Inputs: query (required), type, genre, year_min, +15 more.

submit_scan_requestA

Submit a torrent for audio/video quality analysis (codec, tracks, resolution, HDR). Use when the user wants to know the exact media specs of a torrent before downloading. Results are not instant — use get_scan_status to check progress. Rate limited to 5 requests per hour.

Inputs: info_hash (required), email (required).

track_interactionA

Track a user interaction with a torrent (magnet link click, .torrent download, or hash copy). Use this after presenting a magnet link or torrent URL to the user, to keep popularity stats accurate. Fire-and-forget — does not block.

Inputs: info_hash (required), action (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 10 tools

    Disambiguation5/5

    Each tool has a distinct, well-defined purpose with minimal overlap. For example, autocomplete provides suggestions, search_content is the primary search tool, get_credits retrieves cast info, and get_torrent_url handles .torrent file downloads. The descriptions clearly differentiate when to use each tool, preventing misselection.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern (e.g., get_credits, search_content, submit_scan_request). The naming is uniform across all 10 tools, using snake_case and clear action-object pairs, making the set predictable and easy to understand.

    Tool Count5/5

    With 10 tools, the server is well-scoped for its torrent and media search domain. The tools cover key workflows like searching, getting metadata, checking availability, and handling torrents, without being overwhelming. Each tool serves a specific, justified role in the overall functionality.

    Completeness4/5

    The toolset provides comprehensive coverage for torrent discovery and media information, including search, metadata, popularity, credits, watch providers, and torrent analysis. A minor gap is the lack of a tool for managing user preferences or saved content, but core operations are well-covered, allowing agents to handle most user requests effectively.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides integration with The Movie Database (TMDB) API for searching movies, TV shows, and people, accessing detailed information, and discovering popular and trending content. Enables AI assistants to access comprehensive movie and television metadata including ratings, cast, crew, and overviews.
      1
      ISC
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables natural-language discovery and resolution of movies and TV shows into verified canonical media, then requesting them through an existing Seerr/Radarr/Sonarr stack. Exposes these capabilities via MCP tools and a REST API for AI agents.
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI agents to search and explore movies, TV shows, people, trending titles, recommendations, and streaming availability. Supports discovery by genre, year, score, runtime, language, and streaming service with compact, typed outputs.
      10
      MIT