/ Directory / Playground / media-library-organizer-skill
● Community Innei ⚡ Instant

media-library-organizer-skill

by Innei · Innei/media-library-organizer-skill

Preps media libraries for Jellyfin/Plex/Emby — cleans junk, merges scattered episodes, normalizes folder names, verifies completeness against TMDB.

A Claude Code skill (with standalone bash scripts) that systematically organizes movie / TV / anime libraries for media servers. Scans directories, removes junk (.DS_Store, SMB residuals, empties), merges duplicates by title+year+quality, consolidates scattered release-group folders, normalizes to Title (Year), and cross-references TMDB to flag missing episodes. Tiered safety: only genuinely-junk deletes run unattended — substantive changes wait for your approval.

Why use it

Key features

Live Demo

What it looks like in practice

media-library-organizer-skill.replay ▶ ready
0/0

Install

Author repository · Claude Skills documentation

Use Cases

Real-world ways to use media-library-organizer-skill

Prep a messy download library for Jellyfin

👤 Home media server users with a chaotic downloads folder ⏱ ~60 min intermediate

When to use: Before pointing Jellyfin at a folder full of release-group-named chaos.

Flow
  1. Scan and analyze
    Use media-library-organizer on /media/downloads. Scan-only — list junk, duplicates, scattered episodes.✓ Copied
    → Report with 3 sections: junk / duplicates / scattered
  2. Auto-clean junk (safe tier)
    Proceed with junk cleanup (.DS_Store, SMB metadata, empty dirs).✓ Copied
    → Small deletions, nothing risky
  3. Confirm and merge duplicates
    Now consolidate duplicates — I'll approve each.✓ Copied
    → One-by-one approvals with title/year/quality shown
  4. Normalize folder names
    Rename to Title (Year) format — warn if anything is currently seeding.✓ Copied
    → Seed warning surfaces before renames
  5. Verify via TMDB
    Cross-check episode counts against TMDB — list missing.✓ Copied
    → Per-show missing-episode list

Outcome: Jellyfin/Plex recognizes everything; missing gaps are explicit.

Pitfalls
  • Rename breaks an active torrent seed — Skill warns; stop the torrent or hard-link before renaming
  • Merging different-quality versions loses the good one — Skill prioritizes higher quality — double-check before confirming
Combine with: filesystem

Consolidate an anime library with mixed release groups

👤 Anime collectors ⏱ ~45 min intermediate

When to use: Your anime library has 3 release groups per show across different folders.

Flow
  1. Scan
    Scan /anime for scattered-episode patterns across release groups.✓ Copied
    → Per-show merge candidates
  2. Pick canonical version per show
    For each candidate, pick the highest-quality release group and merge others into it (or trash).✓ Copied
    → Clean per-show folders

Outcome: One folder per show with consistent naming.

Combinations

Pair with other MCPs for X10 leverage

media-library-organizer-skill + filesystem

Edit NFO files or custom sidecars during the same session

While organizing, also add .nfo files for each movie with TMDB id.✓ Copied

Tools

What this MCP exposes

ToolInputsWhen to callCost
scan root path Start of any organize session 0 — local
clean_junk root path, safe_only=true First destructive pass 0
merge_duplicates duplicate pair list After duplicates approved 0
normalize_names root path After cleanup 0
verify_tmdb show paths, TMDB_API_KEY Completeness check TMDB free quota

Cost & Limits

What this costs to run

API quota
TMDB: free tier generous for home libraries
Tokens per call
Low — skill mostly orchestrates shell
Monetary
Free
Tip
Scan-only first; don't burn tokens on the full analysis until you've committed to cleanup

Security

Permissions, secrets, blast radius

Minimum scopes: Filesystem read/write on the library root only
Credential storage: TMDB key in env
Data egress: TMDB API for completeness checks (public metadata only)
Never grant: Run as root on the media disk — use a user with write on just the library

Troubleshooting

Common errors and fixes

Everything flagged as 'junk'

You pointed it at a non-media folder — confirm root

Verify: ls /media/downloads
TMDB verify returns 401

TMDB_API_KEY missing or wrong

Verify: curl https://api.themoviedb.org/3/movie/550?api_key=$TMDB_API_KEY
Jellyfin still doesn't detect after rename

Force library rescan; verify folder matches Jellyfin's expected naming

Alternatives

media-library-organizer-skill vs others

AlternativeWhen to use it insteadTradeoff
FileBotYou want a GUI with prebuilt rulesPaid, no Claude loop
tinyMediaManagerMetadata-focused rather than junk cleanupNo merge / scattered-episode handling

More

Resources

📖 Read the official README on GitHub

🐙 Browse open issues

🔍 Browse all 400+ MCP servers and Skills

Continue exploring

Related tools and workflows

Choose another guide for your workflow, or explore a collection.

Browse all topic collections → · See 29 new official additions →