Skip to main content
Glama
Transmission MCP server

Transmission MCP server

by rollecode

Transmission MCP server

Version Python Transmission Coverage

Drive a Transmission daemon from Claude.ai and Claude Code. Every method in the RPC specification is a tool, with every mutator torrent-set accepts and every field torrent-get returns.

WARNING

Using this server with a paid AI service costs money. Tool definitions and results are billed as input tokens, and an agent can call tools repeatedly on its own. You are responsible for every charge, so set spending limits with your provider. The author accepts no liability for any costs. SeeDISCLAIMER.md.

Why not the other options

  • Existing Transmission MCP servers cover roughly 19 of the 24 methods, and all of them hard-code one protocol generation

  • Transmission 4.1 renamed every RPC string to snake_case; Transmission 3 speaks only the old kebab-case names. This client probes once and then speaks whichever the daemon understands, so it works against both without configuration

Related MCP server: transmission-mcp-server

Coverage

Group

Methods

Covered

Torrent actions

5

5

Torrent accessor and mutator

2

2

Adding, removing, moving, renaming

4

4

Session

4

4

Queue

4

4

Blocklist, port test, free space

3

3

Bandwidth groups

2

2

A test asserts every method in the spec is reachable from a tool.

Tools

Reading

Tool

What you get

list_torrents

Every torrent with state, progress, speeds and a readable status name

get_torrent

One torrent in full: files, peers, trackers, tracker stats

list_torrent_fields

The field names list_torrents accepts

get_session

Every session setting and the daemon version

get_session_stats

Transfer totals, active counts, current speeds

get_free_space

Free space in a directory the daemon can see

test_port

Whether the peer port is reachable from outside

get_bandwidth_groups

Bandwidth groups and their limits

Torrents

Tool

What it does

add_torrent

Add from a magnet link, URL, local .torrent file or base64 metainfo

remove_torrent

Remove torrents, optionally deleting the data

start_torrents

Start, respecting the queue

start_torrents_now

Start immediately, jumping the queue

stop_torrents

Stop

verify_torrents

Re-check data against its hashes

reannounce_torrents

Ask trackers for more peers now

set_torrent

Every per-torrent setting: limits, labels, file priorities, trackers, seeding rules

move_torrent_data

Move the data, or record where you already moved it

rename_torrent_path

Rename a file or directory inside a torrent

Queue and session

Tool

What it does

queue_move_top

To the front of the queue

queue_move_up

One place up

queue_move_down

One place down

queue_move_bottom

To the back

set_session

Change any session setting

set_bandwidth_group

Create or change a bandwidth group

update_blocklist

Fetch a fresh blocklist

shutdown_daemon

Stop the daemon

Setup

git clone https://github.com/rollecode/transmission-mcp.git
cd transmission-mcp
uv venv && uv pip install -e .
export TRANSMISSION_URL=http://127.0.0.1:9091/transmission/rpc
export TRANSMISSION_USERNAME=...   # only if rpc-authentication-required is on
export TRANSMISSION_PASSWORD=...

The URL defaults to http://127.0.0.1:9091/transmission/rpc. A .env in the working directory works too.

Claude Code

claude mcp add transmission -- /path/to/transmission-mcp/.venv/bin/transmission-mcp

Ids

Anywhere a tool takes ids, it accepts torrent numbers, hash strings, or the literal recently-active. Omitting them means every torrent, which is why remove_torrent requires them.

Hosting it

Running it over HTTP puts it in reach of Claude.ai as a custom connector, and of Claude Code on other machines. Three tiers, the same shape the other servers in this family use:

Tier

Port

What it does

transmission-mcp

8510

The server. No login of its own, never exposed

nginx

8511

Front door, behind a Cloudflare Tunnel

auth-server.js

8512

OAuth 2.1 sign-in, or a fixed bearer token

npm install
node set-password.js 'a password for the sign-in page'
printf 'TRANSMISSION_URL=...\n' > ~/.config/transmission-mcp/env
chmod 600 ~/.config/transmission-mcp/env

