Skip to main content
Glama
cross-seed-mcp

cross-seed-mcp

by arr-mcps
README.md
# cross-seed-mcp

Part of the [arr-mcps](https://github.com/arr-mcps/arr-mcps) collection.
An MCP server exposing [cross-seed](https://www.cross-seed.org)'s REST API
as tools for triggering searches, evaluating announce candidates, running
scheduler jobs ahead of schedule, and checking liveness.

## Requirements

- cross-seed with its HTTP API reachable (tested against 6.13.9)
- Python 3.11+ and `uv` for source development

## Configuration

| Variable | Required | Description |
| --- | --- | --- |
| `CROSS_SEED_URL` | Yes | cross-seed base URL, for example `http://10.10.10.23:2468` (no path suffix; the server uses `/api/*` paths as-is). |
| `CROSS_SEED_API_KEY` | Mostly | API key sent as `X-Api-Key`. Required for everything except `GET /api/ping`. |

Install a built wheel and register it with Claude Code:

```bash
uv tool install cross_seed_mcp-*.whl
claude mcp add cross-seed \
  --env CROSS_SEED_URL=http://10.10.10.23:2468 \
  --env CROSS_SEED_API_KEY=... \
  -- cross-seed-mcp
```

For a source checkout:

```bash
uv sync
claude mcp add cross-seed \
  --env CROSS_SEED_URL=http://10.10.10.23:2468 \
  --env CROSS_SEED_API_KEY=... \
  -- uv run --directory /path/to/cross-seed-mcp cross-seed-mcp
```

## Tools

**3 resource-scoped tools** cover all 5 cross-seed REST operations via an
`operation` parameter. Call a tool with `operation` set to one of its listed
operations and an `arguments` dict matching that operation's parameters. Each
tool's own description (visible to your MCP client) lists every operation, its
signature, and a one-line doc, so no discovery round-trip is needed.

| Tool | Operations | Covers |
| --- | --- | --- |
| `cross_seed_ingest` | 2 | Webhook search trigger, autobrr announce candidate check |
| `cross_seed_jobs` | 1 | Run a scheduler job (rss, search, updateIndexerCaps, inject, cleanup) ahead of schedule |
| `cross_seed_system` | 2 | Ping (no auth) and authenticated status checks |

Endpoint-level naming (`cross_seed_<area>_<verb>_<resource>`) is kept as the
`operation` value, so the full endpoint list is discoverable from each group
tool's description at runtime. Only the `system` group is marked
`readOnlyHint=True`; the ingest and jobs groups contain POST triggers.

Example:

```text
cross_seed_system(operation="cross_seed_status", arguments={})
cross_seed_ingest(operation="cross_seed_webhook_trigger_search", arguments={"infoHash": "<40 hex chars>", "includeSingleEpisodes": true})
cross_seed_jobs(operation="cross_seed_run_job", arguments={"name": "rss"})
```

Notes on special operations:

- cross-seed signals success with HTTP status, not bodies. The ingest/job
  operations return small dicts translating the status: webhook 204 means
  "search queued"; announce 204 means "no match (ignored)", 200 "matched",
  202 "matched but torrent incomplete"; job 200 carries the server's
  confirmation text (e.g. `rss: running ahead of schedule`).
- The webhook trigger needs exactly one of `infoHash` (40 hex chars,
  recommended) or `path` (must exist on the cross-seed host).
- The announce check needs `name`, `guid`, `link` (guid and link must be
  identical URLs), and `tracker`; a 204 (the normal "rejected" outcome for
  autobrr filters) is a success, not an error.
- Error statuses (400 invalid params, 401 bad key, 404 job disabled, 409 job
  already running or not yet eligible, 500 announce failure) surface as
  `ToolError` with the status and the server's message.
- Do not put real API keys, passwords, or tokens in prompts.

## Development

```bash
make sync
make test
make test-integration   # requires CROSS_SEED_URL and CROSS_SEED_API_KEY (read-only GETs only)
make build
```

The offline tests use `httpx.MockTransport`; integration tests are skipped by
default.

TDQS

A3.6/5.0

Scored across 3 tools

Disambiguation4/5

The three top-level tools are split into reasonably distinct domains: ingest for announce/webhook events, jobs for scheduler operations, and system for health checks. However, the generic `operation`/`arguments` passthrough pattern makes the exact boundaries less obvious, and an agent may need to infer which bucket contains a desired operation.

Naming Consistency4/5

All top-level tools use the `cross_seed_` prefix with snake_case names, and the enumerated sub-operations also follow snake_case conventions. The only mild inconsistency is that the top-level tools are noun buckets (`ingest`, `jobs`, `system`) while the sub-operations are verb-oriented actions.

Tool Count4/5

Three top-level tools is a compact surface for a focused cross-seed integration, and each namespace has a clear role. The count is slightly low because the actual operations are hidden behind generic dispatchers rather than exposed as individual tools, which can reduce discoverability.

Completeness3/5

The visible operations cover announce checking, webhook-triggered searches, job execution, and basic health/status checks, which are core cross-seed workflows. However, the generic ingest/jobs/system buckets do not enumerate their full operation sets, and common lifecycle needs such as configuration inspection or richer job management are not clearly covered.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues