sf-mm-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@sf-mm-mcpSearch for the movie Interstellar and find torrents"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
sf-mm-mcp
An MCP server that exposes moviemagnet.site (movies) and showfeed.site (TV shows) to LLM clients, with put.io as the download backend.
Search a title, find magnet links ranked by seeders, and start the download on put.io — all from inside Claude Desktop, Claude Code, opencode, or any other MCP client.
npx sf-mm-mcp login # one-time put.io sign-in
npx sf-mm-mcp # start the server on stdioSetup
1. Add the server to your MCP client
The put.io app id (9525) is built in, so there is nothing to configure for a default
install.
Claude Desktop (claude_desktop_config.json), Claude Code (.mcp.json), and opencode
(opencode.json) all use the same shape:
{
"mcpServers": {
"sf-mm": {
"command": "npx",
"args": ["-y", "sf-mm-mcp"]
}
}
}opencode
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"sfmm": {
"type": "local",
"command": ["npx", "-y", "sf-mm-mcp"],
"enabled": true
}
}
}opencode prefixes tool names with the server name, so the tools appear as
sfmm_movies_search, sfmm_putio_login, and so on. Verify the connection with
opencode mcp list.
Note that opencode mcp auth does not apply here. That command drives OAuth for
remote MCP servers via dynamic client registration; this is a local stdio server that
manages its own put.io credential. Use the sign-in below instead.
See docs/clients.md for Cursor, VS Code, Windsurf, Zed,
Cline and others.
2. Sign in
Either run npx sf-mm-mcp login in a terminal, or ask your assistant to call the
putio_login tool and follow the instructions it returns.
putio_login is non-blocking by design, so the in-chat flow works: the tool returns a
code immediately, you enter it at put.io/link, and putio_auth_status confirms. The token
is stored per-machine, so signing in once covers every MCP client on that machine.
Related MCP server: M-Team MCP Server
Authentication
The default is put.io's OOB (out-of-band) device flow: the server requests a short code, you enter it at https://put.io/link, and the server polls until it is linked.
This is the default rather than the more familiar redirect flow for a specific reason: an npx-distributed package cannot hold a client secret. Anything baked into the tarball is readable by everyone who installs it. The OOB flow needs no secret and no loopback listener, so it also works over SSH and inside containers.
If you control the environment and prefer the redirect flow, set:
SF_MM_AUTH_FLOW=loopback
PUTIO_CLIENT_SECRET=... # supply it yourself; never commit it
PUTIO_REDIRECT_URI=http://127.0.0.1:41830/callbackThe redirect URI must match one registered on your put.io app. state is generated per
handshake and verified on the callback.
Where the token is stored
In order of preference:
PUTIO_TOKENenvironment variable, if set (nothing is persisted).OS keychain — macOS Keychain via
security, Linux viasecret-tool.A
0600file at~/.config/sf-mm-mcp/token.json.
npx sf-mm-mcp status reports which backend is in use. npx sf-mm-mcp logout clears it.
Tools
Discovery — no sign-in required
Tool | Purpose |
| Find movies by title, returns IMDb ids |
| Full details for one movie |
| Most-viewed movies on moviemagnet.site |
| Find TV shows by title |
| Show details plus episode list, optionally one season |
| Most-viewed shows on showfeed.site |
Torrents — sign-in required
Tool | Purpose |
| Magnets for a movie, filterable by resolution and seeders |
| Magnets for a show, filterable by season, episode, resolution |
Results are normalised to {title, magnet, sizeHuman, seeders, resolution, season, episode, ageDays}
and sorted by seeder count.
put.io — sign-in required
Tool | Purpose |
| Start a download from a magnet or URL |
| List transfers with progress |
| Poll a single transfer |
| Cancel or remove transfers |
| Clear completed transfer entries |
| Username and disk usage |
| Browse files and folders |
| Read and edit the favorites list |
Favorites are stored in the put.io account config under the same favorites key the two
websites use, so the list stays in sync across all three.
Auth
putio_login, putio_auth_status, putio_logout.
putio_login returns instructions immediately rather than blocking — waiting for a human
to finish a browser flow would hold the tool call open for minutes and most clients time
out first. Poll putio_auth_status to confirm.
Configuration
All optional.
Variable | Default | Purpose |
|
| put.io OAuth app id (public); override to use your own app |
| — | Use a token directly, skipping sign-in |
|
|
|
| — | Only for |
|
| Only for |
|
| Point at a dev instance |
|
| Point at a dev instance |
|
| |
|
| Require |
|
| Torrent result cache, seconds |
|
| Metadata cache, seconds |
|
|
|
|
|
|
Caching and rate limits
Both websites validate the put.io token on every /api/torrent request, and that endpoint
fans out to torrent indexers. An LLM will call these far more eagerly than a human
clicking through a web page, so this server:
caches torrent results (15 min) and metadata (1 hour) in process,
de-duplicates concurrent identical requests,
caches token-validation results for 10 minutes rather than revalidating per call,
honours put.io's
429plusX-RateLimit-Resetheaders with backoff,never retries a write, so a transfer cannot be silently created twice.
Development
npm install
npm run build
npm run typecheck
npm test # boots the server, asserts tool surface; no network
npm run smoke # exercises the live public endpoints over MCP stdionpm test is network-free on purpose, so CI does not go red because a torrent
indexer is having a bad day. It runs with SF_MM_TOKEN_STORE=none so it cannot
accidentally pick up a developer's real token and skip the auth-gating checks.
Releasing
npm version patch && git push --follow-tagsPublishing runs from GitHub Actions on a version tag. There is no npm token anywhere: the workflow authenticates with npm via OIDC trusted publishing, which also generates a provenance attestation automatically.
npm version patch # or minor / major - commits and tags
git push --follow-tags.github/workflows/publish.yml then refuses to continue unless:
the tag matches
package.jsonversion exactly,that version is not already on npm,
typecheck, build and the tool-surface test all pass,
no
.envfile made it into the tarball.
To rehearse without publishing, run the workflow manually from the Actions tab
with dry-run left checked. Full detail in
docs/releasing.md.
Documentation
Design decisions and why the alternatives lost | |
Credential model; why there is no client secret | |
The two sites' API surface and its quirks | |
Configuration for every common MCP client | |
Release procedure and CI guards |
Agents should start at AGENTS.md.
Point at local dev servers with MOVIEMAGNET_BASE_URL=http://localhost:5173.
Notes on the upstream APIs
Neither site publishes a schema, so the shapes in src/schemas.ts were derived by reading
the SvelteKit route handlers and probing the live endpoints. Two things worth knowing:
Both sites expect the put.io token in a bare
Authorizationheader with noBearerprefix. This client matches that.Neither site has a "create transfer" endpoint — the web apps do it client-side. So transfers, account info, and favorites go directly to
api.put.io.
Validation failures are logged rather than swallowed, so upstream schema drift shows up as a warning on stderr instead of a silent "no results found".
A bug this client used to work around
Both sites once returned 500 on the first request for any given title, because
torrentService.js destructured the Jackett response as const { instance, data: results }
— declaring a new block-scoped results that shadowed the outer one, leaving it undefined
on every cache miss. It hid well: the shadowed value was still written to Redis, so a retry
hit the cache and succeeded. Titles with zero indexer results were never cached and so
failed permanently.
Fixed and deployed in both apps (showfeed-app@6640310, moviemagnet-app@77b22fe),
along with queryMultipleServices, which only ever called resolve and therefore hung
forever if every indexer failed.
The 5xx retry in this client predates those fixes. It is kept because indexers still fail
transiently, but it is no longer masking a deterministic upstream failure. Full write-up in
docs/upstream-apis.md.
Credits
Logo icons from pepicons by CyCraft, licensed CC BY 4.0.
See assets/README.md.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/githendrik/sf-mm-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server