Copy systemd/*.service into /etc/systemd/system/, replacing YOUR_USER and the ISSUER hostname, then:

sudo systemctl enable --now transmission-mcp transmission-mcp-auth

Point nginx/transmission-mcp.conf at your own hostname and send the tunnel at 127.0.0.1:8511.

Environment the server itself reads: TRANSMISSION_URL, TRANSMISSION_USERNAME, TRANSMISSION_PASSWORD. The sign-in page carries the Transmission mark and accent colour, set through APP_NAME, APP_ACCENT and APP_BLURB in the auth unit.

Claude.ai

Settings, Connectors, Add custom connector, URL https://transmission-mcp.your-domain/mcp, client ID and secret blank. The sign-in page asks for the password set above. Connectors belong to the account, so adding it once covers mobile too.

Development

uv pip install -e . pytest ruff
.venv/bin/python -m pytest tests
.venv/bin/ruff check .

Available Tools

27 tools
add_torrentA
Idempotent

Add a torrent from a magnet link, a URL, a local file or raw metainfo.

Args: filename: A magnet link or the URL of a .torrent file. torrent_file: Path to a .torrent file on this machine, read and encoded for you. metainfo: Base64 .torrent contents, if you already have them. download_dir: Where to put the data. Defaults to the session setting. paused: Add without starting. labels: Labels to attach. peer_limit: Maximum peers for this torrent. bandwidth_priority: -1 low, 0 normal, 1 high. files_wanted: Indices of files to download. Omit for all. files_unwanted: Indices of files to skip. priority_high: Indices of files to fetch first. priority_low: Indices of files to fetch last. priority_normal: Indices of files at normal priority. cookies: Cookies to send when fetching a .torrent URL. sequential_download: Download pieces in order rather than rarest first.

Inputs: labels, paused, cookies, filename, +11 more. Returns: result

get_bandwidth_groupsA
Read-onlyIdempotent

Get bandwidth groups and their speed limits.

Args: group: One group name. Omit for every group.

Inputs: group. Returns: result

get_free_spaceA
Read-onlyIdempotent

Get free space in a directory the daemon can see.

Args: path: A directory path on the machine running Transmission, not on this one.

Inputs: path (required). Returns: result

get_result_pageA
Read-onlyIdempotent

Read more of a result that was too large to return in one piece.

Any tool whose answer is too large returns its first page with a paging block. Pass that block's result_id here. Nothing is fetched again: the stored result is paged, filtered and narrowed.

Args: result_id: From the paging block of the earlier answer. offset: First item to return, usually the previous next_offset. limit: At most this many items. Fewer come back if they would not fit. fields: Only these keys of each item. Dots reach nested keys, such as "statistics.sizeOnDisk". The paging.fields list shows what exists. match: Keep only items whose field contains this text, ignoring case, for example {"title": "alien", "year": "1979"}. path: Which list to page when the result holds several, as named in paging.lists. Defaults to the largest.

Inputs: result_id (required), path, limit, match, +2 more. Returns: result

get_sessionA
Read-onlyIdempotent

Get every session setting and the daemon's version.

Inputs: no named parameters. Returns: result

get_session_statsA
Read-onlyIdempotent

Get transfer totals, active torrent counts and current speeds.

Inputs: no named parameters. Returns: result

get_torrentA
Read-onlyIdempotent

Get every field for one torrent, including files, peers and trackers.

Args: id: A torrent id or hash string.

Inputs: id (required). Returns: result

list_torrent_fieldsA
Read-onlyIdempotent

List every field list_torrents can ask for.

Inputs: no named parameters. Returns: result

list_torrentsA
Read-onlyIdempotent

List torrents with their state, progress and speeds.

Args: ids: Torrent ids or hash strings, or the literal "recently-active" for everything that changed since the last such call. Omit for all torrents. fields: Which fields to return. Omit for every field. Naming a few keeps the response small on a large library.

Inputs: ids, fields. Returns: result

move_torrent_dataA
Idempotent

Move a torrent's data to another directory, or tell it where the data is.

Args: ids: Torrent ids or hash strings. location: The target directory. move: True moves the existing files there. False only updates the recorded path, for data you already moved yourself.

Inputs: ids (required), location (required), move. Returns: result

queue_move_bottomA
Idempotent

Move torrents to the back of the queue.

Args: ids: Torrent ids or hash strings.

Inputs: ids (required). Returns: result

queue_move_downB
Idempotent

Move torrents one place down the queue.

Args: ids: Torrent ids or hash strings.

Inputs: ids (required). Returns: result

queue_move_topB
Idempotent

Move torrents to the front of the queue.

Args: ids: Torrent ids or hash strings.

Inputs: ids (required). Returns: result

queue_move_upB
Idempotent

Move torrents one place up the queue.

Args: ids: Torrent ids or hash strings.

Inputs: ids (required). Returns: result

reannounce_torrentsB
Idempotent

Ask the trackers for more peers now.

Args: ids: Torrent ids or hash strings. Omit for every torrent.

Inputs: ids. Returns: result

remove_torrentA
DestructiveIdempotent

Remove torrents, optionally deleting their downloaded files.

Args: ids: Torrent ids or hash strings. Required -- this tool never defaults to every torrent. delete_local_data: True also erases the downloaded files from disk. This cannot be undone.

Inputs: ids (required), delete_local_data. Returns: result

rename_torrent_pathA
Idempotent

Rename a file or directory inside one torrent.

Args: id: A single torrent id or hash string. Renaming is one torrent at a time. path: The current path, relative to the torrent's own root. name: The new name for that one path segment.

Inputs: id (required), name (required), path (required). Returns: result

set_bandwidth_groupA
Idempotent

Create or change a bandwidth group.

Args: name: Group name. A name that does not exist yet is created. honors_session_limits: Whether the session's own limits also apply. speed_limit_down: Download cap for the group in kB/s. speed_limit_down_enabled: Whether the download cap applies. speed_limit_up: Upload cap for the group in kB/s. speed_limit_up_enabled: Whether the upload cap applies.

Inputs: name (required), speed_limit_up, speed_limit_down, honors_session_limits, +2 more. Returns: result

set_sessionA
Idempotent

Change session settings.

Args: settings: Setting names exactly as get_session reports them, mapped to new values. For example {"speed-limit-down": 5000, "speed-limit-down-enabled": true} or {"download-dir": "/mnt/media"}. Read get_session first to see the current names and values, which differ between Transmission 3 and 4.

Inputs: settings (required). Returns: result

set_torrentA
Idempotent

Change any per-torrent setting. Every mutator the RPC accepts is here.

Args: ids: Torrent ids or hash strings. bandwidth_priority: -1 low, 0 normal, 1 high. download_limit: Download cap in kB/s. download_limited: Whether download_limit applies. files_wanted: Indices of files to download. files_unwanted: Indices of files to skip. group: Bandwidth group name. honors_session_limits: Whether session speed limits apply. labels: Replace the torrent's labels. location: New data directory. This only records the path; use move_torrent_data to move the files. peer_limit: Maximum peers. priority_high: File indices to fetch first. priority_low: File indices to fetch last. priority_normal: File indices at normal priority. queue_position: Position in the queue, counting from 0. seed_idle_limit: Minutes of no activity before seeding stops. seed_idle_mode: 0 global setting, 1 seed_idle_limit, 2 unlimited. seed_ratio_limit: Stop seeding at this ratio. seed_ratio_mode: 0 global setting, 1 seed_ratio_limit, 2 unlimited. sequential_download: Download pieces in order. tracker_add: Tracker announce URLs to add. Deprecated by Transmission in favour of tracker_list. tracker_list: The whole tracker list as text: URLs separated by newlines, tiers separated by a blank line. tracker_remove: Tracker ids to remove. Deprecated in favour of tracker_list. tracker_replace: Pairs of tracker id and new URL. Deprecated in favour of tracker_list. upload_limit: Upload cap in kB/s. upload_limited: Whether upload_limit applies.

Inputs: ids (required), group, labels, location, +22 more. Returns: result

shutdown_daemonA
DestructiveIdempotent

Shut the Transmission daemon down.

Every torrent stops and the daemon exits. Nothing here can start it again.

Inputs: no named parameters. Returns: result

start_torrentsA
Idempotent

Start torrents, respecting the download queue.

Args: ids: Torrent ids or hash strings. Omit to start every torrent.

Inputs: ids. Returns: result

start_torrents_nowA
Idempotent

Start torrents immediately, jumping the download queue.

Args: ids: Torrent ids or hash strings. Omit for every torrent.

Inputs: ids. Returns: result

stop_torrentsA
Idempotent

Stop torrents.

Args: ids: Torrent ids or hash strings. Omit to stop every torrent.

Inputs: ids. Returns: result

test_portA
Read-onlyIdempotent

Check whether the peer port is reachable from outside.

Inputs: no named parameters. Returns: result

update_blocklistA
Idempotent

Download a fresh copy of the blocklist and report its size.

Inputs: no named parameters. Returns: result

verify_torrentsA
Idempotent

Re-check torrent data against its hashes.

Verification restarts the torrent's progress from zero while it runs.

Args: ids: Torrent ids or hash strings. Omit for every torrent.

Inputs: ids. Returns: result

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 27 tools

    Disambiguation4/5

    Almost every tool targets a distinct resource+action, and descriptions are unusually thorough about differences (e.g. set_torrent's location vs move_torrent_data, start_torrents vs start_torrents_now). The only mild confusions are the start_torrents/start_torrents_now pair and set_torrent overlapping move/queue operations, but documentation resolves them.

    Naming Consistency5/5

    All names use a consistent snake_case verb_noun pattern (get_session, set_torrent, list_torrents, add_torrent, remove_torrent, move_torrent_data). Variants like queue_move_top and start_torrents_now stay within the same convention and remain readable.

    Tool Count3/5

    27 tools is heavy for a single daemon client and exceeds the comfortable range. Some could consolidate (e.g. the four queue_move_* tools into one parameterized tool), though each tool does map to a real, distinct RPC capability.

    Completeness5/5

    The surface covers the full torrent lifecycle (add/get/list/remove/set/move/rename/verify), queue control, bandwidth groups, session settings, blocklist, port test, free space, and even result paging. No obvious gaps or dead ends for the stated purpose.

    Maintenance

    ActivitySlowing
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides tools for interacting with the Transmission BitTorrent client via natural language, enabling users to manage torrents, configure download settings, and monitor download activity.
      4
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables controlling a Transmission torrent daemon, allowing adding, listing, controlling torrents and checking free space, with support for SOCKS5 proxy for remote access.
      -
    • A
      license
      C
      quality
      B
      maintenance
      Enables full control of Sonarr from Claude.ai and Claude Code by exposing all 234 v3 API operations as tools for managing media libraries.
      235
      MIT
    • A
      license
      C
      quality
      B
      maintenance
      Exposes all 209 Audiobookshelf API routes as tools, letting Claude.ai and Claude Code manage libraries, books, podcasts, playback, users, settings, and more.
      212
      MIT